Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: ld.so.conf and cache problems, is there a way around it?< Next Oldest | Next Newest >
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Nov. 30 2004,20:22 QUOTE

In order to install r-recommended using apt-get, I had to delete the link from /etc/ld.so.cache to /KNOPPIX/etc/ld.so.cache and replace it with a copy of that file.  That let the program install and it worked fine.

I've been trying to make a dsl package, but I've run into a snag: if I put ld.so.cache and ld.so.conf into the dsl, everything works but I'm overwriting what the user had before (bad).  If I don't include ld.so.cache and conf in the package, the program can't find its libraries.

Is there a way to get around this?  Is there any way to view ld.so.cache so I can see where it puts the file virtually so that I can put the real file there?
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Nov. 30 2004,23:27 QUOTE

If the program is having trouble finding it's libraries, maybe you can leave those two files alone and write a shell wrapper that contains an export LD_LIBRARY_PATH statement that tells the program where these libraries are located.

It might not work, but it's worth a try.
Back to top
Profile PM 
aesenadorjr Offline





Group: Members
Posts: 11
Joined: Feb. 2005
Posted: Feb. 25 2005,06:01 QUOTE

I was just reading this wiki entry from linuxquestions.org about ldconfig.

http://wiki.linuxquestions.org/wiki/Library-related_Commands_and_Files

I would like to paraphrase the entry on ldconfig for my own benefit.  It says that if new dynamic library files are added in the directory tree, just edit the ld.so.conf to add the paths to the library files and then run ldconfig.  This will search through all the paths listed in ld.so.conf, create the necessary symlinks, and update the ld.so.cache.

Now, if I may use the newly-found knowledge to this thread, the file ld.so.cache should never be touched directly by any loading of dsl extensions.  First inspect the contents of the ld.so.conf inside his prospective .dsl package and compare it with that of /KNOPPIX/etc/ld.so.conf.  If they match, remove the one inside the .dsl package.  If they do not match, ensure that the new ld.so.conf also contains everything in the old one (edit if necessary) and include it in the .dsl package.  Either way, whoever loads that .dsl package must be alerted to run ldconfig after loading.

If I am still correct so far, then I would like to solicit opinions about revising the /etc/init.d/mydsl-install script such that changes to the ld.so.conf will be detected and will cause ldconfig to run.  This can be applicable only to .dsl extensions.

OK, now I want to know my grade on this one...
Back to top
Profile PM 
2 replies since Nov. 30 2004,20:22 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: ld.so.conf and cache problems

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code