Jump to content

Unable to install Mac Plastic


milox

Recommended Posts

Here's the log, at least the part related to the installation: 

Jan 21 18:36:04 MBPPro Installer[1725]: InstallerStatusNotifications plugin loaded
Jan 21 18:36:05 MBPPro Installer[1725]: ================================================================================
Jan 21 18:36:05 MBPPro Installer[1725]: User picked Standard Install
Jan 21 18:36:05 MBPPro Installer[1725]: Choices selected for installation:
Jan 21 18:36:05 MBPPro Installer[1725]: 	Install: ""
Jan 21 18:36:05 MBPPro Installer[1725]: 	Install: "(null)"
Jan 21 18:36:05 MBPPro Installer[1725]: 		macplastic-5.4.16.721.pkg#com.codicesoftware.plasticscm.macplastic.pkg : com.codicesoftware.plasticscm.macplastic : 5.4.16.721
Jan 21 18:36:05 MBPPro Installer[1725]: ================================================================================
Jan 21 18:36:05 MBPPro Installer[1725]: It took 0.00 seconds to summarize the package selections.
Jan 21 18:36:05 MBPPro Installer[1725]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
Jan 21 18:36:05 MBPPro Installer[1725]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Users/mm/Desktop/macplastic-5.4.16.721.pkg#com.codicesoftware.plasticscm.macplastic.pkg
Jan 21 18:36:05 MBPPro Installer[1725]: Set authorization level to root for session
Jan 21 18:36:09 MBPPro Installer[1725]: Administrator authorization granted.
Jan 21 18:36:09 MBPPro Installer[1725]: Will use PK session
Jan 21 18:36:09 MBPPro Installer[1725]: Using authorization level of root for IFPKInstallElement
Jan 21 18:36:09 MBPPro Installer[1725]: Starting installation:
Jan 21 18:36:09 MBPPro Installer[1725]: Configuring volume "MAC"
Jan 21 18:36:09 MBPPro Installer[1725]: Preparing disk for local booted install.
Jan 21 18:36:09 MBPPro Installer[1725]: Free space on "MAC": 31,39 GB (31392321536 bytes).
Jan 21 18:36:09 MBPPro Installer[1725]: Create temporary directory "/var/folders/r5/_d3jl45j7sx787_vppp7v8900000gn/T//Install.17253K1MmM"
Jan 21 18:36:09 MBPPro Installer[1725]: IFPKInstallElement (1 packages)
Jan 21 18:36:09 MBPPro installd[1675]: PackageKit: Adding client PKInstallDaemonClient pid=1725, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
Jan 21 18:36:09 MBPPro Installer[1725]: PackageKit: Enqueuing install with framework-specified quality of service (utility)
Jan 21 18:36:09 MBPPro installd[1675]: PackageKit: ----- Begin install -----
Jan 21 18:36:09 MBPPro installd[1675]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
Jan 21 18:36:09 MBPPro installd[1675]: PackageKit: packages=(
	    "PKLeopardPackage <file://localhost/Users/mm/Desktop/macplastic-5.4.16.721.pkg#com.codicesoftware.plasticscm.macplastic.pkg>"
	)
Jan 21 18:36:09 MBPPro Installer[1725]: LSExceptions [0x7ff672507930] unloaded
Jan 21 18:36:09 MBPPro installd[1675]: PackageKit: Extracting file://localhost/Users/mm/Desktop/macplastic-5.4.16.721.pkg#com.codicesoftware.plasticscm.macplastic.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/47D3455D-77DD-4C52-811F-B03E3820ED5F.activeSandbox/Root/Applications, uid=0)
Jan 21 18:36:13 MBPPro installd[1675]: PackageKit: prevent user idle system sleep
Jan 21 18:36:13 MBPPro installd[1675]: PackageKit: suspending backupd
Jan 21 18:36:13 MBPPro installd[1675]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/47D3455D-77DD-4C52-811F-B03E3820ED5F.sandboxTrash for sandbox /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/47D3455D-77DD-4C52-811F-B03E3820ED5F.activeSandbox
Jan 21 18:36:13 MBPPro install_monitor[1731]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Jan 21 18:36:13 MBPPro installd[1675]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/47D3455D-77DD-4C52-811F-B03E3820ED5F.activeSandbox/Root (1 items) to /
Jan 21 18:36:13 MBPPro installd[1675]: PackageKit: Executing script "./postinstall" in /private/tmp/PKInstallSandbox.0PaYjn/Scripts/com.codicesoftware.plasticscm.macplastic.At9Gpo
Jan 21 18:36:13 MBPPro installd[1675]: ./postinstall: mkdir: /usr/local/bin: Not a directory
Jan 21 18:36:13 MBPPro installd[1675]: ./postinstall: /tmp/PKInstallSandbox.0PaYjn/Scripts/com.codicesoftware.plasticscm.macplastic.At9Gpo/postinstall: line 7: /usr/local/bin/cm: Not a directory
Jan 21 18:36:13 MBPPro installd[1675]: ./postinstall: /tmp/PKInstallSandbox.0PaYjn/Scripts/com.codicesoftware.plasticscm.macplastic.At9Gpo/postinstall: line 8: /usr/local/bin/cm: Not a directory
Jan 21 18:36:13 MBPPro installd[1675]: ./postinstall: chflags: /usr/local/bin/cm: Not a directory
Jan 21 18:36:13 MBPPro installd[1675]: ./postinstall: chmod: /usr/local/bin/cm: Not a directory
Jan 21 18:36:13 MBPPro installd[1675]: ./postinstall: /tmp/PKInstallSandbox.0PaYjn/Scripts/com.codicesoftware.plasticscm.macplastic.At9Gpo/postinstall: line 12: /usr/local/bin/clconfigureclient: Not a directory
Jan 21 18:36:13 MBPPro installd[1675]: ./postinstall: /tmp/PKInstallSandbox.0PaYjn/Scripts/com.codicesoftware.plasticscm.macplastic.At9Gpo/postinstall: line 13: /usr/local/bin/clconfigureclient: Not a directory
Jan 21 18:36:13 MBPPro installd[1675]: ./postinstall: chflags: /usr/local/bin/clconfigureclient: Not a directory
Jan 21 18:36:13 MBPPro installd[1675]: ./postinstall: chmod: /usr/local/bin/clconfigureclient: Not a directory
Jan 21 18:36:13 MBPPro installd[1675]: ./postinstall: /tmp/PKInstallSandbox.0PaYjn/Scripts/com.codicesoftware.plasticscm.macplastic.At9Gpo/postinstall: line 21: /usr/local/bin/PlasticSCMUnityPlugin: Not a directory
Jan 21 18:36:13 MBPPro installd[1675]: ./postinstall: /tmp/PKInstallSandbox.0PaYjn/Scripts/com.codicesoftware.plasticscm.macplastic.At9Gpo/postinstall: line 22: /usr/local/bin/PlasticSCMUnityPlugin: Not a directory
Jan 21 18:36:13 MBPPro installd[1675]: ./postinstall: chflags: /usr/local/bin/PlasticSCMUnityPlugin: Not a directory
Jan 21 18:36:13 MBPPro installd[1675]: ./postinstall: chmod: /usr/local/bin/PlasticSCMUnityPlugin: Not a directory
Jan 21 18:36:13 MBPPro install_monitor[1731]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Jan 21 18:36:14 MBPPro installd[1675]: PackageKit: releasing backupd
Jan 21 18:36:14 MBPPro installd[1675]: PackageKit: allow user idle system sleep
Jan 21 18:36:14 MBPPro installd[1675]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “macplastic-5.4.16.721.pkg”." UserInfo={NSFilePath=./postinstall, NSURL=file://localhost/Users/mm/Desktop/macplastic-5.4.16.721.pkg#com.codicesoftware.plasticscm.macplastic.pkg, PKInstallPackageIdentifier=com.codicesoftware.plasticscm.macplastic, NSLocalizedDescription=An error occurred while running scripts from the package “macplastic-5.4.16.721.pkg”.} {
	    NSFilePath = "./postinstall";
	    NSLocalizedDescription = "An error occurred while running scripts from the package \U201cmacplastic-5.4.16.721.pkg\U201d.";
	    NSURL = "file://localhost/Users/mm/Desktop/macplastic-5.4.16.721.pkg#com.codicesoftware.plasticscm.macplastic.pkg";
	    PKInstallPackageIdentifier = "com.codicesoftware.plasticscm.macplastic";
	}
Jan 21 18:36:14 MBPPro installd[1675]: PackageKit: Running idle tasks
Jan 21 18:36:14 MBPPro Installer[1725]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “macplastic-5.4.16.721.pkg”." UserInfo={NSFilePath=./postinstall, NSURL=file://localhost/Users/mm/Desktop/macplastic-5.4.16.721.pkg#com.codicesoftware.plasticscm.macplastic.pkg, PKInstallPackageIdentifier=com.codicesoftware.plasticscm.macplastic, NSLocalizedDescription=An error occurred while running scripts from the package “macplastic-5.4.16.721.pkg”.}
Jan 21 18:36:14 MBPPro installd[1675]: PackageKit: Removing client PKInstallDaemonClient pid=1725, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
Jan 21 18:36:14 MBPPro installd[1675]: PackageKit: Done with sandbox removals
Jan 21 18:36:14 MBPPro Installer[1725]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Jan 21 18:36:14 MBPPro Installer[1725]: IFDInstallController 72514B20 state = 8
Jan 21 18:36:14 MBPPro Installer[1725]: Displaying 'Install Failed' UI.
Jan 21 18:36:14 MBPPro Installer[1725]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.

Link to comment
Share on other sites

It's strange.

 

Look this is what the postinstall script (the one that seems to be failing) tries to do:


#!/bin/bash
if [ ! -d "/usr/local/bin" ]
  then
    mkdir -p /usr/local/bin
fi

echo "#!/bin/sh" > /usr/local/bin/cm
echo "exec \"/Applications/macplastic.app/Contents/Applications/cm.app/Contents/MacOS/cm\" \"\$@\"" >> /usr/local/bin/cm
chflags nouchg /usr/local/bin/cm
chmod a+x /usr/local/bin/cm

echo "#!/bin/sh" > /usr/local/bin/clconfigureclient
echo "exec \"/Applications/macplastic.app/Contents/Applications/clconfigureclient.app/Contents/MacOS/clconfigureclient\" \"\$@\"" >> /usr/local/bin/clconfigureclient
chflags nouchg /usr/local/bin/clconfigureclient
chmod a+x /usr/local/bin/clconfigureclient

if [ -f "/usr/bin/PlasticSCMUnityPlugin" ]
  then
    rm -f "/usr/bin/PlasticSCMUnityPlugin"
fi
echo "#!/bin/sh" > /usr/local/bin/PlasticSCMUnityPlugin
echo "exec /Applications/macplastic.app/Contents/Applications/PlasticSCMUnityPlugin.app/Contents/MacOS/PlasticSCMUnityPlugin" >> /usr/local/bin/PlasticSCMUnityPlugin
chflags nouchg /usr/local/bin/PlasticSCMUnityPlugin
chmod a+x /usr/local/bin/PlasticSCMUnityPlugin

The only thing I think that could be wrong is that you don't have permissions to write at "/usr/local/bin/" which is also strange, but can you please check if the directory exists and you can write a file inside it? for example try to execute the following using a command line (terminal):

echo "exec \"/Applications/macplastic.app/Contents/Applications/clconfigureclient.app/Contents/MacOS/clconfigureclient\" \"\$@\"" >> /usr/local/bin/clconfigureclient

works?

Link to comment
Share on other sites

Nope

MBP:~ mm$ echo "exec \"/Applications/macplastic.app/Contents/Applications/clconfigureclient.app/Contents/MacOS/clconfigureclient\" \"\$@\"" >> /usr/local/bin/clconfigureclient
-bash: /usr/local/bin/clconfigureclient: Not a directory
Link to comment
Share on other sites

Huh, it seems it's a file from a program called ReFind - which I use to have a dual boot for Windows 10 and Mac OS. Not sure why it's here. I'll try to update it, maybe it's fixed in newer releases

#!/bin/bash
#
# Mac OS X script to locate and mount an EFI System Partition (ESP)
#
# Usage:
#
# ./mountesp
#
# This program is copyright (c) 2012-2015 by Roderick W. Smith
# It is released under the terms of the GNU GPL, version 3,
# a copy of which should be included in the file COPYING.txt.
#
# Revision history:
#
# 0.9.3   -- Initial release (with rEFInd 0.9.3)

# Mount the ESP at /Volumes/ESP or determine its current mount
# point.
MountOSXESP() {
    # Identify the ESP. Note: This returns the FIRST ESP found;
    # if the system has multiple disks, this could be wrong!
    Temp=$(mount | sed -n -E "/^(\/dev\/disk[0-9]+s[0-9]+) on \/ \(.*$/s//\1/p")
    if [ $Temp ]; then
        Temp=$(diskutil list | grep " EFI " | grep -o 'disk.*' | head -n 1)
        if [ -z $Temp ]; then
            echo "Warning: root device doesn't have an EFI partition"
        fi
    else
        echo "Warning: root device could not be found"
    fi
    if [ -z $Temp ]; then
        Temp=$(diskutil list | sed -n -E '/^ *[0-9]+:[ ]+EFI EFI[ ]+[0-9.]+ [A-Z]+[ ]+(disk[0-9]+s[0-9]+)$/ { s//\1/p
                q
            }' )

        if [ -z $Temp ]; then
            echo "Could not find an EFI partition. Aborting!"
            exit 1
        fi
    fi
    Esp=/dev/`echo $Temp`
    echo "The ESP has been identified as $Esp; attempting to mount it...."
    # If the ESP is mounted, use its current mount point....
    Temp=`df -P | grep "$Esp "`
    MountPoint=`echo $Temp | cut -f 6- -d ' '`
    if [[ "$MountPoint" == '' ]] ; then
        if [[ $UID != 0 ]] ; then
            echo "You must run this program as root or using sudo! Exiting!"
            exit 1
        fi
        MountPoint="/Volumes/ESP"
        mkdir /Volumes/ESP &> /dev/null
        mount -t msdos "$Esp" $MountPoint
        # Some systems have HFS+ "ESPs." They shouldn't, but they do. If this is
        # detected, mount it as such and set appropriate options.
        if [[ $? != 0 ]] ; then
            mount -t hfs "$Esp" $MountPoint
            if [[ $? != 0 ]] ; then
                echo "Unable to mount ESP!\n"
                exit 1
            fi
        fi
    fi
    echo "The ESP is mounted at $MountPoint"
} # MountOSXESP()

#
# Main part of script....
#

case "$OSTYPE" in
    darwin*)
            MountOSXESP
            ;;
    *)
            echo "This script is meant to be run under OS X *ONLY*! Exiting!"
            exit
            ;;
esac
Link to comment
Share on other sites

Ok,

 

 

as a workaround:

 

1) Unpack the isntaller:

pkgutil --expand macplastic-5.4.16.693.pkg macplastic

 

2) Edit the postinstall script to do nothing (just leave the file with just "#!/bin/bash" or create the scripts in a different path of your choice:

nano macplastic/com.codicesoftware.plasticscm.macplastic.pkg/Scripts/postinstall 

 

3) Pack the installer and repeat the installation:

pkgutil --flatten macplastic macplastic.pkg

Link to comment
Share on other sites

Alright, it worked. I just created binplastic directory inside usr/local/ and edited the script. Thanks so much for your help!

#!/bin/bash
if [ ! -d "/usr/local/binplastic" ]
  then
    mkdir -p /usr/local/binplastic
fi

echo "#!/bin/sh" > /usr/local/binplastic/cm
echo "exec \"/Applications/macplastic.app/Contents/Applications/cm.app/Contents/MacOS/cm\" \"\$@\"" >> /usr/local/binplastic/cm
chflags nouchg /usr/local/binplastic/cm
chmod a+x /usr/local/binplastic/cm

echo "#!/bin/sh" > /usr/local/binplastic/clconfigureclient
echo "exec \"/Applications/macplastic.app/Contents/Applications/clconfigureclient.app/Contents/MacOS/clconfigureclient\" \"\$@\"" >> /usr/local/binplastic/clconfigureclient
chflags nouchg /usr/local/binplastic/clconfigureclient
chmod a+x /usr/local/binplastic/clconfigureclient

if [ -f "/usr/bin/PlasticSCMUnityPlugin" ]
  then
    rm -f "/usr/bin/PlasticSCMUnityPlugin"
fi 
echo "#!/bin/sh" > /usr/local/binplastic/PlasticSCMUnityPlugin
echo "exec /Applications/macplastic.app/Contents/Applications/PlasticSCMUnityPlugin.app/Contents/MacOS/PlasticSCMUnityPlugin" >> /usr/local/binplastic/PlasticSCMUnityPlugin
chflags nouchg /usr/local/binplastic/PlasticSCMUnityPlugin
chmod a+x /usr/local/binplastic/PlasticSCMUnityPlugin

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...