[Laszlo-user] Newbie trying to setup on Ubuntu -- JAVA_HOME not set -- but it is!

P T Withington ptw at pobox.com
Mon Feb 23 08:15:57 PST 2009


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:

[ptw at dueling-banjos ~ 11:03:53]$ echo $JAVA_HOME
/usr/
[ptw at dueling-banjos ~ 11:04:03]$ sh -c '(echo $JAVA_HOME)'
/usr/
[ptw at dueling-banjos ~ 11:04:17]$ sudo sh -c '(echo $JAVA_HOME)'

[ptw at 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).



More information about the Laszlo-user mailing list