Libtool 安装警告:xxx.la 尚未安装在 /user/local/lib 中

Libtool install warning: xxx.la has not been installed in /user/local/lib

在使用 autoreconf & automake & libtool 构建和安装我的应用程序时,我总是收到警告“libtool: warning: xxx.la /user/local/lib”和“libtool: 警告:记得要 运行 'libtool --finish /usr/local/lib” .我尝试了很多方法,例如清理项目,并使用 make clean 重新配置,但仍然无法摆脱警告。这是我尝试过的:

./configure
make clean
make
make install prefix=~/Software/

这是我的 configure.ac 的一部分,与 automakelibtool 有关。

AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror])
LT_INIT([dlopen])

为什么会发出这些警告,我该如何摆脱它们?

这可能有点晚了,但我遇到了同样的问题。在我执行了 make clean 然后用 autoreconf 重新生成我的 "configure" 脚本后它消失了。之后执行标准 ./configure --prefix=... 后跟 makemake install 不再显示错误。祝你好运!