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

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

 

centos8发布有一年时间了,下面就主要讲下在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
分享到 :

发表评论

登录... 后才能评论