【发布时间】:2013-12-02 15:06:26
【问题描述】:
我已经在 Linux 上安装了 libcurl 7.33.0。我使用以下命令进行安装:
./configure
make
make install
如果我运行curl http://www.google.com,我会收到以下错误:
curl: (2) 初始化失败
curl 安装在 /usr/local/bin,头文件安装在 /usr/local/include/curl。
卷曲配置:
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
我认为这与我的配置有关。
【问题讨论】: