LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 07-05-2005, 11:00 AM   #1
cherupop
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Rep: Reputation: 0
Cool linux Command needed


Hi guys

I know there is a command that exist in linux that allows you to see what are the libraries, drivers etc... that are needed for a specific program

I don't know if I'm being clear but is something like

# "command needed" realplayer

and then I get all the software that this application use when it's run.

Thanks
Cherupop :idea:
 
Old 07-05-2005, 11:21 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
ldd will show you what libraries a program is linked against...

Example output:
Code:
j_shaw@jshaw ~ $ ldd /usr/bin/vim
        linux-gate.so.1 =>  (0xffffe000)
        libncurses.so.5 => /lib/libncurses.so.5 (0xb7f01000)
        libgpm.so.1 => /lib/libgpm.so.1 (0xb7efb000)
        libperl.so.1 => /usr/lib/libperl.so.1 (0xb7de5000)
        libutil.so.1 => /lib/libutil.so.1 (0xb7de1000)
        libc.so.6 => /lib/libc.so.6 (0xb7caa000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7c97000)
        libm.so.6 => /lib/libm.so.6 (0xb7c70000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7c6c000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xb7c54000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7c26000)
        /lib/ld-linux.so.2 (0xb7f57000)
If a library isn't found it will show that as well:
Code:
j_shaw@jshaw ~ # ldd /usr/bin/vim
        linux-gate.so.1 =>  (0xffffe000)
        libncurses.so.5 => /lib/libncurses.so.5 (0xb7ef5000)
        libgpm.so.1 => not found
        libperl.so.1 => /usr/lib/libperl.so.1 (0xb7ddf000)
        libutil.so.1 => /lib/libutil.so.1 (0xb7ddb000)
        libc.so.6 => /lib/libc.so.6 (0xb7ca4000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7c91000)
        libm.so.6 => /lib/libm.so.6 (0xb7c6a000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7c66000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xb7c4e000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7c20000)
        /lib/ld-linux.so.2 (0xb7f4b000)

Last edited by jtshaw; 07-05-2005 at 11:24 AM.
 
Old 07-05-2005, 11:26 AM   #3
cherupop
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Original Poster
Rep: Reputation: 0
command needed

yeah that was the one that I was looking for.
Thanks a lot
cherupop

Last edited by cherupop; 07-05-2005 at 11:29 AM.
 
Old 07-06-2005, 12:21 AM   #4
cherupop
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Talking so...

So now I have one more question

What if I wanna know if I have installed one of the librarys needed for a program before I installed
Lets say that the program needs libasound.so.2 , is there a command that tells me if I have that isntalled already or not so I can get it before

thanks again

cherupop

Last edited by cherupop; 07-06-2005 at 12:28 AM.
 
Old 07-06-2005, 12:33 AM   #5
Ynot Irucrem
Member
 
Registered: Apr 2005
Location: Perth, Western Australia
Distribution: Debian
Posts: 233

Rep: Reputation: 30
you could just do the following as root:
Code:
updatedb
locate libasound.so.2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
command line help needed mykrob Linux - Software 5 10-08-2004 01:10 AM
Info needed on export command Nishtya Linux - Newbie 2 07-10-2004 03:45 PM
Routing command needed carrellc Linux - Networking 6 05-28-2004 11:59 AM
Ports Question + Command needed kemplej Linux - General 1 02-12-2004 03:28 AM
search for command needed by taztv gaja Linux - Newbie 1 12-29-2001 02:04 PM


All times are GMT -5. The time now is 09:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration