Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./configure not detecting libcurl #17

Open
ethransom opened this issue Jun 3, 2013 · 3 comments
Open

./configure not detecting libcurl #17

ethransom opened this issue Jun 3, 2013 · 3 comments

Comments

@ethransom
Copy link

I'm trying to install Slash on a Linux Mint system.

$ ./configure --with-lib-dir=/usr/lib/i386-linux-gnu/

CC environment variable not set, falling back to 'cc'...
Checking for cc... cc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Checking for flex... flex 2.5.35
Checking for libgmp... ok
Checking for libiconv... ok
Checking for libpcre... ok
Checking for a thread-safe time.h... ok
Checking for -march=native... ok
Checking for -flto... ok
Checking for __builtin_expect... ok
Checking for unistd.h... ok
Checking for -Wno-gnu... ok
Checking for computed goto... ok

Configuring ext/base64
Configuring ext/curl
Checking for libcurl... failed

Could not find libcurl (used -lcurl)
Please make sure it is available before building Slash

The directory /usr/lib/i386-linux-gnu/ contains:

libcurl-gnutls.so.3
libcurl-gnutls.so.4
libcurl-gnutls.so.4.2.0
libcurl-nss.so.3
libcurl-nss.so.4
libcurl-nss.so.4.2.0
libcurl.so.3
libcurl.so.4
libcurl.so.4.2.0

I assume I'm doing something wrong. How can I get ./configure to detect libcurl?

@haileys
Copy link
Contributor

haileys commented Jun 3, 2013

Try configuring with --verbose.

If you can't get curl working, configure with --no-ext=curl

On 04/06/2013, at 8:00, schnauzer [email protected] wrote:

I'm trying to install Slash on a Linux Mint system.

$ ./configure --with-lib-dir=/usr/lib/i386-linux-gnu/

CC environment variable not set, falling back to 'cc'...
Checking for cc... cc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Checking for flex... flex 2.5.35
Checking for libgmp... ok
Checking for libiconv... ok
Checking for libpcre... ok
Checking for a thread-safe time.h... ok
Checking for -march=native... ok
Checking for -flto... ok
Checking for __builtin_expect... ok
Checking for unistd.h... ok
Checking for -Wno-gnu... ok
Checking for computed goto... ok

Configuring ext/base64
Configuring ext/curl
Checking for libcurl... failed

Could not find libcurl (used -lcurl)
Please make sure it is available before building Slash
The directory /usr/lib/i386-linux-gnu/ contains:

libcurl-gnutls.so.3
libcurl-gnutls.so.4
libcurl-gnutls.so.4.2.0
libcurl-nss.so.3
libcurl-nss.so.4
libcurl-nss.so.4.2.0
libcurl.so.3
libcurl.so.4
libcurl.so.4.2.0
I assume I'm doing something wrong. How can I get ./configure to detect libcurl?


Reply to this email directly or view it on GitHub.

@ethransom
Copy link
Author

$ ./configure --with-lib-dir=/usr/lib/i386-linux-gnu/ --verbose

CC environment variable not set, falling back to 'cc'...
Checking for cc... cc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Checking for flex... flex 2.5.35
Checking for libgmp... % cc  -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -lgmp -o /tmp/UGAdskxcsc /tmp/UGAdskxcsc.c -lgmp 2>&1
ok
Checking for libiconv... % cc  -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -liconv -o /tmp/sIntKXD1wF /tmp/sIntKXD1wF.c -liconv 2>&1
/usr/bin/ld: cannot find -liconv
/usr/bin/ld: cannot find -liconv
collect2: error: ld returned 1 exit status
% cc  -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3  -o /tmp/B2YQvWl77q /tmp/B2YQvWl77q.c  2>&1
ok
Checking for libpcre... % cc  -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -lpcre -o /tmp/Q_Z1aMIbQx /tmp/Q_Z1aMIbQx.c -lpcre 2>&1
ok
Checking for a thread-safe time.h... % cc  -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3  -o /tmp/Huvcd5OZmn /tmp/Huvcd5OZmn.c  2>&1
ok
Checking for -march=native... % cc  -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -o /tmp/UrDt3mKrQS /tmp/UrDt3mKrQS.c -march=native 2>&1
ok
Checking for -flto... % cc  -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -flto -o /tmp/t_sXzo4hxR /tmp/t_sXzo4hxR.c -flto 2>&1
ok
Checking for __builtin_expect... % cc  -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -flto  -o /tmp/dW45Bruwro /tmp/dW45Bruwro.c  2>&1
ok
Checking for unistd.h... % cc  -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -flto -DSL_HAS_BUILTIN_EXPECT  -o /tmp/uGR__kleuT /tmp/uGR__kleuT.c  2>&1
ok
Checking for -Wno-gnu... % cc  -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -flto -DSL_HAS_BUILTIN_EXPECT -DSL_HAS_UNISTD -Wno-gnu -o /tmp/_1pnZXUsB2 /tmp/_1pnZXUsB2.c -Wno-gnu 2>&1
ok
Checking for computed goto... % cc  -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -flto -DSL_HAS_BUILTIN_EXPECT -DSL_HAS_UNISTD -Wno-gnu  -o /tmp/W2IiFGR4Qt /tmp/W2IiFGR4Qt.c  2>&1
/tmp/W2IiFGR4Qt.c: In function ‘main’:
/tmp/W2IiFGR4Qt.c:1:41: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
/tmp/W2IiFGR4Qt.c: At top level:
cc1: warning: unrecognized command line option "-Wno-gnu" [enabled by default]
ok

Configuring ext/base64
Configuring ext/curl
Checking for libcurl... % cc  -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -flto -DSL_HAS_BUILTIN_EXPECT -DSL_HAS_UNISTD -Wno-gnu -DSL_HAS_COMPUTED_GOTO -fPIC -lcurl -o /tmp/GFja8Yd7hm /tmp/GFja8Yd7hm.c -lcurl 2>&1
/tmp/GFja8Yd7hm.c:1:27: fatal error: curl/curl.h: No such file or directory
compilation terminated.
% cc  -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -flto -DSL_HAS_BUILTIN_EXPECT -DSL_HAS_UNISTD -Wno-gnu -DSL_HAS_COMPUTED_GOTO -fPIC  -o /tmp/us3ODCRJwt /tmp/us3ODCRJwt.c  2>&1
/tmp/us3ODCRJwt.c:1:27: fatal error: curl/curl.h: No such file or directory
compilation terminated.
failed

Could not find libcurl (used -lcurl)
Please make sure it is available before building Slash

@haileys
Copy link
Contributor

haileys commented Jun 3, 2013

It looks like your system is missing curl/curl.h

On 04/06/2013, at 8:14, schnauzer [email protected] wrote:

$ ./configure --with-lib-dir=/usr/lib/i386-linux-gnu/ --verbose

CC environment variable not set, falling back to 'cc'...
Checking for cc... cc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Checking for flex... flex 2.5.35
Checking for libgmp... % cc -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -lgmp -o /tmp/UGAdskxcsc /tmp/UGAdskxcsc.c -lgmp 2>&1
ok
Checking for libiconv... % cc -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -liconv -o /tmp/sIntKXD1wF /tmp/sIntKXD1wF.c -liconv 2>&1
/usr/bin/ld: cannot find -liconv
/usr/bin/ld: cannot find -liconv
collect2: error: ld returned 1 exit status
% cc -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -o /tmp/B2YQvWl77q /tmp/B2YQvWl77q.c 2>&1
ok
Checking for libpcre... % cc -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -lpcre -o /tmp/Q_Z1aMIbQx /tmp/Q_Z1aMIbQx.c -lpcre 2>&1
ok
Checking for a thread-safe time.h... % cc -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -o /tmp/Huvcd5OZmn /tmp/Huvcd5OZmn.c 2>&1
ok
Checking for -march=native... % cc -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -o /tmp/UrDt3mKrQS /tmp/UrDt3mKrQS.c -march=native 2>&1
ok
Checking for -flto... % cc -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -flto -o /tmp/t_sXzo4hxR /tmp/t_sXzo4hxR.c -flto 2>&1
ok
Checking for __builtin_expect... % cc -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -flto -o /tmp/dW45Bruwro /tmp/dW45Bruwro.c 2>&1
ok
Checking for unistd.h... % cc -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -flto -DSL_HAS_BUILTIN_EXPECT -o /tmp/uGR__kleuT /tmp/uGR__kleuT.c 2>&1
ok
Checking for -Wno-gnu... % cc -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -flto -DSL_HAS_BUILTIN_EXPECT -DSL_HAS_UNISTD -Wno-gnu -o /tmp/_1pnZXUsB2 /tmp/_1pnZXUsB2.c -Wno-gnu 2>&1
ok
Checking for computed goto... % cc -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -flto -DSL_HAS_BUILTIN_EXPECT -DSL_HAS_UNISTD -Wno-gnu -o /tmp/W2IiFGR4Qt /tmp/W2IiFGR4Qt.c 2>&1
/tmp/W2IiFGR4Qt.c: In function ‘main’:
/tmp/W2IiFGR4Qt.c:1:41: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
/tmp/W2IiFGR4Qt.c: At top level:
cc1: warning: unrecognized command line option "-Wno-gnu" [enabled by default]
ok

Configuring ext/base64
Configuring ext/curl
Checking for libcurl... % cc -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -flto -DSL_HAS_BUILTIN_EXPECT -DSL_HAS_UNISTD -Wno-gnu -DSL_HAS_COMPUTED_GOTO -fPIC -lcurl -o /tmp/GFja8Yd7hm /tmp/GFja8Yd7hm.c -lcurl 2>&1
/tmp/GFja8Yd7hm.c:1:27: fatal error: curl/curl.h: No such file or directory
compilation terminated.
% cc -I/usr/lib/i386-linux-gnu//include -L/usr/lib/i386-linux-gnu//lib -O3 -DSL_HAS_THREADSAFE_TIME -march=native -flto -DSL_HAS_BUILTIN_EXPECT -DSL_HAS_UNISTD -Wno-gnu -DSL_HAS_COMPUTED_GOTO -fPIC -o /tmp/us3ODCRJwt /tmp/us3ODCRJwt.c 2>&1
/tmp/us3ODCRJwt.c:1:27: fatal error: curl/curl.h: No such file or directory
compilation terminated.
failed

Could not find libcurl (used -lcurl)
Please make sure it is available before building Slash

Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants