gpgkeys_hkp: error while loading shared libraries: libcurl.so.3:

Dead Loss spamcan26 at yahoo.com
Mon Oct 30 01:12:23 CET 2006


I have downloaded GnuPG-1.4.5 and successfully built it using 

./configure –prefix=/usr/mylocal –libdir=/usr/local/lib \
–includedir=/usr/local/phplibs/include/ –with-libiconv-prefix=/usr/local/phplibs

as I do not have root access to my machine, but when I try to connect to pgp.mit.edu I get the following error

[mylogin][~]$ gpg –keyserver pgp.mit.edu –recv-keys 0×985A444B

gpg: requesting key 985A444B from hkp server pgp.mit.edu

/usr/mylocal/libexec/gnupg/gpgkeys_hkp: error while loading shared
libraries: libcurl.so.3: cannot open shared object file: No such file
or directory

gpg: no handler for keyserver scheme `hkp’

gpg: keyserver receive failed: keyserver error


What have I done wrong?  Obviously gpgkeys_hkp is not able to resolve the library at run time, but how to fix this?

I had to edit keyserver/Makefile.am to get it to compile as it kept failing - could not find curl/curl.h (ksutils.c).  

make[2]: Entering directory `/usr/home/mylogin/apps/dl/gnupg-1.4.5/keyserver'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../intl    -g -O2 -Wall -MT gpgkeys_ldap-gpgkeys_ldap.o -MD -MP -MF ".deps/gpgkeys_ldap-gpgkeys_ldap.Tpo" -c -o gpgkeys_ldap-gpgkeys_ldap.o `test -f 'gpgkeys_ldap.c' || echo './'`gpgkeys_ldap.c; \
then mv -f ".deps/gpgkeys_ldap-gpgkeys_ldap.Tpo" ".deps/gpgkeys_ldap-gpgkeys_ldap.Po"; else rm -f ".deps/gpgkeys_ldap-gpgkeys_ldap.Tpo"; exit 1; fi
In file included from gpgkeys_ldap.c:47:
ksutil.h:26:23: curl/curl.h: No such file or directory
make[2]: *** [gpgkeys_ldap-gpgkeys_ldap.o] Error 1
make[2]: Leaving directory `/usr/home/mylogin/apps/dl/gnupg-1.4.5/keyserver'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/home/mylogin/apps/dl/gnupg-1.4.5'
make: *** [all] Error 2

I moved these definitions to the end and added $(gpgkeys_curl_CPPFLAGS)

gpgkeys_ldap_CPPFLAGS = @LDAP_CPPFLAGS@ $(gpgkeys_curl_CPPFLAGS)
gpgkeys_ldap_LDADD = ../util/libutil.a @LDAPLIBS@ @NETLIBS@ $(other_libs) @GETOPT@ @W32LIBS@

gpgkeys_finger_LDADD = ../util/libutil.a @NETLIBS@ $(other_libs) @GETOPT@ @W32LIBS@




Richard











More information about the Gnupg-users mailing list