Forum Problems Installing LAMS: Problem installing/running LAMS 2.0.4 on MacOS 10.4.10


 
Search: 

5: Problem installing/running LAMS 2.0.4 on MacOS 10.4.10
In response to 4 09/08/07 01:02 AM
[ Reply | Forward ]
Fiona,

Thanks for the info. I tried sudo ./run.sh but the command was not found even though I can see it in the directory list.

I then tried the run command as it appears in the run-lams.sh script. Don't know what all the attributes mean, but I figured it might reveal something.

Here's the contents of the terminal window:

MBP17:/usr/local/jboss-4.0.2/bin bazza$ clear

MBP17:/usr/local/jboss-4.0.2/bin bazza$ ls
classpath.sh run.bat shutdown.sh
deployer.bat run.conf twiddle.bat
deployer.sh run.jar twiddle.jar
jboss_init_redhat.sh run.sh twiddle.sh
jboss_init_suse.sh shutdown.bat
run-lams.sh shutdown.jar

MBP17:/usr/local/jboss-4.0.2/bin bazza$ run.sh
-bash: run.sh: command not found

MBP17:/usr/local/jboss-4.0.2/bin bazza$ nohup ./run.sh > /dev/null &
[1] 914

MBP17:/usr/local/jboss-4.0.2/bin bazza$ nohup ./run.sh > /dev/null &
[1] 925

MBP17:/usr/local/jboss-4.0.2/bin bazza$ nohup ./run.sh > /dev/null &
[2] 926

Does this give you any idea of what's happening?

Thanks
Barry

Posted by Barry Kayton

6: Re: Problem installing/running LAMS 2.0.4 on MacOS 10.4.10
In response to 5 09/09/07 03:29 AM
[ Reply | Forward ]
Barry,

The "> /dev/null" tells the operating system to throw away any messages that would normally appear on the terminal.

The "&" on the end means run in the background ie start running and keep running but give me the prompt back again so I can do something else.

The "nohup" on the front means leave the program running even after I logout/close the shell window.


So you really need to do just "./run.sh"

And "./run.sh" is different to "run.sh" I won't try to explain why, just take it that sometimes "./run.sh" will work when "run.sh" won't.

But you say you tried "sudo ./run.sh" and that gave you command not found. That is really weird. I'm wondering if it is run.sh it can't find, or something in the actual script it can't find.

Can you edit run.sh and add a new line "set -vx" as the second line. It will now look like:

#!/bin/sh
set -vx
### ====================================================================== ###
## ##
## JBoss Bootstrap Script



Then when you try to run it, it will dump out each line of the script as it goes. Then if it is running the script and failing within the script, we will be able to see how far it gets. e.g.

fiona-malikoffs-computer:/usr/local/jboss-4.0.2/bin fiona$ sudo ./run.sh
### ====================================================================== ###
## ##
## JBoss Bootstrap Script ##
## ##
### ====================================================================== ###

### $Id: run.sh,v 1.19.4.2 2004/12/15 16:54:03 starksm Exp $ ###

DIRNAME=`dirname $0`
dirname $0
++ dirname ./run.sh
+ DIRNAME=.
PROGNAME=`basename $0`
basename $0
++ basename ./run.sh
+ PROGNAME=run.sh
GREP="grep"
+ GREP=grep

Posted by Fiona Malikoff

7: Problem installing/running LAMS 2.0.4 on MacOS 10.4.10
In response to 6 09/09/07 08:44 AM
[ Reply | Forward ]
Success!

LAMS is now running on my Intel Macbook Pro and on my Powerbook too.

I found the solution here:

http://developer.apple.com/internet/java/enterprisejava.html

Specifically the startup scripts were not executable, a problem fixed by navigating to /usr/local/jboss-4.0.2/bin and entering the following command:

chmod ug+x *.sh

Thanks for all your advice and suggestions, especially your explanations of the Unix commands. Using Terminal is not as challenging or as foreign as it first seems.

Regards
Barry

PS

I've just installed Ubuntu 7.0.4 on my HP laptop and will try to get LAMS running on that too.

Posted by Barry Kayton

8: Re: Problem installing/running LAMS 2.0.4 on MacOS 10.4.10
In response to 7 09/09/07 05:39 PM
[ Reply | Forward ]
Doh!

I should have thought of that. That will give the exact symptom that you described. My apologies.

Fiona

Posted by Fiona Malikoff

Reply to first post on this page
Back to Problems Installing LAMS