我想在没有 root 访问权限的机器上安装 tmux。我已经编译了 libevent 并安装了它$HOME/.bin-libevent,现在我想编译 tmux,但 configure 总是以 结尾configure: error: "libevent not found",即使我试图Makefile.am通过修改LDFLAGS和指向 libevent 目录CPPFLAGS,但似乎没有任何效果。
如何告诉系统在我的主目录中查找 libevent?
./configure 总是检查 whether the build environment is sane...
我不禁想知道什么是疯狂的构建环境。此检查会引发哪些错误?
我希望使用 OpenVPN 源 tarball 在 OpenBSD 5.5 上安装 OpenVPN。
根据这里的说明,我必须安装lzo和
将
CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"指令添加到“配置”,因为gcc否则将找不到它们。
我已经广泛搜索了有关如何在 OpenBSD 上执行上述操作的指南,但没有。
这是我打算做的:
./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
Run Code Online (Sandbox Code Playgroud)makemake install以下哪个语法是正确的?
./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
Run Code Online (Sandbox Code Playgroud)
或者
./configure --CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
Run Code Online (Sandbox Code Playgroud)
或者
./configure --CFLAGS="-I/usr/local/include" --LDFLAGS="-L/usr/local/lib"
Run Code Online (Sandbox Code Playgroud) 我正在尝试从源代码(通过 git)安装 Debian 软件包。我下载了包,更改到包的目录并运行./configure命令,但它返回bash: ./configure: No such file or directory. 可能是什么问题?一个configure.ac文件位于程序文件夹。
./configure
make
sudo make install
Run Code Online (Sandbox Code Playgroud) 有时在项目源中我会看到“*.in”文件。例如,一堆“Makefile.in”。它们是什么和/或“.in”部分是什么意思?我认为这与autoconf或make或类似的事情有关,但我不确定。
我试过搜索“.in 文件扩展名”、“autoconf .in 文件扩展名”、“autoconf .in”、“autoconf dot in”和其他变体,但没有成功。
我引用了config.status生成的下一个代码片段configure。
if test ! -f "$as_myself"; then
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
{ (exit 1); exit 1; }; }
fi
Run Code Online (Sandbox Code Playgroud)
在代码片段中,有什么作用{ (exit 1); exit 1; };?只exit在子shell中做什么的目的是什么?
从失败的构建中检查构建日志,以下错误是什么意思,
fatal error: ac_nonexistent.h: No such file or directory #include <ac_nonexistent.h>
Run Code Online (Sandbox Code Playgroud)
这是一些上下文。
configure:6614: $? = 0
configure:6627: result: none needed
configure:6648: checking how to run the C preprocessor
configure:6679: gcc -E -Wdate-time -D_FORTIFY_SOURCE=2 conftest.c
configure:6679: $? = 0
configure:6693: gcc -E -Wdate-time -D_FORTIFY_SOURCE=2 conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:6693: $? = 1
configure: failed program was:
| /* confdefs.h */
Run Code Online (Sandbox Code Playgroud)
什么是ac_nonexistent.h?遇到这个错误该怎么办?
这是一个有点重复的问题(请参阅如何为我的目录中安装的 R 设置 PATH)但我确实遇到了新版本 R 的一些新问题。
我试图在我自己的目录中安装新版本的 R (R 3.3.1)。我按照我之前的安装流程
但是我遇到了一个我以前没有遇到过的问题。
./configure --prefix=$HOME/Programme/R-3.3.1
.......
checking for zlib.h... yes
checking if zlib version >= 1.2.5... no
checking whether zlib support suffices... configure: error: zlib library and headers are required
Run Code Online (Sandbox Code Playgroud)
好像zlib版本太低了,所以我安装了当前版本的zlib
tar xvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure --prefix=$HOME/Programme/zlib-1.2.11
make && make install
Run Code Online (Sandbox Code Playgroud)
然后我尝试再次为 R 进行配置,例如:
./configure --prefix=$HOME/Programme/R-3.3.1 --enable-R-shlib LDFLAGS="-L/$HOME/Programme/zlib-1.2.11/lib" CPPFLAGS="-I/$HOME/Programme/zlib-1.2.11/include"
Run Code Online (Sandbox Code Playgroud)
我仍然有同样的错误:
checking if zlib version >= 1.2.5... no
checking whether zlib support suffices... configure: error: zlib library and headers are …Run Code Online (Sandbox Code Playgroud) 是VAR=value ./configure一样的./configure VAR=value吗?
在第一种情况下,shell 设置环境变量,在第二种情况下,configure 脚本将字符串'VAR=value'作为参数,然后大概设置变量。我想知道 configure 是否对变量执行了其他操作(可能会忽略或过滤某些值),以及为什么它首先将变量作为参数。
在尝试从源代码编译poppler 时,出现错误Package "fontconfig" not found。
我发现很多其他资源都在宣传这可以通过同时安装pkg-config和libfontconfig1-dev获取库来解决,但我仍然遇到错误。
fontconfig在这make一步尝试从源代码安装失败,我没有找到有关如何修复的资源(整个 C 错误主机)。
如果我fontconfig在系统上(并且apt似乎建议我这样做)在运行./configure包时如何使用它?