環境
CentOS6.9
事象
PHP7.4 をソースからビルドしたく、./configureコマンドを叩いたら下記のMSGが出力され、異常終了。
checking io.h usability... no [336/4815]checking io.h presence... no
checking for io.h... no
checking for strtoll... yes
checking for atoll... yes
checking whether to build with LIBXML support... yes
checking for libxml-2.0 >= 2.7.6... yes
checking for OpenSSL support... yes
checking for Kerberos support... no
checking whether to use system default cipher list instead of hardcoded value... no
checking for openssl >= 1.0.1... no
configure: error: Package requirements (openssl >= 1.0.1) were not met:
No package 'openssl' 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 OPENSSL_CFLAGS
and OPENSSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
いっぱいあるけど、
No package ‘openssl’ found
が、ひときわ目立ってるねぇ。。。
原因
opensslが見つからねえとか。ゴニョゴニョ
対処
yum install openssl
↓
再度./configureするも、同じエラー出力。
↓
export OPENSSL_CFLAGS=-I/usr/include/openssl export OPENSSL_LIBS=-L/usr/lib
↓
直った。
コメント