“进行安装"的对立面是什么,即如何在Linux中卸载库? [英] What's the opposite of 'make install', i.e. how do you uninstall a library in Linux?

查看:91
本文介绍了“进行安装"的对立面是什么,即如何在Linux中卸载库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正在运行

./configure --prefix=/mingw 

在我之前运行的库的MinGW/MSYS系统上

on a MinGW/MSYS system for a library I had previously run

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

我碰到了此消息:

警告:已经安装了Vamp插件SDK版本.如果安装新版本而不先删除旧版本,请担心. (续)

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中卸载库? 清洁"会完成这项工作吗?还是涉及其他步骤?

This had me worried. What's the opposite of 'make install', i.e. how is a library uninstalled in Linux? Will 'make clean' do the job, or are there other steps involved?

推荐答案

make clean从源代码/构建树中删除任何中间文件或输出文件.但是,它仅影响源代码/构建树.它不会接触文件系统的其余部分,因此不会删除以前安装的软件.

make clean removes any intermediate or output files from your source / build tree. However, it only affects the source / build tree; it does not touch the rest of the filesystem and so will not remove previously installed software.

如果幸运的话,运行make uninstall也可以.但是,这取决于图书馆的作者.有些作者提供了uninstall目标,而另一些则没有.

If you're lucky, running make uninstall will work. It's up to the library's authors to provide that, however; some authors provide an uninstall target, others don't.

如果您不走运,则必须手动将其卸载.运行make -n install可能会有所帮助,因为它将显示该软件将自行安装但实际上无能为力的步骤.然后,您可以手动撤消这些步骤.

If you're not lucky, you'll have to manually uninstall it. Running make -n install can be helpful, since it will show the steps that the software would take to install itself but won't actually do anything. You can then manually reverse those steps.

这篇关于“进行安装"的对立面是什么,即如何在Linux中卸载库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆