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


 
Search: 

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