LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-23-2010, 07:10 AM   #1
NoahJK
LQ Newbie
 
Registered: Mar 2010
Posts: 26

Rep: Reputation: 0
See the source of libs


Hey

Is it possible to find out the source of libdb_cxx-4.3.so and other lib files in Linux? If yes, how?
 
Old 10-23-2010, 07:48 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,
Quote:
Is it possible to find out the source of libdb_cxx-4.3.so
To my knowledge libdb_cxx is part of the Berkeley DB package.

Here a download link to the newest version: Berkeley DB-4.8.26 (I did a quick search for version 4.3, but could not locate it).

Quote:
and other lib files in Linux? If yes, how?
Feeding your search-engine will, most of the time, help. In this case you might want to add source to the search criteria (i.e. libdb_cxx source).

Hope this helps.
 
Old 10-23-2010, 07:59 AM   #3
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Jessie (Fluxbox WM)
Posts: 1,387
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
You can use apt-file search or yum provides (depending on your distro) to find out which package provides the library that you are examining.

The distro will have two packages, one with just the runtime, the second with the development files (eg '-dev' packages). You can find these by going to the web interface of your distros packages. These web pages have a link to the source used to create the package.

For example, you will find the package libdb4.3++-dev in the Ubuntu repository for Hardy, with a link to the source.

Last edited by neonsignal; 10-23-2010 at 08:06 AM.
 
Old 10-23-2010, 09:23 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Google was, and still is, your friend. Googling libdb_cxx-4.3.so turned up this.
ciao,
jdk
 
Old 10-24-2010, 07:26 AM   #5
NoahJK
LQ Newbie
 
Registered: Mar 2010
Posts: 26

Original Poster
Rep: Reputation: 0
It's a RPM, how could I see the source of rpm?
 
Old 10-24-2010, 10:44 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,
Quote:
Originally Posted by NoahJK View Post
It's a RPM, how could I see the source of rpm?
I you downloaded a normal rpm file: You cannot. Normal rpm files consist of pre-compiled binaries (among other files).

If you download a source rpm ( <whatever>.src.rpm) you can extract the information and have a look at the source file(s).

Here a link that might help: RedHat RPM Source Packages by Bruce Garlock

Hope this helps.
 
Old 10-24-2010, 04:34 PM   #7
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
For debian you can obtain a source package for any binary package with simply apt-get source <name of package>. Think it should work for any debian-based distribution.
 
  


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
link-time libs need to be run0time libs says curl's make install UniquelyAm Linux - Software 0 06-09-2007 02:40 AM
Libs required for CS:Source server. help! MajSlayer420 Linux - Networking 0 04-19-2005 06:04 PM
Upgrading Libs From Source Pizentios Linux - Software 4 01-04-2005 06:35 PM
BitchX installation from source problem finding libs CragStar Linux - Software 0 11-21-2002 11:46 AM
old c libs rlpt Programming 1 02-19-2002 10:04 PM


All times are GMT -5. The time now is 06:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration