Apache 错误mod_ssl需要OpenSSL 0.9.8a或更高版本

Apache 错误mod_ssl需要OpenSSL 0.9.8a或更高版本,apache,openssl,makefile,solaris,Apache,Openssl,Makefile,Solaris,我正在尝试在Solaris计算机上安装apache 2.4.7。首先,我使用 /配置 然后,当我做决定的时候。在一些成功的声明之后,它抛出了以下错误 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

我正在尝试在Solaris计算机上安装apache 2.4.7。首先,我使用

/配置

然后,当我做决定的时候。在一些成功的声明之后,它抛出了以下错误

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日


请帮助我解决此问题。

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

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

我通过安装开放式ssl的开发包解决了这个问题:“sudo apt get install libssl dev”

我通过安装开放式ssl的开发包解决了这个问题:“sudo-apt-get-install-libssl-dev”

我也面临类似的问题。我的openssl是用“yum或up2date安装的“命令,因此我无法给出具体的目录。那样的话,我该怎么办。我没有任何根权限。@Sohan您可以尝试从源openssl安装。在那里,您可以指定要放在哪个文件夹中,其中包含ssl参数。我也面临类似的问题。我的openssl是用“yum”命令安装的,所以我不能给出具体的目录。那样的话,我该怎么办。我没有任何根权限。@Sohan您可以尝试从源openssl安装。在那里,您可以使用ssl参数指定要放在哪个文件夹上