On Wednesday 07 June 2006 22:53 fei huang was like:
> On 6/7/06, Robert Persson <[EMAIL PROTECTED]> wrote:
> > in /etc/env.d/00basic I have the line
> > LDPATH="/usr/local/lib"
> > yet when I enter "echo $LDPATH" I get nothing and I have to set it
> > manually to
> > get programs using libraries installed in /usr/local/lib to work.
> >
> > What have I done wrong?
>
> run env-update and make sure that path to your lib directory is shown
> within /etc/ld.so.conf. or set LD_LIBRARY_PATH, both works..

Thanks both to you and to jure for your replies to this question.

env-update doesn't put it right. However  I do have an /etc/ld.so.conf with 
all the right directories in it. LDPATH is supposed to be generated 
using /etc/ld.so.conf, is that right? If so, why isn't it working?

LD_LIBRARY_PATH is a variable I would need to set manually, isn't it? I'd 
rather avoid doing that if possible if there is something that is supposed to 
set the path automatically.

Here is my ld.so.conf, just in case there is some bad syntax in it or 
something that would cause the problem:

# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
/usr/athena/lib
//usr//lib/opengl/ati/lib
/usr/i686-pc-linux-gnu/lib
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5
/opt/intel/compiler70/ia32/lib
/usr/lib/nspr
/usr/lib
/usr/lib/mozilla
/usr/lib/openmotif-2.2
/opt/sun-jdk-1.4.2.10/jre/lib/i686/
/opt/sun-jdk-1.4.2.10/jre/lib/i686/native_threads/
/opt/sun-jdk-1.4.2.10/jre/lib/i686/client/
/opt/sun-jdk-1.4.2.10/jre/lib/i686/server/
/usr/lib/qt4
/usr/kde/3.5/lib
/usr/qt/3/lib
/usr/kde/3.3/lib
/usr/lib/nss
/usr/qt/2/lib
/usr/games/lib
/usr/lib/fltk-1.1
/opt/kylix3
/usr/lib/libstdc++-v3/

-- 
Robert Persson

That's MISTER Scum to you.
-- 
gentoo-user@gentoo.org mailing list

Reply via email to