나는 팔로우한다설치 요소
최신 버전의 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
답변1
Centos는 다른 패키지 이름을 사용합니다. Debian/Ubuntu 패키지 이름은 입니다 libcurl4-openssl-dev
. 그러나 libcurl-devel
CentOS에서는 동일한 파일과 더 많은 파일을 사용할 수 있습니다. 이 시도:
sudo yum install libcurl-devel
또한 다음 예와 같이 사용 가능한 패키지를 검색할 수 있습니다.
yum search libcurl