LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 10: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
 
Old 07-05-2005, 10: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: 67
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 10:24 AM.
 
Old 07-05-2005, 10: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 10:29 AM.
 
Old 07-05-2005, 11:21 PM   #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-05-2005 at 11:28 PM.
 
Old 07-05-2005, 11:33 PM   #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



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 12:10 AM
Info needed on export command Nishtya Linux - Newbie 2 07-10-2004 02:45 PM
Routing command needed carrellc Linux - Networking 6 05-28-2004 10:59 AM
Ports Question + Command needed kemplej Linux - General 1 02-12-2004 02:28 AM
search for command needed by taztv gaja Linux - Newbie 1 12-29-2001 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:27 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
Open Source Consulting | Domain Registration