重新编译时 Apache 损坏依赖项错误消息:未定义的符号:“_apr_file_link”
好吧,这是我第一次来这里,我试图在谷歌上搜索这个答案,但没有结果。
我正在遵循 http://russbrooks.com/2009/3/20/install-upgrade-php-apache-postgresql-on-mac-os-x-10-5-leopard 使用 php与 postgreSQL。我在 apache 重新编译过程中收到此消息:
Undefined symbols:
"_apr_file_link", referenced from:
_doRotate in rotatelogs.o
ld: symbol(s) not found
...................
我为获取该消息而遵循的指导步骤是:
cd /tmp
curl -O http://apache.mirrors.timporter.net/httpd/httpd-2.3.8.tar.gz
tar -xvzf httpd-2.3.8.tar.gz
rm httpd-2.3.8.tar.gz
cd httpd-2.3.8
./configure --enable-layout=Darwin --enable-mods-shared=all
make all
sudo make install
sudo apachectl restart
cd ..
rm -r httpd-2.3.8
正如链接上指定的那样,但是制作过程失败。
我正在使用 MAC OS X 10.6.6,实际上我是使用 MAC 的新手。
如果有人以前遇到过此错误,欢迎提供一些帮助或建议。
Well, this is my first time here, and i tried to search google for an answer with this but without results.
I'm following a guide on http://russbrooks.com/2009/3/20/install-upgrade-php-apache-postgresql-on-mac-os-x-10-5-leopard to use php with postgreSQL. I got this message during the apache recompilation process:
Undefined symbols:
"_apr_file_link", referenced from:
_doRotate in rotatelogs.o
ld: symbol(s) not found
...................
The guide steps i was following to get that message were:
cd /tmp
curl -O http://apache.mirrors.timporter.net/httpd/httpd-2.3.8.tar.gz
tar -xvzf httpd-2.3.8.tar.gz
rm httpd-2.3.8.tar.gz
cd httpd-2.3.8
./configure --enable-layout=Darwin --enable-mods-shared=all
make all
sudo make install
sudo apachectl restart
cd ..
rm -r httpd-2.3.8
as they're specified on the link but the make process failed.
I'm working on a MAC OS X 10.6.6 and actually i'm new at using MAC.
If anyone get this error before, some help or advice will be welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅 https://issues.apache.org/bugzilla/show_bug.cgi?id= 49013
Mac OS X 附带 APR 1.3.8。如果像指南建议您使用 MacPorts 来解决依赖关系,运行
port install apr-util
应该会获得必要的 APR 版本,并且 ./configure 应该会自动获取较新版本的库,如果/opt/local/bin 在您的 $PATH 中足够早。See https://issues.apache.org/bugzilla/show_bug.cgi?id=49013
Mac OS X comes with APR 1.3.8. If like the guide suggests you're using MacPorts to resolve dependencies, running
port install apr-util
should get the necessary version of APR, and ./configure should pick up the newer versions of the libraries automatically if /opt/local/bin is early enough in your $PATH.