To: | |
---|---|
Subject: | Re: [ts-7000] lib question |
From: | "Don W. Carr" <> |
Date: | Tue, 21 Nov 2006 19:54:07 -0600 |
I added a lib on the TS-7260 I have, but do not remember the details, and it is loaned out right now, so I can not check it. As I recall, since the 7260 runs TS-Linux, and not debian, it just loads anything in finds in /lib or /usr/lib, and maybe /usr/local/lib.
You could also try setting the LD_LIBRARY_PATH environment variable to see if it can find the .so file, though you really should not use that for a permanent fix. I have always been able to figure out how to get it to load libraries when I need to. Typically, it will always work if you copy the .so file to /lib, and run ldconfig (if necessary). I prefer to use /usr/local/lib so it is easy to see the libraries that you added, but if you can't make it work, just try copying it into /lib. Also look at the file permissions. Another thing, if you are adding a system library, you sometimes need symbolic links to point at the .so that should be used for each version of a library. This happens when the new library is backward compatible with the old one. As an example, look at libm below. When you compile a library, it will always create a dependency on the most recent version in your environment (not sure exactly how it does it). -rw-r--r-- 1 root root 132080 2006-05-21 13:46 libm-2.3.6.so lrwxrwxrwx 1 root root 13 2006-06-12 08:50 libm.so.6 -> libm-2.3.6.so There are som command line tools that can help when diagnosing problems with shared libraries: ldd <filename> will dump the libraries (including versions) that this shared object or executable references. nm <filename> will show all of the symbols in a file (remember for C++ you will have mangled names) Talking about shared libraries, you can use dlopen(), dlclose(), dlsym(), and dlerror() to dynamically load shared objects and execute function inside under program control. Great for adding extensions, etc. This is what they use for Apache Modules and other types of plugins. Well, let us know what you find out. Just keep snooping, you will figure it out. Don. On 11/21/06, David <> wrote:
|
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [ts-7000] Re: TTL to RS232 converter, Jason Stahls |
---|---|
Next by Date: | Re: [ts-7000] lib question, David |
Previous by Thread: | Re: [ts-7000] lib question, David |
Next by Thread: | Re: [ts-7000] lib question, David |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU