makefile - 'make install' 的反义词是什么,即如何在 Linux 中卸载库?

标签 makefile uninstallation

运行时

./configure --prefix=/mingw 

在 MinGW/MSYS 系统上,我之前运行过一个库

'./configure --prefix=/mingw && make && make install' 

我看到了这条消息:

WARNING: A version of the Vamp plugin SDK is already installed. Expect worries and sorrows if you install a new version without removing the old one first. (Continuing)

这让我很担心。与“make install”相反的是什么,即如何在 Linux 中卸载库? “make clean”可以完成这项工作吗?还是还涉及其他步骤?

最佳答案

make clean 从源/构建树中删除任何中间或输出文件。然而,它只影响源/构建树;它不会触及文件系统的其余部分,因此不会删除以前安装的软件。

如果幸运的话,运行 make uninstall 就可以了。然而,这取决于图书馆的作者来提供;一些作者提供了卸载目标,而其他作者则没有。

如果您不幸运,则必须手动卸载它。运行 make -n install 会很有帮助,因为它会显示软件安装自身所需的步骤,但实际上不会执行任何操作。然后,您可以手动反转这些步骤。

关于makefile - 'make install' 的反义词是什么,即如何在 Linux 中卸载库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1439950/

相关文章:

android - 以编程方式卸载android应用程序

r - 如何使用所有软件包,设置和所有其他功能卸载R和RStudio?

bash - 如何使用 makefile 压缩目录

linux - 找不到为 makefile 指定的目标

c - 尝试安装 valgrind 但卡在 make valgrind,怎么办?

Ubuntu : How Uninstall PowerBroker Identity Services

Qt 安装程序框架卸载程序

wix - 使用 WiX 卸载后重新启动

c - undefined reference 而不是 makefile

batch-file - 登录Cygwin并在windows中使用bat文件执行命令