Re: $PATH?

Neil Bothwick <[email protected]>
Newsgroups gmane.linux.gentoo.ppc
Organization Digital Media Production
Message-ID <[email protected]>
On Wed, 10 Aug 2005 02:16:04 -0700, Mike S wrote:

> ok I am stumped as to where the $PATH is set.  I know in OSX I just 
> added a ~/.profile and every time I opened the terminal that would be 
> read and I could export environmental variables there.  however I tried 
> that here, and the file didn't seem to do anything.  I open a new 
> terminal and the $PATH is still the same as before.

It should be set in one or more of the files in /etc/env.d.

> The reason I am trying this is because I just installed limewire, and 
> the java in /opt/ibm-jre-bin-1.4.2 is not in my path.  So when I open 
> limewire it can't find the "java" command, which, again, is in 
> /opt/ibm-jre-bin-1.4.2/bin.

The standard paths are set in /etc/env.d/00basic but the java ebuild
should have added a separate file for java settings,
usually /etc/env.d/20java. Mine contains

# Autogenerated by java-config
# Command: --set-system-vm=ibm-jdk-bin-1.4.2
JDK_HOME=/opt/ibm-jdk-bin-1.4.2
JAVAC=/opt/ibm-jdk-bin-1.4.2/bin/javac
PATH="/opt/ibm-jdk-bin-1.4.2/bin:/opt/ibm-jdk-bin-1.4.2/jre/bin"
ROOTPATH="/opt/ibm-jdk-bin-1.4.2/bin:/opt/ibm-jdk-bin-1.4.2/jre/bin"
LDPATH="/opt/ibm-jdk-bin-1.4.2/jre/bin/:/opt/ibm-jdk-bin-1.4.2/jre/bin/classic"
# VERSION="IBM JDK 1.4.2"
JAVA_HOME=/opt/ibm-jdk-bin-1.4.2

As you can see from the comment, maybe you should run java-config to set
up java correctly.


-- 
Neil Bothwick

Quantum Physics: The dreams that stuff is made of
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFC+gAqum4al0N1GQMRAnAsAKC2uSTxg9Vvh3i2N+F08l2IQpQ6WgCfVQF2
t0/AgGs1X9pZ6VbV0SUmrjE=
=b+T6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.