【发布时间】:2017-12-22 08:37:21
【问题描述】:
我使用以下脚本从源代码安装了 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
【问题讨论】:
-
make -n install-cxxabi install-cxx显示了什么? -
相关:what's the opposite of make install。我推荐
checkinstall,它将监控安装的内容。
标签: linux llvm uninstallation llvm-clang libc++