2014-03-05 82 views
0

我想在Solaris机器上安装apache 2.4.7。首先我没有使用错误mod_ssl需要OpenSSL 0.9.8a或更高版本

的./configure

然后,当我做了配置。在一些成功的陈述后,它引发了我的错误。

In file included from mod_ssl.c:27: 
ssl_private.h:109:2: #error mod_ssl requires OpenSSL 0.9.8a or later 
*** Error code 1 
make: Fatal error: Command failed for target `mod_ssl.slo' 
Current working directory /var/spool/pkg/httpd-2.4.7/modules/ssl 
*** Error code 1 
The following command caused the error: 
if test `pwd` = "/var/spool/pkg/httpd-2.4.7"; then \ 
    echo "" ; \ 
fi; \ 
list=''; for i in $list; do \ 
    target="shared-build"; \ 
    if test "$i" = "."; then \ 
     made_local=yes; \ 
     target="local-shared-build"; \ 
    fi; \ 
    if test "$i" != "srclib"; then \ 
     (cd $i && make $target) || exit 1; \ 
    fi; \ 
done; \ 
if test -f 'modules.mk'; then \ 
    if test -n 'mod_ssl.la'; then \ 
     echo "Building shared: mod_ssl.la"; \ 
     if test "$made_local" != "yes"; then \ 
       make "local-shared-build" || exit 1; \ 
     fi; \ 
    fi; \ 
fi; \ 
if test `pwd` = "/var/spool/pkg/httpd-2.4.7"; then \ 
     echo "" ; \ 
fi 
make: Fatal error: Command failed for target `shared-build-recursive' 
Current working directory /var/spool/pkg/httpd-2.4.7/modules/ssl 
*** Error code 1 
The following command caused the error: 
if test `pwd` = "/var/spool/pkg/httpd-2.4.7"; then \ 
    echo "" ; \ 
fi; \ 
list='aaa cache core database debugging filters http loggers metadata proxy session slotmem ssl proxy/balancers arch/unix dav/main generators dav/fs mappers'; for i in $list; do \ 
    target="shared-build"; \ 
    if test "$i" = "."; then \ 
     made_local=yes; \ 
     target="local-shared-build"; \ 
    fi; \ 
    if test "$i" != "srclib"; then \ 
     (cd $i && make $target) || exit 1; \ 
    fi; \ 
done; \ 
if test -f 'modules.mk'; then \ 
    if test -n ''; then \ 
     echo "Building shared: "; \ 
     if test "$made_local" != "yes"; then \ 
       make "local-shared-build" || exit 1; \ 
     fi; \ 
    fi; \ 
fi; \ 
if test `pwd` = "/var/spool/pkg/httpd-2.4.7"; then \ 
     echo "" ; \ 
fi 
make: Fatal error: Command failed for target `shared-build-recursive' 
Current working directory /var/spool/pkg/httpd-2.4.7/modules 
*** Error code 1 
The following command caused the error: 
if test `pwd` = "/var/spool/pkg/httpd-2.4.7"; then \ 
    echo "" ; \ 
fi; \ 
list='srclib os server modules support'; for i in $list; do \ 
    target="shared-build"; \ 
    if test "$i" = "."; then \ 
     made_local=yes; \ 
     target="local-shared-build"; \ 
    fi; \ 
    if test "$i" != "srclib"; then \ 
     (cd $i && make $target) || exit 1; \ 
    fi; \ 
done; \ 
if test -f 'modules.mk'; then \ 
    if test -n ''; then \ 
     echo "Building shared: "; \ 
     if test "$made_local" != "yes"; then \ 
       make "local-shared-build" || exit 1; \ 
     fi; \ 
    fi; \ 
fi; \ 
if test `pwd` = "/var/spool/pkg/httpd-2.4.7"; then \ 
     echo "" ; \ 
fi 
make: Fatal error: Command failed for target `shared-build-recursive' 
Current working directory /var/spool/pkg/httpd-2.4.7 
*** Error code 1 
The following command caused the error: 
otarget=`echo all-recursive|sed s/-recursive//`; \ 
list=' srclib os server modules support'; \ 
for i in $list; do \ 
    if test -d "$i"; then \ 
     target="$otarget"; \ 
     echo "Making $target in $i"; \ 
     if test "$i" = "."; then \ 
       made_local=yes; \ 
       target="local-$target"; \ 
     fi; \ 
     (cd $i && make $target) || exit 1; \ 
    fi; \ 
done; \ 
if test "$otarget" = "all" && test -z 'httpd shared-build '; then \ 
    made_local=yes; \ 
fi; \ 
if test "$made_local" != "yes"; then \ 
    make "local-$otarget" || exit 1; \ 
fi 
make: Fatal error: Command failed for target `all-recursive' 

即使我安装了最新的openssl版本之后,上面的错误也出现了。

的OpenSSL 1.0.1f 2014年1月6日

请帮我解决这个问题。

回答

1

您可能无意中试图链接到Oracle过时的/ usr/sfw/lib中的OpenSSL。您可能需要在httpd configure命令中明确指定OpenSSL 1.0.1f副本的路径,例如“--with-ssl =/path/to/openssl”。

+0

我也遇到过类似的问题。我的openssl安装了“yum”命令,所以没有特定的目录我可以给。那样的话我该怎么做。 我没有任何root权限。 – Sohan

1

我解决了这个问题,安装了用于打开ssl的开发包:“sudo apt-get install libssl-dev”

相关问题