×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

Problem with Apache on Solaris

本文发表在 rolia.net 枫下论坛Experts,

I encounter a error when starting Apache on a newly installed Solaris box. A symbol referenced in the perl module can not be resolved. however, if I comment out the perl staff in httpd.conf, it can be started without problem. Anyone one can tell me what's wrong with it?
Thanks.


# ./apachectl start
Syntax error on line 248 of /etc/apache/httpd.conf:
Cannot load /usr/apache/libexec/libperl.so into server: ld.so.1: /usr/apache/bin/httpd: fatal: libperl.so.1: open failed
: No such file or directory
./apachectl start: httpd could not be started
# echo $LD_LIBRARY_PATH

# find / -name libperl.so.1 -print
/usr/perl5/5.00503/sun4-solaris/CORE/libperl.so.1
^C#
# LD_LIBRARY_PATH=/usr/perl5/5.00503/sun4-solaris/CORE:$LD_LIBRARY_PATH
# export LD_LIBRARY_PATH
# echo $LD_LIBRARY_PATH
/usr/perl5/5.00503/sun4-solaris/CORE:
# ./apachectl start
Syntax error on line 248 of /etc/apache/httpd.conf:
Cannot load /usr/apache/libexec/libperl.so into server: ld.so.1: /usr/apache/bin/httpd: fatal: relocation error: file /u
sr/apache/libexec/libperl.so: symbol Perl_vmess: referenced symbol not found
./apachectl start: httpd could not be started

# /usr/ccs/bin/nm /usr/apache/libexec/libperl.so |grep 'Perl_vmess'
[1340] | 0| 0|FUNC |GLOB |0 |UNDEF |Perl_vmess
#更多精彩文章及讨论,请光临枫下论坛 rolia.net
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / Problem with Apache on Solaris
    本文发表在 rolia.net 枫下论坛Experts,

    I encounter a error when starting Apache on a newly installed Solaris box. A symbol referenced in the perl module can not be resolved. however, if I comment out the perl staff in httpd.conf, it can be started without problem. Anyone one can tell me what's wrong with it?
    Thanks.


    # ./apachectl start
    Syntax error on line 248 of /etc/apache/httpd.conf:
    Cannot load /usr/apache/libexec/libperl.so into server: ld.so.1: /usr/apache/bin/httpd: fatal: libperl.so.1: open failed
    : No such file or directory
    ./apachectl start: httpd could not be started
    # echo $LD_LIBRARY_PATH

    # find / -name libperl.so.1 -print
    /usr/perl5/5.00503/sun4-solaris/CORE/libperl.so.1
    ^C#
    # LD_LIBRARY_PATH=/usr/perl5/5.00503/sun4-solaris/CORE:$LD_LIBRARY_PATH
    # export LD_LIBRARY_PATH
    # echo $LD_LIBRARY_PATH
    /usr/perl5/5.00503/sun4-solaris/CORE:
    # ./apachectl start
    Syntax error on line 248 of /etc/apache/httpd.conf:
    Cannot load /usr/apache/libexec/libperl.so into server: ld.so.1: /usr/apache/bin/httpd: fatal: relocation error: file /u
    sr/apache/libexec/libperl.so: symbol Perl_vmess: referenced symbol not found
    ./apachectl start: httpd could not be started

    # /usr/ccs/bin/nm /usr/apache/libexec/libperl.so |grep 'Perl_vmess'
    [1340] | 0| 0|FUNC |GLOB |0 |UNDEF |Perl_vmess
    #更多精彩文章及讨论,请光临枫下论坛 rolia.net
    • 看看apache的requirement你是不是都满足了。 比如:apache要求的perl的版本
      • It was installed using the Solaris 9 CD distribtion. mod_perrl version: 5.005_03 Server version: Apache/1.3.27
        • should be OK by default; but you need configure document directory
          • DocumentRoot=/var/apache/htdocs/ It won't run if libperl.so need to be loaded. but It can start if give up the perl. then it can serve html files. maybe I should reinstall it from source.