Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#246 /usr/bin/ld: cannot find -lcurl

open
nobody
5
2014-10-03
2007-08-14
Anonymous
No

Running on Fedora 7, I am experiencing an error while attempting to build AST.

configure script runs fine.

make fails, complaining it cannot find libcurl.

I have curl, and curl-devel packages installed, via the Fedora RPM version 17.6.4. Yum shows it installed, and the locate command also finds libcurl

YUM output:

# yum list installed | grep curl
curl.i386 7.16.4-2.fc8 installed
curl-devel.i386 7.16.4-2.fc8 installed

LOCATE output:

# locate libcurl
/home/dunnigan/google-earth/libcurl.so.3
/usr/lib/libcurl.so
/usr/lib/libcurl.so.4
/usr/lib/libcurl.so.4.0.0
/usr/lib/pkgconfig/libcurl.pc
/usr/share/man/man3/libcurl-easy.3.gz
/usr/share/man/man3/libcurl-errors.3.gz
/usr/share/man/man3/libcurl-multi.3.gz
/usr/share/man/man3/libcurl-share.3.gz
/usr/share/man/man3/libcurl-tutorial.3.gz
/usr/share/man/man3/libcurl.3.gz

Finally here is the error which I am receiving from the make command:

make
Making all in po
make[1]: Entering directory `/var/www/html/ast-0.2.8/src/po'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/www/html/ast-0.2.8/src/po'
Making all in libacxx
make[1]: Entering directory `/var/www/html/ast-0.2.8/src/libacxx'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/www/html/ast-0.2.8/src/libacxx'
Making all in libadbe
make[1]: Entering directory `/var/www/html/ast-0.2.8/src/libadbe'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/www/html/ast-0.2.8/src/libadbe'
Making all in libawf
make[1]: Entering directory `/var/www/html/ast-0.2.8/src/libawf'
make all-am
make[2]: Entering directory `/var/www/html/ast-0.2.8/src/libawf'
make[2]: Leaving directory `/var/www/html/ast-0.2.8/src/libawf'
make[1]: Leaving directory `/var/www/html/ast-0.2.8/src/libawf'
Making all in libatf
make[1]: Entering directory `/var/www/html/ast-0.2.8/src/libatf'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/www/html/ast-0.2.8/src/libatf'
Making all in libast-cache
make[1]: Entering directory `/var/www/html/ast-0.2.8/src/libast-cache'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/www/html/ast-0.2.8/src/libast-cache'
Making all in libaqe
make[1]: Entering directory `/var/www/html/ast-0.2.8/src/libaqe'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/www/html/ast-0.2.8/src/libaqe'
Making all in afetch
make[1]: Entering directory `/var/www/html/ast-0.2.8/src/afetch'
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -L/usr/lib -lxml2 -lz -lm -lcurl -lmhash -rdynamic -all-static -pthread -fno-merge-constants -o afetch afetch.o cliparse.o ../libawf/libawf.la ../libatf/libatf.la ../libast-cache/libast-cache.la ../libaqe/libaqe.la ../libadbe/libadbe.la -L/usr/lib/ta-lib -lta_common_csr -lta_func_csr -lta_libc_csr -lz
g++ -g -O2 -rdynamic -static -pthread -fno-merge-constants -o afetch afetch.o cliparse.o -L/usr/lib -lm ../libawf/.libs/libawf.a -L/var/www/html/ast-0.2.8/src/libatf ../libatf/.libs/libatf.a ../libast-cache/.libs/libast-cache.a ../libaqe/.libs/libaqe.a /var/www/html/ast-0.2.8/src/libast-cache/.libs/libast-cache.a /var/www/html/ast-0.2.8/src/libawf/.libs/libawf.a -lxml2 -lcurl -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lgd -lmhash /var/www/html/ast-0.2.8/src/libatf/.libs/libatf.a -L/usr/lib/ta-lib ../libadbe/.libs/libadbe.a -lta_common_csr -lta_func_csr -lta_libc_csr -lz
/usr/bin/ld: cannot find -lcurl
collect2: ld returned 1 exit status
make[1]: *** [afetch] Error 1
make[1]: Leaving directory `/var/www/html/ast-0.2.8/src/afetch'
make: *** [all-recursive] Error 1

I hope I am not overlooking something simple.

Contact: crd3062@rit.edu

Discussion