1、configure: error: Please reinstall the libzip distribution
解決方法一,安裝1.2.0版本的libzip:
- wget https://nih.at/libzip/libzip-1.2.0.tar.gz
- tar -zxvf libzip-1.2.0.tar.gz
- cd libzip-1.2.0
- ./configure
- make && make install
解決辦法二,安裝最新版本的libzip
訪問(wèn)libzip網(wǎng)站查看最新版本,如圖
下載最新版本并安裝(如果在cmake …時(shí)報(bào)錯(cuò),請(qǐng)看下一步操作):
- wget https://nih.at/libzip/libzip-1.5.2.tar.gz
- tar zxvf libzip-1.5.2.tar.gz
- cd libzip-1.5.2
- mkdir build
- cd build
- cmake ..
- make
- make test
- make install
2、提示CMAKE版本太低
[WARNING] CMake Error at CMakeLists.txt:23 (cmake_minimum_required):
[WARNING] CMake 3.1 or higher is required. You are running version 2.8.12.2
解決方法:升級(jí)cmake,cmake版本列表
- cd /opt
- wget https://cmake.org/files/v3.14/cmake-3.14.0-Linux-x86_64.tar.gz
- yum remove cmake
- cd /opt
- tar zxvf cmake-3.14.0-Linux-x86_64.tar.gz
- export CMAKE_HOME=/opt/cmake-3.14.0-Linux-x86_64
- export PATH=$PATH:$CMAKE_HOME/bin
- source /etc/profile
- cmake -version
3、configure: error: off_t undefined; check your library configuration
- # 解決方法
- # 添加搜索路徑到配置文件
- echo '/usr/local/lib64
- /usr/local/lib
- /usr/lib
- /usr/lib64'>>/etc/ld.so.conf
- # 更新配置
- ldconfig -v
4、/usr/local/include/zip.h:59:21: fatal error: zipconf.h: No such file or dire
- cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h
版權(quán)聲明:文章圖片資源來(lái)源于網(wǎng)絡(luò),如有侵權(quán),請(qǐng)留言刪除!!!
評(píng)論