ubuntu16.04下cmake提示Could NOT find CURL
Ubuntu16.04 下CMake 编译时提示错误:Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
首先我看了下curl版本:
# curl --version curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets
我也不知道啥原因,于是百度了以下,看网上都是说安装dev版本
于是
sudo apt-get install libcurl4-openssl-dev
好了,没有报错了!