我跟随安装因素
我下载了最新版本的3.9.6 tar.gz软件包。

但我得到了以下错误:
[root@localhost release]# cmake ..
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
CMake Error at CMakeLists.txt:69 (find_package):
By not providing "FindLeatherman.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Leatherman", but CMake did not find one.
Could not find a package configuration file provided by "Leatherman" with
any of the following names:
LeathermanConfig.cmake
leatherman-config.cmake
Add the installation prefix of "Leatherman" to CMAKE_PREFIX_PATH or set
"Leatherman_DIR" to a directory containing one of the above files. If
"Leatherman" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
See also "/tools/puppet/facter-3.9.6/release/CMakeFiles/CMakeOutput.log".
[root@localhost release]#CMakeLists.txt:69是:
CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib我的CentOS 7.2服务器上有卷曲,
[root@localhost release]# curl --version
curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.36 zlib/1.2.7 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets我试过安装libcurl4-openssl-dev,但是没有软件包:
yum install libcurl4-openssl-dev -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
No package libcurl4-openssl-dev available.
Error: Nothing to do发布于 2019-10-24 08:21:05
Centos使用不同的包名。Debian/Ubuntu包名为libcurl4-openssl-dev。但是,libcurl-devel on CentOS提供了相同的文件等等。试一试:
sudo yum install libcurl-devel 此外,您还可以搜索可用的包,如本例中所示:
yum search libcurlhttps://unix.stackexchange.com/questions/548312
复制相似问题