./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --with-package-name="Myplugin" --with-package-origin="http://www.ubuntu.org/" --enable-gtk-doc --disable-static
make
make install
但不幸的是,我发现这是最新版本,而且有很多错误,所以我需要将其删除/卸载。但是我该如何做呢?我尝试了
make clean; make uninstall
,但仍然看到它存在:# pkg-config --list-all | grep Myplugin
myplugin-....
$ ls /usr/lib/myplugin/libXYZ.so
exist....
怎么现在移除这个?
checkinstall
真是太棒了,它能让这个问题迎刃而解。 - Olimake uninstall
在make clean
之后能起作用吗?我认为需要确保它仍然以相同的方式进行了配置。 - user606723make clean
不会撤销./configure
,它只会撤销make
。要"取消配置"的唯一方法是删除Makefile
本身(可能还有config.h
),或者再次运行./configure
。 - MestreLionmake install
(例如,sudo make install
),这通常是情况,那么几乎总是需要运行sudo make uninstall
来删除软件。 - Eliah Kagancheckinstall
的,因为它提到了auto-apt
,可以自动解析缺失的头文件依赖项! - Daniel Sokolowskimake install
,你仍然可以使用checkinstall
。通常情况下,checkinstall
会覆盖make install
创建的所有内容。之后只需使用dpkg -r <package.deb>
,一切都应该被移除。 - user502144