- 积分
- 26
- 威望
-
- 金钱
-
- 注册时间
- 2021-6-5
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
centos 8
lnmp安装的php 8.0.6,安装sodium扩展不成功
[root@localhost sodium]# yum install libsodium-devel
上次元数据过期检查:1:25:21 前,执行于 2021年06月07日 星期一 12时30分33秒。
未找到匹配的参数: libsodium-devel
错误:没有任何匹配: libsodium-devel
[root@localhost sodium]#
下载了full包解压了php,安装还是失败
[root@localhost ext]# cd sodium
[root@localhost sodium]# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20200930
Zend Module Api No: 20200930
Zend Extension Api No: 420200930
[root@localhost sodium]# ./configure --with-php-config=/usr/local/php/bin/php-co nfig --with-kerberos --with-imap-ssl
configure: WARNING: unrecognized options: --with-kerberos, --with-imap-ssl
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr/local/php
checking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/inclu de/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-deb ug-non-zts-20200930
checking for PHP installed headers prefix... /usr/local/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking for sodium support... yes, shared
checking for libsodium >= 1.0.8... no
configure: error: Package requirements (libsodium >= 1.0.8) were not met:
Package 'libsodium', 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 LIBSODIUM_CFLAGS
and LIBSODIUM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
[root@localhost sodium]# make && make install
make: *** 没有指明目标并且找不到 makefile。 停止。
[root@localhost sodium]#
|
|