2

我使用 Asterisk 11.2.1,我想用 --prefix 编译它

  mindia@localhost asterisk-11.2.1]$ ./configure --prefix=../

该命令抛出异常

  configure: error: expected an absolute directory name for --prefix: ..

我想使用相对路径。有人可以帮助我吗?

4

2 回答 2

2

你可以写如下

mindia@localhost asterisk-11.2.1]$ ./configure --prefix=/relative/path

不是

--prefix=../something
于 2013-07-01T08:05:06.920 回答
0

你得到了明确的回应configure

configure: error: expected an absolute directory name for --prefix: ..

所以不能使用相对路径,需要提供绝对路径。我认为这种行为的原因在于相对路径由于prefix目录路径而没有意义。如果您仍然必须使用相对路径,那么只需使用一些bash或您的操作系统实用程序将相对路径转换为绝对路径并将该路径替换为您的配置命令。

于 2013-07-01T08:42:44.390 回答