在非标准前缀中安装glib失败

Ele*_*ito 27 install makefile glib libtool

我正在尝试在非标准前缀中安装glib,但运行时我得到以下内容make install:

/bin/sh ../libtool --mode=install /usr/bin/install -c libgthread-2.0.la '/root/build/lib'
libtool: install: error: cannot install `libgthread-2.0.la' to a directory not ending in /usr/local/lib
Run Code Online (Sandbox Code Playgroud)

必须在以/ usr/local/lib结尾的前缀中安装gthread的原因是什么?

Juv*_*uve 58

我在Linux机器上编译MonetDB时偶然发现了这个问题.这里是解决方案/变通方法,为我工作:始终make clean之后./configure.

在您的示例中,您应该能够:

./configure --prefix=/root/build && make clean && make && make install
Run Code Online (Sandbox Code Playgroud)

我在一个关于apache httpd bug 的讨论中找到了解决方案,其中Joe Orton分享了他的知识:

重新运行"configure"后,通常需要"make clean".