免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3845 | 回复: 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
libphp5.so文件存在对应目录。 libxml2也编译安装了./configure -prefix=/usr/local/libxml2 make install
apache编译安装 ./configure --with-config-file-path=/opt/csw/apache2 --enable-so
php编译安装./configure -prefix=/opt/csw/php5 -with-apxs2=/opt/csw/apache2/bin/apxs -with-libxml-dir=/usr/local/libxml2

之前也试过pagadd pkg-get等方式安装apache和php 但是都出现同样的错误

[ 本帖最后由 jnulion 于 2008-5-7 09:43 编辑 ]

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

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

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

[csw-users] PHP error using Apache2
Shah, Maunir Maunir.shah at knowles.com
Fri Oct 20 18:48:15 MEST 2006

Previous message: [csw-users] meld: No module named pygtk
Next message: [csw-users] [csw-newpkgs] weekly package summary
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

--------------------------------------------------------------------------------

Figured out what the issue was and it was setting the Library path as
well as the regular path.  I had the library path, but forgot to include
the other one.  Make sure the "/opt/csw/.." path is the first in your
env.  I was able to start apache just fine.  Now, my issue is that I
don't see the php pages.  So, have to troubleshoot that.  Fun fun
fun....



PATH=/opt/csw/bin:

LD_LIBRARY_PATH=/opt/csw/lib:



Maunir Shah

________________________________

From: Shah, Maunir
Sent: Thursday, October 19, 2006 1:03 PM
To: 'users at lists.blastwave.org'
Subject: PHP error using Apache2



I installed php and apache2, but when I restart the apache process I get
an error.  The library is there and the find on the net was to change
the Library path, which has been done.  But the error still stays.  Any
help would be appreciated.



OS is Solaris 10 and the packages that I have installed so far.
Obviously the dependencies are installed as well but not listed.



ap2_modphp5

ap2_prefork

apache2c

apache2rt



Error:

httpd: Syntax error on line 123 of /opt/csw/apache2/etc/httpd.conf:
Cannot load /opt/csw/apache2/libexec/libphp5.so into server: ld.so.1:
httpd: fatal: relocation error: file
/opt/csw/apache2/libexec/libphp5.so: symbol
xmlParserInputBufferCreateFilenameDefault: referenced symbol not found



Thanks



Maunir Shah

******************************* IMPORTANT MESSAGE ******************************
This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the intended
recipient, you are hereby notified that any disclosure, copying, distribution,
or use of the information contained herein (including any reliance thereon) is
STRICTLY PROHIBITED. If you received this transmission in error, please
immediately contact the sender and destroy the material in its entirety, whether
in electronic or hard copy format. Thank you.
********************************************************************************
-------------- 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