php rpm要下载几个,PHP-RPM 安装指南(亲测有用)

本文档详细记录了手动编译安装PHP7.3.8的全过程,包括解决依赖问题、安装libxml2-devel、libzip、cmake等,并最终成功启动php-fpm。
摘要由CSDN通过智能技术生成

89570228560ae3c0df89a6e18708ddff.png

1 wget https://www.php.net/distributions/php-7.3.8.tar.gz

解压安装

1 tar -xvf php-7.3.8.tar.gz 2 3 ./configure --prefix=/usr/local/php --with-config-file-path=/etc --enable-inline-optimization --disable-debug --disable-rpath --enable-shared --enable-opcache --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-gettext --enable-mbstring --with-iconv --with-mcrypt --with-mhash --with-openssl --enable-bcmath --enable-soap --with-libxml-dir --enable-pcntl --enable-shmop --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-sockets --with-curl --with-zlib --enable-zip --with-bz2 --with-readline --without-sqlite3 --without-pdo-sqlite --with-pear

然后可能会出现错误

cb6701d985e0a075cbd540674f7e7c5f.png

解决办法:

1 yum install libxml2-devel

查看是否成功

1 find / -name "xml2-config"

64ef6ded03dc4b8ec28ecbbe8ea6e9e7.png

1 yum -y install curl-devel

e74496e1a7f5bc2821ec413c9c7cf600.png

解决办法

yum -y install libzip-devel

c7ce4253d80f6a9fd73d8c9b1ebc8e23.png

e5595ef71d4d8532039094cb6f8801bf.png

(由于1.5以及以上的安装方式和版本下的不同,所以这里还需要安装个东西)

yum -y install cmake

然后切回 local目录(版本可能更新了)

wg

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值