1.4.1 Installation Failed

121 views
Skip to first unread message

atl

unread,
Feb 8, 2012, 1:40:15 PM2/8/12
to phonegap
Feb 8 13:35:03 Macintosh Installer[2828]: @(#)PROGRAM:Install
PROJECT:Install-686.2
Feb 8 13:35:03 Macintosh Installer[2828]: @(#)PROGRAM:Installer
PROJECT:Installer-530
Feb 8 13:35:03 Macintosh Installer[2828]: Hardware: MacBookPro3,1 @
2.20 GHz (x 2), 2048 MB RAM
Feb 8 13:35:03 Macintosh Installer[2828]: Running OS Build: Mac OS X
10.7.2 (11C74)
Feb 8 13:35:03 Macintosh Installer[2828]: PhoneGap Installation Log
Feb 8 13:35:03 Macintosh Installer[2828]: Opened from: /Volumes/
PhoneGap-1.4.1/PhoneGap-1.4.1.pkg
Feb 8 13:35:06 Macintosh Installer[2828]:
InstallerStatusNotifications plugin loaded
Feb 8 13:35:07 Macintosh Installer[2828]:
================================================================================
Feb 8 13:35:07 Macintosh Installer[2828]: User picked Standard
Install
Feb 8 13:35:07 Macintosh Installer[2828]: Choices selected for
installation:
Feb 8 13:35:07 Macintosh Installer[2828]: Install: "PhoneGap"
Feb 8 13:35:07 Macintosh Installer[2828]: Install: "PhoneGapLib"
Feb 8 13:35:07 Macintosh Installer[2828]: Install: "PhoneGap-based
Application"
Feb 8 13:35:07 Macintosh Installer[2828]: Install:
"PhoneGap.xctemplate"
Feb 8 13:35:07 Macintosh Installer[2828]: Install:
"PhoneGap.framework"
Feb 8 13:35:07 Macintosh Installer[2828]:
================================================================================
Feb 8 13:35:07 Macintosh Installer[2828]: Configuring volume
"Macintosh HD"
Feb 8 13:35:07 Macintosh Installer[2828]: Free space on "Macintosh
HD": 50.58 GB (50579038208 bytes).
Feb 8 13:35:07 Macintosh Installer[2828]: Create temporary directory
"/var/folders/lw/g8qp7zh51dx541p32dp55ct40000gp/T//Install.2828Iyl9Gr"
Feb 8 13:35:07 Macintosh Installer[2828]: IFPKInstallElement (4
packages)
Feb 8 13:35:07 Macintosh installd[2834]: PackageKit: ----- Begin
install -----
Feb 8 13:35:09 Macintosh installd[2834]: PackageKit: Install Failed:
Error Domain=PKInstallErrorDomain Code=112 "An error occurred while
running scripts from the package “PhoneGap-1.4.1.pkg”."
UserInfo=0x1074660d0 {NSFilePath=./postinstall, NSURL=file://localhost/
Volumes/PhoneGap-1.4.1/PhoneGap-1.4.1.pkg#phonegaplib.pkg,
PKInstallPackageIdentifier=com.phonegap.phonegaplibinstaller.phonegaplib.pkg,
NSLocalizedDescription=An error occurred while running scripts from
the package “PhoneGap-1.4.1.pkg”.} {
NSFilePath = "./postinstall";
NSLocalizedDescription = "An error occurred while running scripts
from the package \U201cPhoneGap-1.4.1.pkg\U201d.";
NSURL = "file://localhost/Volumes/PhoneGap-1.4.1/
PhoneGap-1.4.1.pkg#phonegaplib.pkg";
PKInstallPackageIdentifier =
"com.phonegap.phonegaplibinstaller.phonegaplib.pkg";
}
Feb 8 13:35:09 Macintosh Installer[2828]: Install failed: The
Installer encountered an error that caused the installation to fail.
Contact the software manufacturer for assistance.
Feb 8 13:35:10 Macintosh Installer[2828]: IFDInstallController
F847DF20 state = 7
Feb 8 13:35:10 Macintosh Installer[2828]: Displaying 'Install Failed'
UI.
Feb 8 13:35:10 Macintosh Installer[2828]: 'Install Failed' UI
displayed message:'The Installer encountered an error that caused the
installation to fail. Contact the software manufacturer for
assistance.'.


Followed FAQ instruction, template had the correct permission.
drwxr-xr-x+ 3 atlatl staff 102 Aug 11 07:49 Templates

I had phonegap 1.0.0 installed. I ran uninstaller provided in
PhoneGap-1.0.0.pkg before installing 1.4.1 Please help, thanks.

rion

unread,
Feb 22, 2012, 11:48:12 PM2/22/12
to phonegap
Hi atl,

I was able to resolve this by running the Installer from command line:

sudo Installer -pkg /Volumes/PhoneGap-1.4.1/PhoneGap-1.4.1.pkg -
target /

I wrote an article on the problem here:
http://boredwookie.net/index.php/blog/installation-failed-message-when-installing-phonegap-1-4-1-for-i/

Hope that works for you like it worked for me...

Rion

Shazron

unread,
Feb 23, 2012, 1:11:29 AM2/23/12
to phon...@googlegroups.com
Running it as su will generally cause problems later, since
PhoneGap/Cordova only needs the current user's permissions to install.
This is what is going on, usually it is other third-party libraries
running as root when they don't need to:
https://issues.apache.org/jira/browse/CB-270

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

rion

unread,
Feb 26, 2012, 1:57:18 PM2/26/12
to phonegap
In my case I haven't noticed any problems after running the installer
using sudo. The files get installed correctly and I can run Xcode as
my regular user. I can build and deploy apps without difficulty.

This appears to be the only way to work around the issue as the
installer package for PhoneGap 1.4.1 doesn't ask for elevated
permissions to install (hence the failure).

If you know of any specific issues that arise after installing with
su / sudo, please let me know. I'd love to know (so I don't rat-hole
myself troubleshooting). :)

Thanks

On Feb 22, 11:11 pm, Shazron <shaz...@gmail.com> wrote:
> Running it as su will generally cause problems later, since
> PhoneGap/Cordova only needs the current user's permissions to install.
> This is what is going on, usually it is other third-party libraries
> running as root when they don't need to:https://issues.apache.org/jira/browse/CB-270
>
>
>
>
>
>
>
> On Wed, Feb 22, 2012 at 8:48 PM, rion <r...@boredwookie.net> wrote:
> > Hi atl,
>
> > I was able to resolve this by running the Installer from command line:
>
> > sudo Installer -pkg /Volumes/PhoneGap-1.4.1/PhoneGap-1.4.1.pkg -
> > target /
>
> > I wrote an article on the problem here:
> >http://boredwookie.net/index.php/blog/installation-failed-message-whe...

rion

unread,
Feb 26, 2012, 2:00:30 PM2/26/12
to phonegap
Nevermind, I get what you're saying (Should have read your link
first).

Thanks for the helpful link- I had previously installed Cocos2d, so it
directly applied to my scenario.


On Feb 22, 11:11 pm, Shazron <shaz...@gmail.com> wrote:
> Running it as su will generally cause problems later, since
> PhoneGap/Cordova only needs the current user's permissions to install.
> This is what is going on, usually it is other third-party libraries
> running as root when they don't need to:https://issues.apache.org/jira/browse/CB-270
>
>
>
>
>
>
>
> On Wed, Feb 22, 2012 at 8:48 PM, rion <r...@boredwookie.net> wrote:
> > Hi atl,
>
> > I was able to resolve this by running the Installer from command line:
>
> > sudo Installer -pkg /Volumes/PhoneGap-1.4.1/PhoneGap-1.4.1.pkg -
> > target /
>
> > I wrote an article on the problem here:
> >http://boredwookie.net/index.php/blog/installation-failed-message-whe...
Reply all
Reply to author
Forward
0 new messages