mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: Aug. 15 2004,21:02 |
|
I've been trying to do the best I can at creating extensions which will cause as little trouble as possible. From what I understand, the safest way to accomplish this is to try to install everything into /opt and $HOME. This not only helps people with less RAM, but also prevents possible overwriting of files already installed on the system. If a user has installed a certain lib which is required by a certain application, it could be harmful to reinstall that lib with a different version. In some situations I've tried to install a link to an existing lib, and so far it seems to work....but this is not ideal...i'd like to be able to add these libs or symlinks to /opt instead of */lib.
I keep running into applications which require libs not included in DSL, and usually I trash the extension if I can't work around it...so what i'm hoping to do is get a better idea of how applications call for these libs, and try to find a way to incorporate them into the extension while leaving the system untouched. I understand that wrappers can be used to point the application to certain libs, but is this specific to the application?
For example, today I'm attempting to make an extension for Audacity...the sources for most of the recommended libs are included, so I assumed that they'd be installed along with the application...particularly when some of the configure options are "--with-libsndfile=local". However, after installing the program into /opt/audacity/, I discovered that the libs were installed into the system lib dirs instead of /opt/audacity/lib/.
I started thinking that perhaps copying the libs into /opt/audacity/lib/ would work if i made a wrapper including the line "sudo ldconfig /opt/audacity/lib"...but this seems kinda sloppy to do each time you run the program, and I'm not even sure it would work.
Does anyone have some suggestions on other ways to include libs into extensions, or how to make wrappers to point the application to specific lib directories?
thanks.
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|