Curl: (2) Failed initialization

I installed libcurl 7.33.0 on Linux. I used the following commands to install:

./configure  
make  
make install

If I run curl http://www.google.com, I get the following error: curl: (2) Failed initialization

curl is installed in / usr / local / bin and the header files in / usr / local / include / curl.

curl-config:

sandesh@ubuntu:~$ curl-config --features  
IPv6  
libz  
sandesh@ubuntu:~$ curl-config --protocols  
DICT  
FILE  
FTP  
GOPHER    
HTTP  
IMAP  
POP3  
RTSP  
SMTP  
TELNET  
TFTP  
sandesh@ubuntu:~$ curl-config --ca  
/etc/ssl/certs/ca-certificates.crt  
sandesh@ubuntu:~$ curl-config --cflags  
-I/usr/local/include  
sandesh@ubuntu:~$ curl-config --configure  

sandesh@ubuntu:~$ curl-config --libs  
-L/usr/local/lib -lcurl  
sandesh@ubuntu:~$ curl-config --static-libs  
/usr/local/lib/libcurl.a -lz -lrt  

I believe this has something to do with my configuration.

+4
source share
2 answers

It's amazing that you linked the binary /usr/local/bin/curlto the system's twist library.

To make sure this is the case, you should do:

ldd /usr/local/bin/curl

If it indicates a string, for example:

libcurl.so.4 => /usr/lib/x86_64-linux-gnu/libcurl.so.4 (0x00007fea7e889000)

, . , , , -, .

configure --disable-shared, .a, curl libcurl.so, .

-, , .

+4

Ubuntu curl, . , 7.33.0, .

#remove everything you had with curl
sudo apt-get purge curl
#optional update
sudo apt-get update && sudo apt-get upgrade
#install it from repository
sudo apt-get install curl 
0

All Articles