gpt4 book ai didi

php - 在CENTOS 7上编译PHP 7.4.13会出错

转载 作者:行者123 更新时间:2023-12-03 07:39:02 25 4
gpt4 key购买 nike

我正在尝试将PHP 7.3.9升级到7.4.13,而编译时却出现以下错误

-lcrypto -lcrypt  -o sapi/cli/php
/bin/ld: warning: libssl.so.10, needed by /usr/lib64/libssh2.so.1, may conflict with libssl.so.38
/bin/ld: warning: libcrypto.so.10, needed by /usr/lib64/libssh2.so.1, may conflict with libcrypto.so.37
/bin/ld: ext/openssl/.libs/openssl.o: undefined reference to symbol 'X509_get_signature_nid@@libcrypto.so.10'
/usr/lib64/libcrypto.so.10: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
exiting with zero status

这是我的PHP编译配置
./configure \
--prefix=/opt/php \
--with-apxs2=/opt/apache/bin/apxs \
--with-ldap=/opt/openldap \
--enable-soap \
--enable-sockets \
--with-pgsql=/opt/php/pgsql \
--with-pdo-pgsql=/opt/php/pgsql \
--with-mysql \
--with-pdo-mysql \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-zlib-dir \
--with-freetype-dir \
--enable-gd-native-ttf \
--enable-pcntl \
--with-openssl=/opt/libressl \
--with-openssl-dir=/opt/libressl \
--with-curl=/opt/curl \
--enable-mbstring \
--with-mcrypt \
--with-config-file-path=/opt/php/etc \
--with-config-file-scan-dir=/opt/php/etc/php.d \
--enable-zip \
--with-xsl \
--without-libzip

可以帮忙解决这个问题吗

最佳答案

-with-openssl=/opt/libressl库升级到最新版本。那解决了我的问题。

关于php - 在CENTOS 7上编译PHP 7.4.13会出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65516043/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com