Centos7安装PHP_v7.3.11异常(安装报错:php/ext/curl/multi.c:231: undefined reference to `curl_multi_wait`)


(1)编译正常

echo '/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64'>>/etc/ld.so.conf
ldconfig -v
sysctl vm.nr_hugepages=512
mkdir /usr/local/php
cd /data/soft/php
tar zxf php-7.3.11.tar.gz
cd php-7.3.11
./configure \
--prefix=/usr/local/php \
--with-config-file-path=/usr/local/php/etc \
--with-config-file-scan-dir=/usr/local/php/etc/php.d \
--sysconfdir=/usr/local/php/etc \
--with-libdir=lib64 \
--enable-zip \
--enable-exif \
--enable-ftp \
--enable-mbstring \
--enable-mbregex \
--enable-fpm \
--enable-bcmath \
--enable-pcntl \
--enable-soap \
--enable-sockets \
--enable-shmop \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-opcache \
--with-gettext \
--with-xsl \
--with-libexpat-dir \
--with-xmlrpc \
--with-snmp \
--with-ldap \
--with-ldap-sasl \
--enable-mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-pdo-odbc=unixODBC,/usr \
--with-gd \
--enable-gd-jis-conv \
--with-jpeg-dir \
--with-png-dir \
--with-zlib \
--with-zlib-dir \
--with-freetype-dir=/usr/include/freetype2/freetype \
--with-bz2 \
--with-openssl \
--with-curl \
--with-mhash \
--with-libxml-dir=/usr \
--with-gmp \
--with-pcre-regex \
--enable-calendar \
--disable-cgi \
--with-iconv-dir=/usr/local/php

(2)make安装报如下错:

ext/curl/.libs/multi.o: In function `zif_curl_multi_select':
/data/soft/php/php-7.3.11/ext/curl/multi.c:231: undefined reference to `curl_multi_wait'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] 错误 1

(3)解决方法:依次执行如下命令即可

yum remove curl-devel

make && make install
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值