代码之家  ›  专栏  ›  技术社区  ›  Shital Shah

从源代码安装后如何卸载libc++?

  •  0
  • Shital Shah  · 技术社区  · 8 年前

    我使用以下脚本从源代码安装了libc++。这个 make uninstall

    git clone --depth=1 https://github.com/llvm-mirror/llvm.git llvm-source
    git clone --depth=1 https://github.com/llvm-mirror/libcxx.git llvm-source/projects/libcxx
    git clone --depth=1 https://github.com/llvm-mirror/libcxxabi.git llvm-source/projects/libcxxabi
    
    export C_COMPILER=clang
    export COMPILER=clang++
    
    # Build and install libc++ 
    mkdir llvm-build && cd llvm-build
    cmake -DCMAKE_C_COMPILER=${C_COMPILER} -DCMAKE_CXX_COMPILER=${COMPILER} \
          -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr \
          ../llvm-source
    make cxx
    sudo make install-cxxabi install-cxx
    
    1 回复  |  直到 8 年前
        1
  •  1
  •   Shital Shah    8 年前

    嗯,经过大量搜索,很明显没有自动甚至半自动的方法来卸载 make unintsall 未实现。有两种方法可以解决这个问题:

    1. 如果使用cmake,则再次运行安装,但将标志设置为 -DCMAKE_INSTALL_PREFIX=./output /usr/local

    2. 另一个 cool trick 您可以使用if install\u清单。生成txt文件: cat install_manifest.txt | xargs echo sudo rm | sh