Curl make的时候报错

因为默认的curl不支持https协议,我编译安装完openssl之后显示已支持https了,但是在重新make curl时出现报错。
求大佬指点迷津。

curl版本:7.57
openssl版本:1.1.0g
ubuntu版本:14.04.2 LTS 

详细报错信息如下:

root@iZwz9akk7iswd53zv5vrzeZ:~/curl-7.57.0# make
Making all in lib
make[1]: Entering directory `/root/curl-7.57.0/lib'
make  all-am
make[2]: Entering directory `/root/curl-7.57.0/lib'
make[2]: Leaving directory `/root/curl-7.57.0/lib'
make[1]: Leaving directory `/root/curl-7.57.0/lib'
Making all in src
make[1]: Entering directory `/root/curl-7.57.0/src'
Making all in ../docs
make[2]: Entering directory `/root/curl-7.57.0/docs'
Making all in .
make[3]: Entering directory `/root/curl-7.57.0/docs'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/curl-7.57.0/docs'
Making all in cmdline-opts
make[3]: Entering directory `/root/curl-7.57.0/docs/cmdline-opts'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/curl-7.57.0/docs/cmdline-opts'
make[2]: Leaving directory `/root/curl-7.57.0/docs'
make[2]: Entering directory `/root/curl-7.57.0/src'
  CCLD     curl
../lib/.libs/libcurl.so: undefined reference to `SSLv23_client_method'
../lib/.libs/libcurl.so: undefined reference to `CONF_modules_free'
../lib/.libs/libcurl.so: undefined reference to `ERR_free_strings'
../lib/.libs/libcurl.so: undefined reference to `sk_value'
../lib/.libs/libcurl.so: undefined reference to `SSL_library_init'
../lib/.libs/libcurl.so: undefined reference to `sk_pop_free'
../lib/.libs/libcurl.so: undefined reference to `SSLeay'
../lib/.libs/libcurl.so: undefined reference to `SSLv3_client_method'
../lib/.libs/libcurl.so: undefined reference to `OPENSSL_add_all_algorithms_noconf'
../lib/.libs/libcurl.so: undefined reference to `SSL_COMP_free_compression_methods'
../lib/.libs/libcurl.so: undefined reference to `EVP_cleanup'
../lib/.libs/libcurl.so: undefined reference to `sk_num'
../lib/.libs/libcurl.so: undefined reference to `sk_pop'
../lib/.libs/libcurl.so: undefined reference to `SSL_load_error_strings'
collect2: error: ld returned 1 exit status
make[2]: *** [curl] Error 1
make[2]: Leaving directory `/root/curl-7.57.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/curl-7.57.0/src'
make: *** [all-recursive] Error 1

https://img4.mukewang.com/5c8f55ea00018f6d06110631.jpg

繁星点点滴滴
浏览 1518回答 2
2回答

Cats萌萌

./configure --disable-ldap --disable-ldaps执行这个命令就可以解决。

牛魔王的故事

动态库软链不对。
打开App,查看更多内容
随时随地看视频慕课网APP