LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-08-2008, 06:02 PM   #1
alosii
LQ Newbie
 
Registered: Aug 2008
Distribution: Fedora
Posts: 3

Rep: Reputation: 0
Websphere 7 installation on linux broken?


Hey guys!

I've downloaded the trial version of the WebSphere Aplication Server 7.0.

They have a little shell called lunchedpad.sh. After trying to run it, the default browser opens(firefox in my case). There is a little link to launch the real installer, after clicking on it I get an error on the console:

Code:
WAS/install: line 435: [: -ge: unary operator expected
Chaking the install.sh on that line you can see:

Code:
...
  if [ $version -ge 5 ]
...
I've tried to run the WAS installer in silent mode and in console mode, and i have the same result. This is under Fedora 9. Any ideas?

Last edited by alosii; 12-08-2008 at 06:08 PM.
 
Old 12-08-2008, 06:28 PM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,901

Rep: Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025
My guess would be that $version is not set so the substitution becomes
Code:
if [  -ge 5 ]
which is invalid syntax.

Sloppy coding on IBM's part. They should have either ensured the variable is set or at least surrounded it with quotes.(Both being preferable).

Having suffered through installing some of the websphere application integration products on AIX in a past life, I don't envy you this task.
 
Old 12-08-2008, 06:37 PM   #3
alosii
LQ Newbie
 
Registered: Aug 2008
Distribution: Fedora
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for responding so fast GazL,

After adding the "" around version i get:

Code:
 line 435: [: : integer expression expected


By looking at the surrounding lines it seams that the installer wants a red hat version number...

Code:
if [ -r /etc/redhat-release ]
	then
        	release=`cat /etc/redhat-release | awk '{print $7}'`
		version=${release%%\.*}
                if [ $version -ge 5 ]
	        then

Im starting NOT to like websphere...

Last edited by alosii; 12-08-2008 at 06:47 PM.
 
Old 12-08-2008, 07:09 PM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,901

Rep: Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025
Quote:
Originally Posted by alosii View Post
Thanks for responding so fast GazL,

After adding the "" around version i get:

Code:
 line 435: [: : integer expression expected


By looking at the surrounding lines it seams that the installer wants a red hat version number...

Code:
if [ -r /etc/redhat-release ]
	then
        	release=`cat /etc/redhat-release | awk '{print $7}'`
		version=${release%%\.*}
                if [ $version -ge 5 ]
	        then
Adding the quotes would have fixed the syntax error, but it still leaves you with a logic error in the code because the comparison will be against a null value.

From looking at that snippet of code you listed, it looks like its looking for a file /etc/redhat-release that contains a version number like '5.0'. Is there a /etc/fedora-release file? If so copy it to
/etc/redhat-release, or create a /etc/redhat-release yourself and stick '5.0' in it.

The install could have other issues though as you're not installing on a true redhat system, so expect further issues, but you may get lucky.


Quote:
Originally Posted by alosii View Post
Thanks for responding so fast GazL,

Im starting NOT to like websphere...
You're welcome, and I know *exactly* how you feel on that one!
Best of luck with it.


Edited - didn't spot the -r test on /etc/redhat-release first time.

Last edited by GazL; 12-08-2008 at 07:14 PM. Reason: editL just noticed the -r check .
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WebSphere on SUSE versus WebSphere on AIX hfwarner3 SUSE / openSUSE 0 10-21-2008 08:39 AM
installing Websphere Application Server 5.0 on Linux Intel ryzor Linux - Enterprise 3 05-15-2006 01:23 PM
WebSphere 6.0 failure on RH Linux 3.0 Lnxstr Red Hat 1 04-28-2005 02:32 PM
WebSphere Application Server 4.0 installation nonny Linux - Software 1 09-24-2002 01:31 AM
Websphere 4.0 Application Server installation nonny Linux - Newbie 1 06-06-2002 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration