LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-14-2007, 09:48 AM   #1
Harry Seldon
Member
 
Registered: Feb 2004
Distribution: SLES 9
Posts: 112

Rep: Reputation: 15
The difference between .a and .so library files


I'm trying to install netpbm and I need the jpeg functionality. During the install, I'm being asked for my jpeg library file, which defaults to libjpeg.so. I installed the libjpeg-6b-6 rpm package and now I have a libjpeg.a file but no .so. I'm not sure I understand the difference between the two file types. Can libjpeg.a be used as a substitute or equivalent to libjpeg.so?
 
Old 12-14-2007, 09:52 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Install the "libjpeg" package for the .so libraries. You installed the "libjpeg-devel" package.
 
Old 12-14-2007, 09:56 AM   #3
nirvana4ol
LQ Newbie
 
Registered: Dec 2007
Posts: 11

Rep: Reputation: 0
Libraries ending in '.a' are static libraries and in '.so' are shared. More info can be found here.

http://www.dwheeler.com/program-libr...WTO/index.html
 
Old 12-14-2007, 10:09 AM   #4
Harry Seldon
Member
 
Registered: Feb 2004
Distribution: SLES 9
Posts: 112

Original Poster
Rep: Reputation: 15
I had the libjpeg package installed already so I tried installing the development package but still don't have the .so file. Here's what I see:

# find /opt -name libjpeg*
/opt/freeware/lib/libjpeg.a
/opt/freeware/doc/libjpeg-6b
/opt/freeware/doc/libjpeg-devel-6b
/opt/freeware/doc/libjpeg-devel-6b/libjpeg.doc
/opt/freeware/64/lib/libjpeg.a
# find /usr -name libjpeg*
/usr/lib/libjpeg.a
/usr/java14/jre/bin/libjpeg.a
/usr/xlhelp/jre/bin/libjpeg.a
# rpm -qa | grep libjpeg
libjpeg-6b-6
libjpeg-devel-6b-6
 
Old 12-14-2007, 10:11 AM   #5
Harry Seldon
Member
 
Registered: Feb 2004
Distribution: SLES 9
Posts: 112

Original Poster
Rep: Reputation: 15
@nirvana4ol

Does that mean I can point the netpbm install at the static library instead? The linked page on static libraries seems to point in that direction. Maybe I'll just try it and see if my gmake completes successfully.
 
Old 12-14-2007, 09:11 PM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
If you were to copy and paste "libjpeg.so" from your post into the .rpm search engine here, you would find that SUSE requires java to be installed. Look on page 8 & 9 of the search results when doing a standard (not Advanced) search.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extract difference between two files? Marshalle Linux - General 8 01-05-2011 12:45 PM
Compiling library files into another library file. knobby67 Programming 3 04-10-2007 02:07 PM
need library files Tavassoli Linux - Software 3 06-15-2006 07:39 AM
.rar files versus .iso files the difference? dolphans1 Mandriva 14 01-31-2005 09:33 AM
looking for library files Bob Moore Linux - Software 3 08-27-2004 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:50 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