安装PHP7.4时执行命令./configure --prefix=/usr/local/php --with-mysql-sock=/usr/local/mysql/mysql.sock --with-mysqli --with-zlib --with-curl --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-openssl --enable-mbstring --enable-xml --enable-session --enable-ftp --enable-pdo --enable-tokenizer --enable-zip --enable-fpm时报
configure: error: Package requirements (libcurl >= 7.15.5) were not met:
Package 'libcurl', required by 'virtual:world', not found
解决:执行命令
yum install libcurl-devel
在安装PHP么?欢迎来看我的原创文章“零基础Centos8安装PHP7.4”(https://blog.csdn.net/have_a_cat/article/details/115206879),这里有详细安装步骤、安装截图、报错解决,只要跟着步骤,就能完成PHP7安装