|
| |||
| What libraries I have a program that runs on RHLE4 and not on OPEN SUSE 10.1. I can not see why the program doesn't run on SUSE there are no error messages. What I would like to know is what command I can type in to see what libraries the program use, so I can compare the libraries between the different operating systems. Thanks in advance |
| |||
| Re: What libraries Chris enlightened us with: > I have a program that runs on RHLE4 and not on OPEN SUSE 10.1. I can > not see why the program doesn't run on SUSE there are no error > messages. Have you tried running it in a terminal? > What I would like to know is what command I can type in to see what > libraries the program use, so I can compare the libraries between > the different operating systems. There are three ways in which a library can be used: - Statically linked. This would mean the library is part of the executable, and thus wouldn't pose any problems in your case. - Dynamically linked, by the compiler. This can be examined with "ldd /usr/bin/program". - Dynamically linked, by the program itself. This is done with the dlopen() function call. If you want to find this, run the program with "strace /usr/bin/program | grep dlopen". Good luck on your hunt! Sybren -- Sybren Stüvel Stüvel IT - http://www.stuvel.eu/ |
| |||
| Re: What libraries Sybren Stuvel wrote: > Chris enlightened us with: >> I have a program that runs on RHLE4 and not on OPEN SUSE 10.1. I can >> not see why the program doesn't run on SUSE there are no error >> messages. > > Have you tried running it in a terminal? > >> What I would like to know is what command I can type in to see what >> libraries the program use, so I can compare the libraries between >> the different operating systems. > > There are three ways in which a library can be used: > > - Statically linked. This would mean the library is part of the > executable, and thus wouldn't pose any problems in your case. > > - Dynamically linked, by the compiler. This can be examined with > "ldd /usr/bin/program". > > - Dynamically linked, by the program itself. This is done with the > dlopen() function call. If you want to find this, run the > program with "strace /usr/bin/program | grep dlopen". > > Good luck on your hunt! > > Sybren Hi Sybren Thank you for the quick reply. I did run the program in a terminal, no errors. |
| |||
| Re: What libraries Sybren Stuvel enlightened us with: > - Dynamically linked, by the program itself. This is done with the > dlopen() function call. If you want to find this, run the > program with "strace /usr/bin/program | grep dlopen". I believe strace logs to stderr, so it would have to be: strace /usr/bin/program 2>&1 | grep dlopen Sybren -- Sybren Stüvel Stüvel IT - http://www.stuvel.eu/ |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Icon libraries | Heatmark | Windows Vista | 2 | 10-11-2007 06:00 PM |
| multiple libraries | BobPole | Windows Media | 0 | 08-05-2007 06:20 PM |
| Are Separate Libraries possible | tomlando | Windows Media | 2 | 05-21-2007 09:30 AM |
| how to see which libraries are loaded | DeoXMAN | Linux | 6 | 05-06-2007 03:20 AM |
| Tablets for libraries | brevik | New Member Introductions & Greetings | 1 | 03-04-2005 09:34 AM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |