1.在编译curl时发生如下错误
make[2]: Entering directory `/software/curl/curl-7.55.1/lib'
CC vtls/libcurl_la-openssl.lo
vtls/openssl.c: In function ‘Curl_ossl_seed’:
vtls/openssl.c:276:5: error: implicit declaration of function ‘RAND_egd’ [-Werror=implicit-function-declaration]
int ret = RAND_egd(data->set.str[STRING_SSL_EGDSOCKET]?
^
cc1: some warnings being treated as errors
make[2]: *** [vtls/libcurl_la-openssl.lo] Error 1
make[2]: Leaving directory `/software/curl/curl-7.55.1/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/software/curl/curl-7.55.1/lib'
make: *** [all-recursive] Error 1
编译的配置参数
./configure --with-ssl
curl版本是7.55.1,openssl版本是1.1.0f
在http://forum.directadmin.com/... 找到了解决办法
参考zEitEr的办法
https://help.poralix.com/arti...
在其中
需要修改一下其中的代码
保存后执行,然后再次编译curl通过