You are not logged in.

#1 2007-04-08 22:59:55

N30N
Member
Registered: 2007-04-08
Posts: 273

Where should LD_LIBRARY_PATH be placed?

Hi everyone (installed Arch for the first time yesterday, and loving it big_smile)!

I wanna make a lib32-konqueror-nsplugins package for Arch64. I've made all the lib32 dependencies PKGBUILD's, I just need a lil help with the main one. For it to work you need to set LD_LIBRARY_PATH before launching konqueror.

export LD_LIBRARY_PATH=/opt/lib32/opt/qt/lib/

Not being a long time Arch/linux user I dont know where's the best place to get the PKGBUILD to place it...? hmm

EDIT:
Never mind, making the following link works fine.

ln -s /opt/lib32/opt/qt/lib/libqt-mt.so.3 /usr/lib/libqt-mt.so.3

Last edited by N30N (2007-04-09 17:24:35)

Offline

#2 2007-04-09 17:13:54

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Where should LD_LIBRARY_PATH be placed?

Usually you'd add the path to the end of /etc/ld.so.conf, I think, then make sure ldconfig was run.

Offline

#3 2007-04-09 17:30:51

N30N
Member
Registered: 2007-04-08
Posts: 273

Re: Where should LD_LIBRARY_PATH be placed?

Cerebral wrote:

Usually you'd add the path to the end of /etc/ld.so.conf, I think, then make sure ldconfig was run.

Ahhh cool, thanks(!), but I think it's a bit easyer for the PKGBUILD to just add the symbolic link (unless there is anything wrong with that? wink).

Offline

#4 2007-04-10 02:22:47

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Where should LD_LIBRARY_PATH be placed?

N30N wrote:
Cerebral wrote:

Usually you'd add the path to the end of /etc/ld.so.conf, I think, then make sure ldconfig was run.

Ahhh cool, thanks(!), but I think it's a bit easyer for the PKGBUILD to just add the symbolic link (unless there is anything wrong with that? wink).

Well, then this way you'd have to make sure every lib in /opt/lib32/opt/lib/qt had a symlink in /usr/lib - this could get pretty messy.  If you add a line to ld.so.conf, then that gets every lib in the /opt/lib32/opt/lib/qt path - that's really the whole point of ld.so.conf

Offline

#5 2007-04-12 09:51:43

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: Where should LD_LIBRARY_PATH be placed?

Yupp, you shouldn`t link from /usr to /opt/lib32; use ld.conf instead.

Offline

#6 2007-05-01 18:22:47

N30N
Member
Registered: 2007-04-08
Posts: 273

Re: Where should LD_LIBRARY_PATH be placed?

Cerebral wrote:

Well, then this way you'd have to make sure every lib in /opt/lib32/opt/lib/qt had a symlink in /usr/lib - this could get pretty messy.  If you add a line to ld.so.conf, then that gets every lib in the /opt/lib32/opt/lib/qt path - that's really the whole point of ld.so.conf

Sorry for my late reply. wink
Well only libqt-mt.so.3 is needed for my package to function correctly (have been using to for a while now with no errors). I don't see my package as being the correct place to be adding the line to ld.so.conf for the lib32-qt package. I would need to add a script to remove the line upon removal and that could mess things up if the lib32-qt starts adding the line (and then a user removes my package). So adding the a link is a cleaner way for now, is it not?

Last edited by N30N (2007-05-01 18:25:06)

Offline

Board footer

Powered by FluxBB