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 187100 - Postflight install script fails on Mac OSX 10.5.8 PPC
Summary: Postflight install script fails on Mac OSX 10.5.8 PPC
Status: RESOLVED INVALID
Alias: None
Product: installer
Classification: Unclassified
Component: Mac Native (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Yulia Novozhilova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-02 17:30 UTC by pblemel
Modified: 2010-06-02 21:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pblemel 2010-06-02 17:30:13 UTC
Installation fails on Mac OSX 10.5.8 PPC.  The failure dialog shows "The following install step failed: run postflight script for NetBeans 6.9 RC2. Contact the software manufacturer for assistance."

install.log:


Jun  2 11:15:24 themac Installer[4145]: run postflight script for NetBeans 6.9 RC2
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + set -e
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ dirname '/Volumes/NetBeans 6.9 RC2/NetBeans 6.9 RC2.mpkg/Contents/Packages/baseide-201005312001.pkg/Contents/Resources/postflight'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + dirname='/Volumes/NetBeans 6.9 RC2/NetBeans 6.9 RC2.mpkg/Contents/Packages/baseide-201005312001.pkg/Contents/Resources'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ '/Volumes/NetBeans 6.9 RC2/NetBeans 6.9 RC2.mpkg/Contents/Packages/baseide-201005312001.pkg/Contents/Resources/get_current_jdk.sh'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + default_jdk=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ which java
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + java_bin=/usr/bin/java
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + '[' 0 -ne 0 ']'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ echo /usr/bin/java
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ grep 'no java in'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + '[' -n '' ']'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + '[' -f /usr/bin/java ']'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ /usr/bin/java -fullversion
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + java_version='java full version "1.5.0_24-b02-357"'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + '[' 0 -eq 0 ']'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ echo 'java full version "1.5.0_24-b02-357"'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ grep 1.6.0
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + '[' -n '' ']'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + echo /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + jdk_home=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + . '/Volumes/NetBeans 6.9 RC2/NetBeans 6.9 RC2.mpkg/Contents/Packages/baseide-201005312001.pkg/Contents/Resources/env.sh'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ NETBEANS_INSTALL_DIR='/Applications/NetBeans/NetBeans 6.9 RC2.app'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ NETBEANS_BUILDNUMBER=201005312001
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ NETBEANS_CHECK_BUILDNUMBER=0
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ GLASSFISH_INSTALL_DIR=/Applications/NetBeans/SUNWappserver
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ TOMCAT_INSTALL_DIR=/Applications/NetBeans/apache-tomcat-6.0.26
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ NB_CLUSTER_DIR=nb
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ GLASSFISH_V3_INSTALL_DIR=/Applications/NetBeans/oges-3.0.1-b20
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ MYSQL_INSTALL_DIR=/usr/local/mysql
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ SERVICE_TAG_SOURCE='NetBeans IDE 6.9 RC2 Installer'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ NB_ID=201005312001
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ GLASSFISHV3_SUN_ID=b20
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ TOMCAT_ID=6.0.26
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + '/Volumes/NetBeans 6.9 RC2/NetBeans 6.9 RC2.mpkg/Contents/Packages/baseide-201005312001.pkg/Contents/Resources/unpack200.sh' '/Applications/NetBeans/NetBeans 6.9 RC2.app' '/Applications/NetBeans/NetBeans 6.9 RC2.app/Contents/Resources/NetBeans' /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + chown_dir='/Applications/NetBeans/NetBeans 6.9 RC2.app'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + unpack_dir='/Applications/NetBeans/NetBeans 6.9 RC2.app/Contents/Resources/NetBeans'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + jdk_home=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + set -e
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + echo Changing ownership for /Applications/NetBeans/NetBeans 6.9 RC2.app
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: Changing ownership for /Applications/NetBeans/NetBeans 6.9 RC2.app
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ ls -nlda /Users/pblemel
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ awk ' { print $3 ":admin" } '
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + ownership=200:admin
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + chown -R 200:admin '/Applications/NetBeans/NetBeans 6.9 RC2.app'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: + echo Calling unpack200 in /Applications/NetBeans/NetBeans 6.9 RC2.app/Contents/Resources/NetBeans
Jun  2 11:15:26 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: Calling unpack200 in /Applications/NetBeans/NetBeans 6.9 RC2.app/Contents/Resources/NetBeans
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: + cd '/Applications/NetBeans/NetBeans 6.9 RC2.app/Contents/Resources/NetBeans'
Jun  2 11:15:26 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: ++ find . -name '*.jar.pack'
Jun  2 11:15:26 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: + for x in '`find . -name \*.jar.pack`'
Jun  2 11:15:26 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: ++ echo ./apisupport/ant/nblib/org-netbeans-modules-apisupport-ant.jar.pack
Jun  2 11:15:26 themac runner[4156]: postflight[4176]:

Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + unpack_dir='/Applications/NetBeans/NetBeans 6.9 RC2.app/Contents/Resources/NetBeans'Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + jdk_home=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + set -e
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + echo Changing ownership for /Applications/NetBeans/NetBeans 6.9 RC2.app
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: Changing ownership for /Applications/NetBeans/NetBeans 6.9 RC2.app
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ ls -nlda /Users/pblemel
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:Jun  2 11:15:24 themac runner[4156]: postflight[4176]: ++ awk ' { print $3 ":admin" } '
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + ownership=200:adminJun  2 11:15:24 themac runner[4156]: postflight[4176]:Jun  2 11:15:24 themac runner[4156]: postflight[4176]: + chown -R 200:admin '/Applications/NetBeans/NetBeans 6.9 RC2.app'
Jun  2 11:15:24 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: + echo Calling unpack200 in /Applications/NetBeans/NetBeans 6.9 RC2.app/Contents/Resources/NetBeans
Jun  2 11:15:26 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: Calling unpack200 in /Applications/NetBeans/NetBeans 6.9 RC2.app/Contents/Resources/Net
BeansJun  2 11:15:26 themac runner[4156]: postflight[4176]: + cd '/Applications/NetBeans/NetBeans 6.9 RC2.app/Contents/Resources/NetBeans'
Jun  2 11:15:26 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: ++ find . -name '*.jar.pack'
Jun  2 11:15:26 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: + for x in '`find . -name \*.jar.pack`'
Jun  2 11:15:26 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: ++ echo ./apisupport/ant/nblib/org-netbeans-modules-apisupport-ant.jar.pack
Jun  2 11:15:26 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: ++ sed s/jar.pack/jar/
Jun  2 11:15:26 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: + jar=./apisupport/ant/nblib/org-netbeans-modules-apisupport-ant.jar
Jun  2 11:15:26 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: + '[' -f ./apisupport/ant/nblib/org-netbeans-modules-apisupport-ant.jar ']'
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: + /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/unpack200 ./apisupp
ort/ant/nblib/org-netbeans-modules-apisupport-ant.jar.pack ./apisupport/ant/nblib/org-netbeans-modules-apisupport-ant.jar
Jun  2 11:15:26 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac runner[4156]: postflight[4176]: /Volumes/NetBeans 6.9 RC2/NetBeans 6.9 RC2.mpkg/Contents/Packages/baseide-201005312001.
pkg/Contents/Resources/unpack200.sh: line 37: /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/unpack200: Bad CPU type in exe
cutable
Jun  2 11:15:26 themac runner[4156]: postflight[4176]:
Jun  2 11:15:26 themac Installer[4145]: Install failed: The following install step failed: run postflight script for NetBeans 6.9 RC2. Contact
 the software manufacturer for assistance.
Jun  2 11:15:26 themac Installer[4145]: IFDInstallController 824EA0 state = 7
Jun  2 11:15:26 themac Installer[4145]: Displaying 'Install Failed' UI.
Jun  2 11:15:26 themac Installer[4145]: 'Install Failed' UI displayed message:'The following install step failed: run postflight script for Ne
tBeans 6.9 RC2. Contact the software manufacturer for assistance.'.
Comment 1 pblemel 2010-06-02 17:42:42 UTC
After chasing down the release notes for 6.9 I see that only Intel Macs are supported.  IMHO that's a terrible blow for those of us still using our PPC Macs.   I have two of them that I do most of my development on, and I have no plans to buy an Intel Mac anytime soon.
Comment 2 dlipin 2010-06-02 19:01:38 UTC
Actually NetBeans installer should work fine on Mac OS X PPC even though it is not tested.

Looks like the problem is with the Java installed
Calling 
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/unpack200
resulting in "Bad CPU type in executable" message.

Does Java works fine on your system?

Does the following command show the help message not the error one (above) ?
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/unpack200 --help
Comment 3 pblemel 2010-06-02 20:44:07 UTC
Thanks.

The problem is that JDK1.6 is only compiled for 64 bit Macs.  PPC and older Intel macs are 32 bit.  Running anything from the 1.6 directory fails with 'Bad CPU type in executable' because the code is not universal.

If one can reasonably expect non-JavaFX parts of Netbeans to work under JDK1.5 then the workaround may be to change the path in the script.  There is a symbolic link in /System/Library/Frameworks/JavaVM.framework/Versions that points to the current (default) JDK.  In my case CurrentJDK@ -> 1.5.  If the installer used that link instead of the hard '1.6' things might work(?).  

I.e. /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/unpack200 --help works fine on my PPC mac.


(In reply to comment #2)
> Actually NetBeans installer should work fine on Mac OS X PPC even though it is
> not tested.
> 
> Looks like the problem is with the Java installed
> Calling 
> /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/unpack200
> resulting in "Bad CPU type in executable" message.
> 
> Does Java works fine on your system?
> 
> Does the following command show the help message not the error one (above) ?
> /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/unpack200
> --help
Comment 4 dlipin 2010-06-02 20:52:56 UTC
> The problem is that JDK1.6 is only compiled for 64 bit Macs.  PPC and older
Intel macs are 32 bit.  Running anything from the 1.6 directory fails with 'Bad
CPU type in executable' because the code is not universal.

If Java 6 is unuseful on such system then you'd better uninstall/delete 1.6 completely (or delete the "1.6" link at all) to avoid such problems.
Then likely you would be able to use Java 5 for installer and for NetBeans itself.


> If one can reasonably expect non-JavaFX parts of Netbeans to work under JDK1.5
then the workaround may be to change the path in the script.  

Well.. installer and NetBeans 6.8 itself works fine with Java 5. As for NetBeans 6.9 then only Java 6 is supported.


> If the installer used that link instead of the hard '1.6' things might work(?).  
Maybe. But for it is not the way to go for NetBeans 6.9 since Java 6 is the only supported version (not Java 5).
Comment 5 pblemel 2010-06-02 21:13:56 UTC
(In reply to comment #4)
> Well.. installer and NetBeans 6.8 itself works fine with Java 5. As for
> NetBeans 6.9 then only Java 6 is supported.
That's why I invalidated the issue :-)   

I am curious which Java and C/C++ features, aside from FX development, really need Java 6.   I'll download the 6.9 platform sources and try to build them with JDK5, and see where that gets me.

Thanks for your time.
Comment 6 dlipin 2010-06-02 21:21:41 UTC
> I am curious which Java and C/C++ features, aside from FX development, really
need Java 6.

Well... actually NetBeans IDE is itself written in Java language and it uses (as for 6.9) a few Java6 features to work. That is true not only for NetBeans IDE but also for NetBeans Platform.