This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 214118 - 7.2 beta/GA fails to install on mac os x Lion
Summary: 7.2 beta/GA fails to install on mac os x Lion
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Mac Native (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-13 12:02 UTC by balusss
Modified: 2013-05-22 02:37 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
install.log (1.78 MB, application/octet-stream)
2012-10-17 15:53 UTC, balusss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description balusss 2012-06-13 12:02:10 UTC
I see the following exception on the console:
-->
6/13/12 2:34:00.108 PM installd: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “baseide-201205031832.pkg”." UserInfo=0x10bfb72d0 {NSFilePath=./postflight, NSURL=file://localhost/Volumes/NetBeans%207.2%20Beta/NetBeans%207.2%20Beta.mpkg/Contents/Packages/baseide-201205031832.pkg, PKInstallPackageIdentifier=org.netbeans.ide.baseide.201205031832, NSLocalizedDescription=An error occurred while running scripts from the package “baseide-201205031832.pkg”.} {
    NSFilePath = "./postflight";
    NSLocalizedDescription = "An error occurred while running scripts from the package \U201cbaseide-201205031832.pkg\U201d.";
    NSURL = "file://localhost/Volumes/NetBeans%207.2%20Beta/NetBeans%207.2%20Beta.mpkg/Contents/Packages/baseide-201205031832.pkg";
    PKInstallPackageIdentifier = "org.netbeans.ide.baseide.201205031832";
}
6/13/12 2:34:00.207 PM com.apple.launchd: (com.apple.launchd.peruser.4294967295[36437]) getpwuid("4294967295") failed
6/13/12 2:34:01.324 PM Installer: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
<--

I tried installing 7.1.1 and it fails too. 

pl take a look.
Comment 1 Libor Fischmeistr 2012-06-13 12:30:26 UTC
Attach log please. Location of log is <homedir>/.nbi/log/
Comment 2 Libor Fischmeistr 2012-06-13 12:37:09 UTC
Sorry, you cannot find .nbi folder on Mac. So I would ask you to attach full installation log.

Do you have installed Java6?
Comment 3 Libor Fischmeistr 2012-06-13 13:03:45 UTC
The installer log on Mac you can find in /var/log/ and there is the file install.log

So please run the installer and attach this log.

Thank you
Comment 4 balusss 2012-06-13 17:48:15 UTC
thank you ifischmeistr... It initially failed as 'sed' was not detected even though the binary was there as /usr/local/bin/sed..
--->
Jun 13 14:33:59 myHost installd[36356]: ./postflight: /Volumes/NetBeans 7.2 Beta/NetBeans 7.2 Beta.mpkg/Contents/Packages/baseide-201205031832.pkg/Contents/Resources/unpack200.sh: line 33: sed: command not found
<---


I quickly made a sym link as /bin/ls and after that it failed again with this error:
--->
Jun 13 19:44:33 myHost installd[57691]: ./postflight: + sed -E -i .orig -e 's|\$\{NETBEANS_HOME\}|/Applications/NetBeans/NetBeans 7.2 Beta.app/Contents/Resources/NetBeans|g' netbeans.conf
Jun 13 19:44:33 myHost installd[57691]: ./postflight: sed: can't read .orig: No such file or directory
<---

Clearly, there shouldn't be any space after '-i' and '.orig'.. I edited the postflight file (baseide) by mounting the dmg image as rw.. 

then the installation was successful. 


I request you to take up these action items:
------
1. pl specify the install.log location in the error instead of just saying 'contact software owners' etc.. ;
2. check for all possible locations for the sed binary. what i kept it in a custom location? I naturally expect my $PATH to be considered.
3. pl remove the space between '-i' and '.orig' in the baseide's postflight file.. (line number 60)
------

thank you so much for the lightning fast response :)
Comment 5 balusss 2012-06-13 18:36:59 UTC
(In reply to comment #4)

> 
> I quickly made a sym link as /bin/ls and after...

sorry typo.. its /bin/sed
Comment 6 balusss 2012-06-25 10:11:03 UTC
hey marian,

apologize my reopening this bug. This still needs few things to be changed in the packaging.. I didn't understand how it is closed 'invalid' when we have action items as in comment#4.

Could you pl explain?
Comment 7 Jiri Rechtacek 2012-06-25 10:19:24 UTC
(In reply to comment #6)
> hey marian,
> 
> apologize my reopening this bug. This still needs few things to be changed in
> the packaging.. I didn't understand how it is closed 'invalid' when we have
> action items as in comment#4.
> 
> Could you pl explain?

The installer log on Mac you can find in /var/log/ and there is the file
install.log

So please run the installer and attach this log.
Comment 8 balusss 2012-10-17 15:53:37 UTC
Created attachment 126097 [details]
install.log

hi,
the 7.2 GA also failed today with the same error. am attaching the install.log for reference. 

I corrected the 'sed -i<space>.orig' issue as given in comment#4 and it went thru fine. 

please correct this script for all further release. 

tx.
Comment 9 Jiri Rechtacek 2012-10-17 16:13:53 UTC
(In reply to comment #8)
> Created attachment 126097 [details]
> install.log
> 
> hi,
> the 7.2 GA also failed today with the same error. am attaching the install.log
> for reference. 
> 
> I corrected the 'sed -i<space>.orig' issue as given in comment#4 and it went
> thru fine. 
> 
> please correct this script for all further release. 
> 
> tx.

Thanks a lot for the log.
Comment 10 Libor Fischmeistr 2013-05-21 11:33:15 UTC
Fixed in http://hg.netbeans.org/core-main/rev/87c994b333ec

The calling of sed is not necessary now, the whole if statement has been deleted.
Comment 11 Quality Engineering 2013-05-22 02:37:10 UTC
Integrated into 'main-golden', will be available in build *201305212300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/87c994b333ec
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #214118: 7.2 beta/GA fails to install on mac os x Lion