免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4090 | 回复: 3
打印 上一主题 下一主题

求助solaris10 apache2.2.8集成php5.2.6出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-07 09:35 |只看该作者 |倒序浏览
在solaris10 sparc 用编译安装的办法安装了apache2.2.8和php5.2.6 编译过程没有提示错误。apache启动时提示httpd: Syntax error on line 53 of /opt/csw/apache2/conf/httpd.conf: Cannot load /opt/csw/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal: relocation error: file /opt/csw/apache2/modules/libphp5.so: symbol xmlTextReaderSetup: referenced symbol not found \r\nlibphp5.so文件存在对应目录。 libxml2也编译安装了./configure -prefix=/usr/local/libxml2 make install\r\napache编译安装 ./configure --with-config-file-path=/opt/csw/apache2 --enable-so\r\nphp编译安装./configure -prefix=/opt/csw/php5 -with-apxs2=/opt/csw/apache2/bin/apxs -with-libxml-dir=/usr/local/libxml2 \r\n\r\n之前也试过pagadd pkg-get等方式安装apache和php 但是都出现同样的错误\n\n[ 本帖最后由 jnulion 于 2008-5-7 09:43 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-05-07 15:02 |只看该作者
初步怀疑是libxml2的问题\r\nbash-3.00# ldd -r libphp5.so\r\n        librt.so.1 =>    /lib/librt.so.1\r\n        libresolv.so.2 =>        /lib/libresolv.so.2\r\n        libm.so.2 =>     /lib/libm.so.2\r\n        libnsl.so.1 =>   /lib/libnsl.so.1\r\n        libsocket.so.1 =>        /lib/libsocket.so.1\r\n        libz.so.1 =>     /usr/lib/libz.so.1\r\n        libxml2.so.2 =>  /usr/local/libxml2/lib/libxml2.so.2\r\n        libc.so.1 =>     /lib/libc.so.1\r\n        libgcc_s.so.1 =>         /usr/sfw/lib/libgcc_s.so.1\r\n        libaio.so.1 =>   /lib/libaio.so.1\r\n        libmd.so.1 =>    /lib/libmd.so.1\r\n        libmp.so.2 =>    /lib/libmp.so.2\r\n        libscf.so.1 =>   /lib/libscf.so.1\r\n        libpthread.so.1 =>       /lib/libpthread.so.1\r\n        libdoor.so.1 =>  /lib/libdoor.so.1\r\n        libuutil.so.1 =>         /lib/libuutil.so.1\r\n        libgen.so.1 =>   /lib/libgen.so.1\r\n        符号未找到: apr_pool_cleanup_null               (./libphp5.so)\r\n        符号未找到: unixd_config                (./libphp5.so)\r\n        符号未找到: ap_loaded_modules           (./libphp5.so)\r\n        符号未找到: ap_server_root              (./libphp5.so)\r\n        /platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1\r\n        符号未找到: ap_rwrite           (./libphp5.so)\r\n        符号未找到: apr_table_set               (./libphp5.so)\r\n        符号未找到: apr_table_add               (./libphp5.so)\r\n        符号未找到: apr_pstrdup         (./libphp5.so)\r\n        符号未找到: ap_set_content_type         (./libphp5.so)\r\n        符号未找到: apr_brigade_flatten         (./libphp5.so)\r\n        符号未找到: apr_brigade_cleanup         (./libphp5.so)\r\n        符号未找到: ap_get_brigade              (./libphp5.so)\r\n        符号未找到: apr_table_get               (./libphp5.so)\r\n        符号未找到: apr_table_elts              (./libphp5.so)\r\n        符号未找到: ap_rflush           (./libphp5.so)\r\n        符号未找到: ap_log_rerror               (./libphp5.so)\r\n        符号未找到: ap_log_error                (./libphp5.so)\r\n        符号未找到: ap_mpm_query                (./libphp5.so)\r\n        符号未找到: apr_pool_userdata_get               (./libphp5.so)\r\n        符号未找到: apr_pool_cleanup_register           (./libphp5.so)\r\n        符号未找到: apr_pool_userdata_set               (./libphp5.so)\r\n        符号未找到: ap_add_version_component            (./libphp5.so)\r\n        符号未找到: apr_table_unset             (./libphp5.so)\r\n        符号未找到: ap_auth_type                (./libphp5.so)\r\n        符号未找到: apr_pool_cleanup_run                (./libphp5.so)\r\n        符号未找到: ap_add_common_vars          (./libphp5.so)\r\n        符号未找到: ap_add_cgi_vars             (./libphp5.so)\r\n        符号未找到: apr_psprintf                (./libphp5.so)\r\n        符号未找到: apr_palloc          (./libphp5.so)\r\n        符号未找到: apr_bucket_eos_create               (./libphp5.so)\r\n        符号未找到: ap_pass_brigade             (./libphp5.so)\r\n        符号未找到: apr_brigade_create          (./libphp5.so)\r\n        符号未找到: ap_update_mtime             (./libphp5.so)\r\n        符号未找到: ap_set_last_modified                (./libphp5.so)\r\n        符号未找到: ap_hook_pre_config          (./libphp5.so)\r\n        符号未找到: ap_hook_post_config         (./libphp5.so)\r\n        符号未找到: ap_hook_handler             (./libphp5.so)\r\n        符号未找到: ap_hook_child_init          (./libphp5.so)\r\n        符号未找到: ap_server_root_relative             (./libphp5.so)\r\n        符号未找到: ap_sub_req_lookup_uri               (./libphp5.so)\r\n        符号未找到: ap_destroy_sub_req          (./libphp5.so)\r\n        符号未找到: ap_run_sub_req              (./libphp5.so)\r\n        符号未找到: ap_get_server_version               (./libphp5.so)\r\n        符号未找到: apr_snprintf                (./libphp5.so)\r\n        /platform/SUNW,Sun-Fire-280R/lib/libmd_psr.so.1\r\n高手看看是那里出问题了

论坛徽章:
0
3 [报告]
发表于 2008-05-07 15:09 |只看该作者

网上的一种解决办法,试过还是不行

[csw-users] PHP error using Apache2\r\nShah, Maunir Maunir.shah at knowles.com \r\nFri Oct 20 18:48:15 MEST 2006 \r\n\r\nPrevious message: [csw-users] meld: No module named pygtk \r\nNext message: [csw-users] [csw-newpkgs] weekly package summary \r\nMessages sorted by: [ date ] [ thread ] [ subject ] [ author ] \r\n\r\n--------------------------------------------------------------------------------\r\n\r\nFigured out what the issue was and it was setting the Library path as\r\nwell as the regular path.  I had the library path, but forgot to include\r\nthe other one.  Make sure the \"/opt/csw/..\" path is the first in your\r\nenv.  I was able to start apache just fine.  Now, my issue is that I\r\ndon\'t see the php pages.  So, have to troubleshoot that.  Fun fun\r\nfun....\r\n\r\n \r\n\r\nPATH=/opt/csw/bin:\r\n\r\nLD_LIBRARY_PATH=/opt/csw/lib:\r\n\r\n \r\n\r\nMaunir Shah\r\n\r\n________________________________\r\n\r\nFrom: Shah, Maunir \r\nSent: Thursday, October 19, 2006 1:03 PM\r\nTo: \'users at lists.blastwave.org\'\r\nSubject: PHP error using Apache2\r\n\r\n \r\n\r\nI installed php and apache2, but when I restart the apache process I get\r\nan error.  The library is there and the find on the net was to change\r\nthe Library path, which has been done.  But the error still stays.  Any\r\nhelp would be appreciated.\r\n\r\n \r\n\r\nOS is Solaris 10 and the packages that I have installed so far.\r\nObviously the dependencies are installed as well but not listed.\r\n\r\n \r\n\r\nap2_modphp5\r\n\r\nap2_prefork\r\n\r\napache2c\r\n\r\napache2rt\r\n\r\n \r\n\r\nError:\r\n\r\nhttpd: Syntax error on line 123 of /opt/csw/apache2/etc/httpd.conf:\r\nCannot load /opt/csw/apache2/libexec/libphp5.so into server: ld.so.1:\r\nhttpd: fatal: relocation error: file\r\n/opt/csw/apache2/libexec/libphp5.so: symbol\r\nxmlParserInputBufferCreateFilenameDefault: referenced symbol not found\r\n\r\n \r\n\r\nThanks\r\n\r\n \r\n\r\nMaunir Shah\r\n\r\n******************************* IMPORTANT MESSAGE ******************************\r\nThis transmission may contain information that is privileged, confidential\r\nand/or exempt from disclosure under applicable law. If you are not the intended\r\nrecipient, you are hereby notified that any disclosure, copying, distribution, \r\nor use of the information contained herein (including any reliance thereon) is \r\nSTRICTLY PROHIBITED. If you received this transmission in error, please \r\nimmediately contact the sender and destroy the material in its entirety, whether\r\nin electronic or hard copy format. Thank you.\r\n********************************************************************************\r\n-------------- next part --------------

论坛徽章:
0
4 [报告]
发表于 2008-05-07 17:36 |只看该作者

以解决问题

重新编译libxml2.6.31到/opt/csw目录 原来libxml的版本是2.6.26有点低
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP