LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-25-2005, 02:06 AM   #1
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
How to determine software versions


I'm trying to get my scanner to work under Slackware 10. It's a HP3300C and needs the niash backend which in turn needs libusb-0.1.5.
Downloaded that as well (libusb-0.1.8.tar.gz)and compiled it. Installed it in /usr/local/lib.
Code:
wim@AMD-K6:~$ ls -l /usr/lib/libus*
lrwxrwxrwx  1 root root    19 2005-01-16 15:07 /usr/lib/libusb-0.1.so.4 -> libusb-0.1.so.4.4.0
-rwxr-xr-x  1 root root 28972 2004-03-23 01:03 /usr/lib/libusb-0.1.so.4.4.0
-rw-r--r--  1 root root 32288 2004-03-23 01:03 /usr/lib/libusb.a
-rwxr-xr-x  1 root root   803 2004-03-23 01:03 /usr/lib/libusb.la
lrwxrwxrwx  1 root root    19 2005-01-16 15:07 /usr/lib/libusb.so -> libusb-0.1.so.4.4.0
Code:
wim@AMD-K6:~$ ls -l /usr/local/lib/libus*
lrwxrwxrwx  1 root root    16 2005-01-24 20:37 /usr/local/lib/libusb -> libusb-0.1.4.4.0
lrwxrwxrwx  1 root root    16 2005-01-24 20:37 /usr/local/lib/libusb-0.1.4 -> libusb-0.1.4.4.0
-rwxr-xr-x  1 root root 34106 2005-01-24 20:37 /usr/local/lib/libusb-0.1.4.4.0
-rw-r--r--  1 root root 32288 2005-01-24 20:37 /usr/local/lib/libusb.a
-rwxr-xr-x  1 root root   698 2005-01-24 20:37 /usr/local/lib/libusb.la
wim@AMD-K6:~$
The first one lists the libusb from the standard Slack installation, the second one the new libusb.

From the filenames, both are the same, so how do I determine the actual version?

Last edited by Wim Sturkenboom; 01-25-2005 at 02:10 AM.
 
Old 01-25-2005, 03:01 AM   #2
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Distribution: RH,FC/SuSE/Debian/HPUX/OSX
Posts: 511

Rep: Reputation: 30
I would try to install a rpm-file for mandrake.
perhaps "libusb0.1_4-0.1.7-1mdk.i586.rpm"
 
Old 01-26-2005, 01:27 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Original Poster
Rep: Reputation: 282Reputation: 282Reputation: 282
That defeats the object. I like to be able to find the version of installed libs.

Thanks anyway.

Last edited by Wim Sturkenboom; 01-26-2005 at 07:36 AM.
 
Old 01-26-2005, 02:54 PM   #4
rnturn
Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: Red Hat (8.0), SuSE (10.x, 11.x, 12.2, 13.2), Solaris (8-10), Tru64
Posts: 982

Rep: Reputation: 53
Just a thought:

You might be able to control the order in /etc/ld.so.conf. (I haven't tried this so YMMV.)

You can control the library search order for some applications using the environment variable "LD_LIBRARY_PATH". If you put /usr/local/lib first, you should find you V0.1.8 library before the V0.1.5 library.
 
Old 01-26-2005, 03:11 PM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
generally its library.major_number.minor_number.patch_level symlinked to library.major_number

those two do look the same. generally, if your gonna upgrade a package, you should replace the original package instead of installing a conflicting version in an different directory (LD_LIBRARY_PATH will work, but you'd have to add it to a global config file or set it every time you wanted to use the new library)
 
Old 01-27-2005, 02:21 AM   #6
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Original Poster
Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally posted by __J
generally its library.major_number.minor_number.patch_level symlinked to library.major_number

those two do look the same. generally, if your gonna upgrade a package, you should replace the original package instead of installing a conflicting version in an different directory (LD_LIBRARY_PATH will work, but you'd have to add it to a global config file or set it every time you wanted to use the new library)
I will replace the original; this was just to try (like to be carefull). What I see from the listings, both seem to be 0.1.4 (so even the patch level is the same according to your info). And that is what I don't understand: why doesn't the new one have 0.1.8 in its name? If names don't give the answer, which other way is there.


BTW The scanner is now working (after upgrading to a later sane-version with niash-backend support). This also implies that the libusb is at least 0.1.5 (as required by the niash backend).
 
  


Reply

Tags
libusb, scanner


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
How to determine driver versions in FC3 jamespwalter Linux - Newbie 2 01-10-2005 09:15 AM
How to determine my HW by SW theonebeyond Linux - Hardware 2 09-09-2004 05:00 AM
Need help identifiying security vuln. w/ listed versions of software mrtwice Linux - Security 2 09-03-2004 11:22 PM
RPMed software vs. non RPMed versions linuxceptic Linux - Software 1 02-10-2004 01:30 PM
Checking software versions cav Linux - General 2 06-09-2003 02:24 PM


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