log: Protocol "https" not supported or disabled in libcurl

ExternalProject_Add( luacov URL https://github.com/keplerproject/luacov/archive/v0.7.tar.gz DOWNLOAD_DIR ${EXTERNAL_PROJECT_DOWNLOAD_DIR} CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE=${MY_TOOLCHAIN_FILE} SOURCE_DIR ${EXTERNAL_PROJECT_SRC_DIR}/luacov BINARY_DIR ${EXTERNAL_PROJECT_BUILD_DIR}/luacov UPDATE_COMMAND "" PATCH_COMMAND "" )

-- downloading... src='https://github.com/keplerproject/luacov/archive/v0.7.tar.gz' dst='/home/build/my_build/external_projects/downloads/v0.7.tar.gz' timeout='none' CMake Error at /home/build/my_build/luacov-prefix/src/luacov-stamp/download-luacov.cmake:21 (message): error: downloading 'https://github.com/keplerproject/luacov/archive/v0.7.tar.gz' failed status_code: 1 status_string: "Unsupported protocol" log: Protocol "https" not supported or disabled in libcurl Closing connection -1

 

使用 ldd $(which cmake)

没有 libcurl.so.4=>/usr/lib/x86_64-linux-gnu/libcurl.so.4

解决方法一:

cmake编译默认是不加curl的,需要重装cmake

git clone -b v3.10.2 https://cmake.org/cmake.git cmake

cd cmake

./bootstrap --system-curl

make

sudo make install

或者

./configure --prefix=/software/cmake-3.10.2/ --parallel=${NPROC} -- \ -/DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_USE_OPENSSL:BOOL=ON

make -j ${NPROC}

make install

方法二:

#URL https://github.com/keplerproject/luacov/archive/v0.7.tar.gz

GIT_REPOSITORY https://github.com/keplerproject/luacov.git

或 DOWNLOAD_COMMAND wget https://github.com/keplerproject/luacov/archive/v0.7.tar.gz

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值