(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
|