Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Linux

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 01-31-2007, 04:45 AM
Chris
Newsgroup Contributor
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 01-31-2007, 04:45 AM
  #2 (permalink)  
Old 01-31-2007, 04:45 AM
Sybren Stuvel
Newsgroup Contributor
 
Posts: n/a
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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 01-31-2007, 04:45 AM
Chris
Newsgroup Contributor
 
Posts: n/a
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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 01-31-2007, 04:45 AM
Sybren Stuvel
Newsgroup Contributor
 
Posts: n/a
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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 01-31-2007, 04:45 AM
darklight
Newsgroup Contributor
 
Posts: n/a
Re: What libraries

It would help if you told us what the program is?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 01-31-2007, 04:45 AM
Chris
Newsgroup Contributor
 
Posts: n/a
Re: What libraries

darklight wrote:

> It would help if you told us what the program is?


It is nxplotadmin for NX from UGS.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
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?

All times are GMT -8. The time now is 11:31 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0