Linux 如何卸载libc++;从源代码安装之后?
我使用以下脚本从源代码安装了libc++。不支持Linux 如何卸载libc++;从源代码安装之后?,linux,llvm,uninstallation,llvm-clang,libc++,Linux,Llvm,Uninstallation,Llvm Clang,Libc++,我使用以下脚本从源代码安装了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.co
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
好吧,经过大量的搜索,很明显当
makeunintsall
未实现时,没有自动甚至半自动的卸载方法。有两种方法可以解决这个问题:
-DCMAKE\u install\u PREFIX=。/output
。这将导致cmake将所有文件放入./output。现在您可以观察这些文件,并手动删除它们。我认为默认情况下,cmake会将这些文件放在/usr/local
cat install_manifest.txt | xargs echo sudo rm | sh
make-n install cxxabi install cxx显示了什么?相关:。我建议选中install
,它将监视安装的内容。