Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Promlems with ENV VARIABLES
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
nike
n00b
n00b


Joined: 30 Jul 2003
Posts: 12

PostPosted: Wed Jul 30, 2003 8:49 pm    Post subject: Promlems with ENV VARIABLES Reply with quote

Sorry for my bad English!

Point is this.
I cant add some paths into PATH, LDPATH
but into JAVA_HOME paths added with no problems

I added in /etc/env.d/ file
80java:
PATH=/opt/j2sdk1.4.0/bin:/opt/j2sdk1.4.0/jre/bin
LDPATH=/opt/j2sdk1.4.0/jre/lib:/opt/j2sdk1.4.0/jre/lib/i386
JAVA_HOME=/opt/j2sdk1.4.0
CLASSPATH=.

then type:
env-update

check content of files:
ld.so.conf:
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2
/usr/lib/opengl/xfree/lib
/usr/X11R6/lib
/usr/qt/3/lib
/opt/j2sdk1.4.0/jre/lib
/opt/j2sdk1.4.0/jre/lib/i386

profile.env:
# THIS FILE IS AUTOMATICALLY GENERATED BY env-update.
# DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES
# GO INTO /etc/profile NOT /etc/profile.env
export KDEDIRS='/usr'
export INFODIR='/usr/share/info:/usr/X11R6/info'
export INFOPATH='/usr/share/info:/usr/share/gcc-data/i586-pc-linux-gnu/3.2/info'
export CLASSPATH='.'
export ROOTPATH='/usr/local/bin:/opt/bin:/usr/i586-pc-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/usr/qt/3/bin'
export CONFIG_PROTECT='/usr/X11R6/lib/X11/xkb /usr/share/config'
export MANPATH='/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i586-pc-linux-gnu/3.2/man:/usr/X11R6/man'
export PATH='/usr/local/bin:/opt/bin:/usr/i586-pc-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/usr/qt/3/bin:/opt/j2sdk1.4.0/bin:/opt/j2sdk1.4.0/jre/bin'
export JAVA_HOME='/opt/j2sdk1.4.0'
export LESS='-R'
export GDK_USE_XFT='1'
export CXX='g++'
export HOSTNAME='2life'
export G_BROKEN_FILENAMES='1'
export QMAKESPEC='linux-g++'
export CC='gcc'
export CVS_RSH='ssh'
export PAGER='/usr/bin/less'
export QTDIR='/usr/qt/3'
export LESSOPEN='|lesspipe.sh %s'
export XINITRC='/etc/X11/xinit/xinitrc'

After restart my PC! And check PATH:
echo $PATH
/usr/local/bin:/opt/bin:/usr/i586-pc-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/usr/qt/3/bin:/opt/j2sdk1.4.0/bin:/opt/j2sdk1.4.0/jre/bin

echo $LDPATH

(is empty string)

but with JAVA_HOME is all oK
echo $JAVA_HOME
/opt/j2sdk1.4.0

Please help!!!
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Thu Jul 31, 2003 12:29 am    Post subject: Reply with quote

LDPATH is not used to set an environment variable , but to construct the paths in /etc/ld.so.conf.

From your listing it seems to be working fine, unless I'm totally blind :)

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
nike
n00b
n00b


Joined: 30 Jul 2003
Posts: 12

PostPosted: Thu Jul 31, 2003 9:12 am    Post subject: Reply with quote

Ok!
How to set LDPATH and add some paths inti PATH???
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum