LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-10-2004, 03:52 AM   #1
Ross Clement
Member
 
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171

Rep: Reputation: 30
error while loading shared libraries: libusb-0.1.4


Hi. I have two USB problems on two different machines.

On my main desktop, I'm trying to run a demo application for a USB fingerprint reader. However, it is trying, and failing, to find libusb. The error message looks like this:

$ ls
README vf_gtk_demo vfinger_linux.zip
[ross@staff-pc01 VERIFINGER]$ ./vf*demo
./vf_gtk_demo: error while loading shared libraries: libusb-0.1.4: cannot open shared object file: No such file or directory
$

The readme suggests (in terms of accessing harware) running as root. However, as expected, I get the same error message while running as root.

In /usr/lib I have the following libusb files (note: libusb-0.1.4.so is an additional symbolic link I created while trying to solve this).

$ ls -l libusb*
lrwxrwxrwx 1 root root 15 Nov 10 09:31 libusb-0.1.4.so -> libusb-0.1.so.4
lrwxrwxrwx 1 root root 19 Jun 23 2003 libusb-0.1.so.4 -> libusb-0.1.so.4.1.1
-rwxr-xr-x 1 root root 25004 Jan 24 2003 libusb-0.1.so.4.1.1
-rw-r--r-- 1 root root 27798 Jan 24 2003 libusb.a
-rwxr-xr-x 1 root root 704 Jan 24 2003 libusb.la
lrwxrwxrwx 1 root root 19 Jun 23 2003 libusb.so -> libusb-0.1.so.4.1.1
lrwxrwxrwx 1 root root 9 Nov 5 12:39 libusb.so.1 -> libusb.so
[ross@staff-pc01 lib]$

I've given the output of ldd vf_gtk_demo down the bottom of this email. Summary: it doesn't find libusb.

Can anyone suggest what the problem might be?

Cheers,

Ross-c

$ ldd vf_gtk_demo
libusb-0.1.4 => not found
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x4002d000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x40281000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x402ef000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x40308000)
libm.so.6 => /lib/tls/libm.so.6 (0x4031b000)
libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x4033d000)
libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0x4035f000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x4036c000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x4039f000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x403d4000)
libdl.so.2 => /lib/libdl.so.2 (0x403d8000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x403dc000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x40447000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x4044c000)
libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x4045a000)
libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x4045e000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40466000)
libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40475000)
libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x40487000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x4048f000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x404b4000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40593000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x405f7000)
libz.so.1 => /usr/lib/libz.so.1 (0x40617000)
[ross@staff-pc01 VERIFINGER]$
 
Old 11-10-2004, 10:34 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
The error may be in what vf_gtk_demo is looking for. It may be looking for
libusb-0.1.4 instead of libusb-0.1.4.so. Try setting up a link:
libusb-0.1.4 -> libusb-0.1.4.so

---------------------
Steve Stites
 
Old 11-10-2004, 10:53 AM   #3
Ross Clement
Member
 
Registered: Jun 2003
Location: UK
Distribution: Redhat 9 (work) Fedora 1 (home)
Posts: 171

Original Poster
Rep: Reputation: 30
Yes, that was it. I contacted the program vendor, and they asked me to make an additional symbolic link in the /usr/lib directory

ln -s libusb.so /usr/lib/libusb-0.1.4

That solved the problem.

Cheers,

Ross-c
 
  


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
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM
mplayer: error while loading shared libraries: libdvdread.so.3: cannot open shared ob Bruce Hill Slackware 6 12-11-2003 08:34 AM
linux init error in loading shared shared libraries akaran Linux - Software 1 05-28-2003 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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