2014-03-05 107 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」

相關問題