zoukankan      html  css  js  c++  java
  • 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] 
    
  • 相关阅读:
    C#多线程操作界面控件的解决方案
    InvokeHelper,让跨线程访问/修改主界面控件不再麻烦
    .netCF中后台多线程与UI界面交互的冻结问题
    c#设计模式第一天
    C#代理
    界面
    第一章面向对象涉及原则
    C# 为webBrowser设置代理
    设计模式等
    下载: Intel® 64 and IA32 Architectures Software Developer Manuals
  • 原文地址:https://www.cnblogs.com/marklove/p/15714299.html
Copyright © 2011-2022 走看看