欢迎光临
我们一直在努力

centos8安装php7.4.10时的各类错误

【腾讯云】十周年感恩回馈,1核2G云服务器首年95元,4核云服务器额外赠送150GB高性能云数据盘,十年筑梦,伴你同行!

今天开了一台全新的腾讯云香港双核4G 5M带宽的机器,发现腾讯云有centos8.2的镜像了,centos8发布有一年时间了,我本地的虚拟机也早用上了8了,所以对8并不是太陌生,下面我就主要讲下在centos8中安装php7.4.10碰到的各种错误的解决方法;

  • 错误1
checking for libcurl >= 7.15.5... no
configure: error: Package requirements (libcurl >= 7.15.5) were not met:

Package 'libcurl', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables CURL_CFLAGS
and CURL_LIBS to avoid the need to call pkg-config.

解决方案:

dnf -y install libcurl-devel
  • 错误2
checking for libjpeg... no
configure: error: Package requirements (libjpeg) were not met:

Package 'libjpeg', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables JPEG_CFLAGS
and JPEG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

解决方案:

dnf -y install libjpeg-devel

再碰到类似的错误,相信你一定懂的怎么处理了,我就不多说了。

  • 错误3
checking for oniguruma... no
configure: error: Package requirements (oniguruma) were not met:

Package 'oniguruma', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ONIG_CFLAGS
and ONIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

解决方案(这个错误的处理方法有点另类):

dnf -y --enablerepo=PowerTools install oniguruma-devel
赞(0) 打赏
原创文章转载请注明出处:爱编程 » centos8安装php7.4.10时的各类错误
分享到: 更多
【腾讯云】星星海SA2云服务器,1核2G首年99元起,高性价比首选

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

爱编程、一个运维兼程序员的博客!

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏