On 2009-02-23, at 10:51EST, doug livesey wrote:
Ah, I think the problem is related to you running the script as root.
I get permission denied if I try as anything other than root -- the
install
root dir is /usr/local.
I guess I need to chmod some stuff, but I'm not sure what.
I think it's because sudo does not inherit your shell environment:
[...@dueling-banjos ~ 11:03:53]$ echo $JAVA_HOME
/usr/
[...@dueling-banjos ~ 11:04:03]$ sh -c '(echo $JAVA_HOME)'
/usr/
[...@dueling-banjos ~ 11:04:17]$ sudo sh -c '(echo $JAVA_HOME)'
[...@dueling-banjos ~ 11:04:23]$
I'm not a Linux expert, but you should be able to run everything as a
normal user. That's what I do under OS X (which is really just a Unix
under the covers).