archlinux cmake 影响 jsoncpp 更新

镜像更新不及时?

[make@archlinux ~]$ cmake --system-information | grep CMAKE_ROOT
CMAKE_ROOT "/usr/local/share/cmake-3.22"
[make@archlinux ~]$ 

$ cmake --system-information | grep CMAKE_ROOT
CMAKE_ROOT "/usr/share/cmake"

CMake Error: Could not find CMAKE_ROOT !!!
ls /usr/local/share/cmake-3.16/Modules/CMake.cmake
对应安装的版本号 一般不会出错。不排除仓库有问题的时候
./bootstrap --prefix=/usr/local/ && make && sudo make install
cmake --version
sudo ln -sf ./cmake /usr/bin/cmake

cmake-gui

cd cmake-3.20.1
mkdir build
cd build
cmake -D BUILD_QtDialog=ON ..
make -j2
sudo apt remove cmake # remove current cmake
sudo make install
./bootstrap --qt-gui
make
make install
wget https://cmake.org/files/v3.11/cmake-3.11.0.tar.gz
tar -xzf cmake-3.11.0.tar.gz
cd cmake-3.11.0/
./configure --qt-gui
make -j5
bin/cmake-gui
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing jsoncpp (1.9.5-1) breaks dependency 'libjsoncpp.so=24-64' required by cmake

pacman -R cmake
卸载cmake更新成功。然后重新安装就好了吧?

Packages (7) jsoncpp-1.9.5-1  libthai-0.1.29-1  nodejs-17.3.0-1  npm-8.3.0-1  python-cryptography-36.0.1-1  python-fonttools-4.28.5-1
             v(和谐)2r(中国)ay-domain-list-community-20211218145115-1

好家伙。不给更新

resolving dependencies...
warning: cannot resolve "libjsoncpp.so=24-64", a dependency of "cmake"
:: The following package cannot be upgraded due to unresolvable dependencies:
      cmake

:: Do you want to skip the above package for this upgrade? [y/N] 
原文地址:https://www.cnblogs.com/marklove/p/15714299.html