ld.so.1: gpg: fatal: libusb.so.1: open failed: No such file or directory
David Shaw
dshaw at jabberwocky.com
Wed Feb 16 06:02:43 CET 2011
On Feb 15, 2011, at 11:25 PM, Jason Harris wrote:
> 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?
In future I will always ensure to use my time machine when replying, since clearly people replying to a message from 4:26 should know the information revealed in a completely different message from one hour later at 5:25.
Really, it's just a shame we don't all have your amazing skills for reading messages that haven't been sent yet.
David
More information about the Gnupg-users
mailing list