【发布时间】:2013-08-13 02:35:13
【问题描述】:
情况是我正在尝试获取从 Internet (http://findingscience.com/pymur/) 下载的代码进行编译,而我正在使用的机器上没有 SUDO 权限。
我已将问题追溯到 configure.ac 中的一行:
AC_CHECK_HEADER([indri/Index.hpp],,[
AC_MSG_ERROR([Could not find lemur's header files.])
])
因为我收到了来自./configure 的错误消息:
checking indri/Index.hpp usability... no
checking indri/Index.hpp presence... no
checking for indri/Index.hpp... no
configure: error: Could not find lemur's header files.
我尝试直接修改它,使 indri/Index.hpp 具有像 /path/to/indri/Index.hpp 这样的硬编码路径,这似乎没有帮助。
任何无需我修改 /usr 等目录(因为我没有 root 权限)即可编译代码的解决方案将不胜感激。
【问题讨论】:
-
而
./configure --prefix=/path/to不起作用?你在修改什么?configure的运行情况如何? -
@ldav1s 前缀选项不起作用。我正在直接修改
configure.ac文件,这是autoconf 用来生成configure文件的文件。 -
修改
configure.ac绝对是错误的做法。在您的主目录中安装标头并适当设置CPPFLAGS。