gpt4 book ai didi

c - g++-4.6.real : error: unrecognized option '-R'

转载 作者:太空宇宙 更新时间:2023-11-03 23:32:25 24 4
gpt4 key购买 nike

我正在尝试编译 phpcompiler使用此配置命令从源代码中获取。

./configure  --prefix=/opt/phc-0.3.0.1/    --with-php=/opt/php-5.3.17/

配置错误是,

checking for exit in -lboost_regex-mt... no
checking for exit in -lboost_regex-mt... (cached) no
checking for exit in -lboost_regex... no
checking for exit in -lboost_regex... (cached) no
checking for exit in -lboost_regex... (cached) no
configure: error: Could not link against boost_regex

那是完全错误的,因为我同时安装了 boost 和 boost_regex 包。库和头文件。然后我在config.log文件

中挖到了这个
configure:17053: g++ -o conftest -g -O2    -L/lib/php5 -L/usr/lib/php5 conftest.cpp /usr/lib/libCrun.so.1 -lphp5 -L/opt/php-5.3.17//lib -R/opt/php-5.3.17//lib -ldl  >&5
g++-4.6.real: error: /usr/lib/libCrun.so.1: No such file or directory
g++-4.6.real: error: unrecognized option '-R'

因此,对于这个unrecognized option '-R' 错误,很多-lboost_regex 检查都失败了!

我该如何解决这个问题?有没有我可以编辑来修复它的文件?为什么使用-R?我认为这将是 -L 标志。

最佳答案

作为your comment表示此 -R 选项来自 configure,即 m4/php-embed.m4 中的以下行似乎是最有可能的来源:

LIBS="-lphp5 -L${PHP_INSTALL_PATH}/lib -R${PHP_INSTALL_PATH}/lib $LIBS"

如果您查看 configure,所有其他出现的 -R 都会将其写为 ${wl}-R,其中 ${wl} 很可能会扩展为 -Wl,。因此,解决此问题的一种方法是在上述行中的 -R 之前添加 ${wl} 并运行 autogen.sh 以重新创建 配置

您可能希望提交 a bug为此,在检查现有的之后。

关于c - g++-4.6.real : error: unrecognized option '-R' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12629042/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com