PDA

View Full Version : Install on Linux fails



markusb
05-12-2004, 01:15 PM
I keep getting noJVM errors when I try to install InstallShield X even though I do have a working JVM in my path and even specify -is:javahome

Any idea what I'm doing wrong?

Thanks
Markus

markusb/is> sh InstallShieldUniversal_Linux.sh -is:log log -is:javahome /usr/java/j2re1.4.2_03

This application requires a Java Run Time Environment (JRE)
to run. Searching for one on your computer was not successful.
Please use the command line switch -is:javahome to specify
a valid JRE. For more help use the option -is:help.


markusb/is> more log
Log file created by MultiPlatform installer @Wed May 12 20:04:20 CEST 2004
INSTALLER_PATH=
command line switch -is:javahome is specified. Verifying the JVM with the JVM fi
les specifed with the launcher.
JVM specified with -is:javahome cannot be verified with the JVM files specified
with the launcher. Environment Variables will be checked next...
Checking the environment variables specifed in the JVM files to find the JVM...
No JVM can be found using the shell environment variable. Searching JVM will co
ntinue with Path Hints specified in the JVM Files...
jvm files not specified. Searching a JVM cannot be performed.
Extracting bundled JRE...
checking disk space on the parition /home/markusb/istemp9327133200420 for /home/
markusb/istemp9327133200420/Linux-Sun-jdk-1.4.2_04.bin
51666 512 bytes disk blocks required.
1328880 512 bytes disk blocks available on the partition /home/markusb/istemp93
27133200420
Disk space check on the parition /home/markusb/istemp9327133200420 succeeded.
/home/markusb/istemp9327133200420/Linux-Sun-jdk-1.4.2_04.bin is not found. Error
extracting bundled JRE. Failed to launch the application.

markusb/is> java -version
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
markusb/is> which java
/usr/java/j2re1.4.2_03/bin/java

CharlesW
05-13-2004, 11:23 AM
I almost appears that files can not be extracted from the InstallShield X launcher. First, I would like you to try the same command line that you had run previously. Before doing so, set the environment variable "ismpVV=1". This should generated more verbose logging.


In addition, try the following:

-Copy InstallShieldUniversal_Linux.sh to and empty directory and "cd" to this directory.
-Run the command line "InstallShieldUniversal_Linux.sh -is:extract"

Files should be extracted to a new directory named "istemp.........". If not, then this definately indicates a problem.

markusb
05-13-2004, 11:44 AM
Charles, thanks for the reply!

I ran
sh InstallShieldUniversal_Linux.sh -is:extract
and nothing got extracted.

Then I added the executable permission flag to the script, ran InstallShieldUniversal_Linux.sh -is:extract
without invoking the shell first and I got 4 files extracted.

So I got it all installed now.
Looks like that script is allergic to being invoked by another shell.
It's probably stated in some manual, which I didn't read ;-)

Thanks again!
Markus

CharlesW
05-14-2004, 02:33 PM
Actually, I did not see it explicitly stated that you should not use "sh" when launching the installer. Strangely enough, I could not reproduce a problem when using "sh InstallShieldUniversal_Linux.sh". In any event, I'm glad to see that everything is working correctly.

raju.sunny
05-03-2005, 03:28 AM
Hi all
i wanted to review the installshield for linux
but im getting the following install errors(its not even starting)

sh installshielduniversal_linux.sh -is:extract
: command not foundsal_linux.sh: line 6:
'nstallshielduniversal_linux.sh: line 7: syntax error near unexpected token `
'nstallshielduniversal_linux.sh: line 7: `main()


what can be the error
please enlighten me
Regards
Raju

jweber
05-10-2005, 10:46 AM
I have seen this error as well, does anyone of any potential causes?

jweber
05-11-2005, 11:14 AM
Seems to have something to do with EOL...

carpe08
05-17-2005, 06:21 AM
Hi,

My setup.jar hangs on some RedHat Linux machines.

When I issues the command:
$JAVA_HOME/bin/java -Dis.debug=1 -cp setup.jar -options "ams.rsp" -silent

It prints the following:

HpuxUtils: getCompatibilityScore()
HpuxUtils: Comparing HP-UX to Linux
HpuxUtils: match = false
HpuxUtils: Comparing HP-UX to Linux
HpuxUtils: match = false
HpuxUtils: score = 0
HpuxRegServImpl: getSystemCompatibility()
HpuxUtils: getCompatibilityScore()
HpuxUtils: score = 0
HpuxRegServImpl: return score 0
(May 17, 2005 3:56:36 AM), Install, com.ibm.wizard.platform.linux.LinuxRegistryServiceImpl, dbg.registry, reading VPD from /home/qauser/vpd.properties
GenericUnixFileServiceImpl returns compatibility: 4
HpuxUtils: getCompatibilityScore()
HpuxUtils: score = 0
HpuxUtils: getCompatibilityScore()
HpuxUtils: score = 0

On other machines where the installer is successful, it queries the JVM for the state of the memory and then installs the files.
However on some RedHat machines, it just hangs.
Perhaps it can't find a JVM?

Has anyone seen this problem?

BTW: I upgraded my installer to IS X SP2, which mentions a problem like this, but it doesn't help.

Thanks!
:confused:

jweber
05-17-2005, 08:28 AM
Did you try to run as root? Also your debugging output mentions HPUX but you mention RedHat in your post... Are you trying to run your HPUX installer on RedHat? If so have you tried to build and run a Linux native installer?

carpe08
05-17-2005, 09:31 AM
Thank you Jemremy,

Yes I am running at root. I was wondering if it has something to do with permissons.

I'm not sure why is says HpuxUtils.
I am just running the setup.jar and I also hhave setuplinux.bin in the same folder.

I ran setuplinux.bin in GUI mode and it also seems to hang when it invokes the same java command that I run from the command line (I can tell from ps- fe).

jweber
05-17-2005, 09:52 AM
In that case I would continue to try to make it work running in GUI mode rather than silenet, as it will be easier to troubleshoot.

Do you have anything in the log file at all?
How far does it get before it hangs?
Does it correctly identify the correct JVM to use?

carpe08
05-17-2005, 10:01 AM
Yes, I redirect messages to a log file.

The only line that it writes is:
(May 17, 2005 8:47:39 AM), Install, com.ibm.wizard.platform.linux.LinuxRegistryServiceImpl, dbg.registry, reading VPD from /root/vpd.properties

On a good install, after this message, the debug messages says

(May 17, 2005 10:44:00 AM), Install, com.ibm.wizard.platform.linux.LinuxProductServiceImpl, dbg.install, JVM memory before installing Files (files1): free=2677792 total=5529600

(May 17, 2005 10:44:00 AM), Install, com.ibm.wizard.platform.linux.LinuxProductServiceImpl, msg1, installing Files (files1)


But I'm not getting any of this one the machine.
So I guess it must be hanging on finding the JVM.

Thanks, Jeremey!

jweber
05-17-2005, 10:14 AM
Hhmmm, sounds pretty weird. Heres some stuff I would try...


1. Verify that your preferred JDK/JRE is in the path.
2. Rename /root/vpd.properties to vpd.old and reanalyze log files.
3. I had problems with installing files on linux when I specfied attributes. I dont know even if your getting this far though... If so I would temporarily remove an specific attributes that u are setting.
4. Change/Verify your JVM resolutions for Linux. Possibly add a full search...
5. Add some system outs to dialogs or events as the first things executed to see if you are least getting that far...
6. Make sure you can get the GUI version working before tackling Silent.
7. Last but not least, create a simple test installation that simple installs one file. If this works, it is a good indication that your real installation is the culprit. If not then maybe is platform/environment related...

carpe08
05-19-2005, 01:27 PM
It looks like it has something to do with mapped drives.

InstallShield must be looking for something and doing a full disk search - maybe the JVM or the vpd.properties file.

It will hang even if I bundle the JVM so perhaps its the vpd.properties file.

Termit
05-24-2005, 03:12 AM
Hi,

I'm trying to execute an universal installer in a linux and I get this error:

>bash setuplinux.bin -is:log log

Initializing InstallShield Wizard........

setuplinux.bin: line 158: bc: command not found
setuplinux.bin: line 346: [: : integer expression expected
setuplinux.bin: line 158: bc: command not found
setuplinux.bin: line 346: [: : integer expression expected
setuplinux.bin: line 158: bc: command not found
setuplinux.bin: line 346: [: : integer expression expected
...
setuplinux.bin: line 158: bc: command not found
setuplinux.bin: line 1158: [: : integer expression expected
setuplinux.bin: line 158: bc: command not found
setuplinux.bin: line 1158: [: : integer expression expected
setuplinux.bin: line 158: bc: command not found
...

This application requires a Java Run Time Environment (JRE)
to run. Searching for one on your computer was not successful.
Please use the command line switch -is:javahome to specify
a valid JRE. For more help use the option -is:help.

Then when I read the log file this is the result:

Log file created by MultiPlatform installer @dt mai 24 11:16:01 CEST 2005
INSTALLER_PATH=/mnt/setuplinux.bin
Checking the environment variables specifed in the JVM files to find the JVM...
No JVM can be found using the shell environment variable. Searching JVM will c
ntinue with Path Hints specified in the JVM Files...
jvm files not specified. Searching a JVM cannot be performed.
is not found. Error extracting bundled JRE. Failed to launch the application.

Any idea to solve this problem? I tried to different bundled JVM's and I get always the same response.

jweber
05-24-2005, 09:09 AM
I had a very similiar problem and it was due to my packaging after the installer was built. I using ant to tar.gz the setup file and some how that was screwing up the line endings...

Termit
05-24-2005, 10:32 AM
The solution was obvious. I needed the bc command to make it work. :p

jweber
05-24-2005, 10:37 AM
BC? Whats that?

Termit
05-24-2005, 11:12 AM
bc is a linux command (I think it is an interpreter for a mathematic language but I am not sure) that the installer uses and in my distribution was not installed by default. If you have SP2 this "problem" is solved.

Now I'm having more problems hehehe, the installer hangs launching the installation assistant. I looked at the log and the end of it is the following...

Verification passed for /root/istemp20268144192358/_bundledJRE_ using the JVM f
le /root/istemp20268144192358/_bundledJRE_/jvm.
-cp:p operand is empty
-cp:a operand is empty
checking disk space on the parition /root/istemp20268144192358 for /root/istemp
0268144192358/setup.jar
220622 512 bytes disk blocks required.
27321408 512 bytes disk blocks available on the partition /root/istemp20268144
92358
Disk space check on the parition /root/istemp20268144192358 succeeded.
Build time Java arguments are not specified.
Run time Java arguments are not specified.
Warning: internal error parsing Java arguments. Launcher command may be missingJava Arguments.
setting up prelaunch environment
LAUNCH_COMMAND="/root/istemp20268144192358/_bundledJRE_/bin/java" -cp .:::::"/
oot/istemp20268144192358/setup.jar"::::: -Dtemp.dir="/root" -Dis.jvm.home="/root
/istemp20268144192358/_bundledJRE_" -Dis.jvm.temp="1" -Dis.media.home="/root/is
emp20268144192358/setup.jar" -Dis.launcher.file="/mnt/./setuplinux.bin" -Dis.jvm
.file="/root/istemp20268144192358/_bundledJRE_/jvm" -Dis.external.home="/mnt/."
run 1>>/root/logg 2>>/root/istemp20268144192358/APP_STDERR


I think the problem is in the bolded text but I am not sure and if it is the case I don't know how to solve the problem.
I would appreciate a lot help in this problem. Thanks in advance

sgupta
08-01-2012, 10:15 AM
I am also stuck with the same issue and my installer just hangs. And the log shows
>> Install, com.ibm.wizard.platform.linux.LinuxRegistryServiceImpl, dbg.registry, reading VPD from /root/vpd.properties

The vpd.properties doesn't exist on this path.

When the same installer is executed on different RHEL 6 box..it just work perfect.

The BC is already installed on both the boxes.

Can someone please help...:)