ld.so.1: gpg: fatal: libusb.so.1: open failed: No such file or directory

Jason Harris jharris at widomaker.com
Wed Feb 16 05:25:13 CET 2011


On Tue, Feb 15, 2011 at 05:50:11PM -0500, David Shaw wrote:
> > I have set the LD_LIBRARY_PATH=/usr/sfw/lib:/lib:/usr/lib:/usr/local/lib:/lib/64:/usr/lib/64
> > 
> > But when i run this command:
> > gpg --list-keys
> > i am getting this error:
> > 
> > ld.so.1: gpg: fatal: libusb.so.1: open failed: No such file or directory
> > Killed
> 
> That's an error from your loader.  It can't run gpg, because the gpg binary is built with USB smartcard reader support via libusb, but your system doesn't have libusb available within your LD_LIBRARY_PATH.  This isn't a gpg error - gpg never even got executed here.
> 
> The fix is to either figure out where you have libusb and include that in your path, to get libusb, or rebuild gpg to not require libusb.

Geez, doesn't anybody READ anymore?!  Even _I_ just managed to read:

[ldd output quoted to whatever level]
>>>> libusb.so.1 => /usr/sfw/lib/libusb.so.1

So, it is in the LD_LIBRARY_PATH quoted above, and therefore
IT IS ON THE SYSTEM, right?

If I were to guess, LD_LIBRARY_PATH is being ignored/reset...

-- 
Jason Harris           |  PGP:  This _is_ PGP-signed, isn't it?
jharris at widomaker.com _|_ Got photons? (TM), (C) 2004
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 314 bytes
Desc: not available
URL: </pipermail/attachments/20110216/135cce62/attachment.pgp>


More information about the Gnupg-users mailing list