- 积分
- 26
- 威望
-
- 金钱
-
- 注册时间
- 2021-6-5
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
root@debian:~# pecl install libsodium
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-upd ate pecl.php.net" to update
PHP Fatal error: Uncaught Error: Call to undefined function popen() in /usr/loc al/php/lib/php/OS/Guess.php:254
Stack trace:
#0 /usr/local/php/lib/php/OS/Guess.php(152): OS_Guess->_detectGlibcVersion()
#1 /usr/local/php/lib/php/OS/Guess.php(107): OS_Guess->parseSignature()
#2 /usr/local/php/lib/php/PEAR/Dependency2.php(109): OS_Guess->__construct()
#3 /usr/local/php/lib/php/PEAR/Downloader.php(277): PEAR_Dependency2->__construc t()
#4 /usr/local/php/lib/php/PEAR/Downloader.php(556): PEAR_Downloader->getDependen cy2Object()
#5 /usr/local/php/lib/php/PEAR/Downloader.php(458): PEAR_Downloader->analyzeDepe ndencies()
#6 /usr/local/php/lib/php/PEAR/Command/Install.php(671): PEAR_Downloader->downlo ad()
#7 /usr/local/php/lib/php/PEAR/Command/Common.php(270): PEAR_Command_Install->do Install()
#8 /usr/local/php/lib/php/pearcmd.php(317): PEAR_Command_Common->run()
#9 /usr/local/php/lib/php/peclcmd.php(32): require_once('...')
#10 {main}
thrown in /usr/local/php/lib/php/OS/Guess.php on line 254
root@debian:~# /etc/init.d/php-fpm restart
Gracefully shutting down php-fpm . done
Starting php-fpm [05-Jun-2021 18:08:33] NOTICE: PHP message: PHP Warning: PHP S tartup: Unable to load dynamic library 'sodium' (tried: /usr/local/php/lib/php/e xtensions/no-debug-non-zts-20200930/sodium (/usr/local/php/lib/php/extensions/no -debug-non-zts-20200930/sodium: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20200930/sodium.s o (/usr/local/php/lib/php/extensions/no-debug-non-zts-20200930/sodium.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
done
root@debian:~# ^C
安装不了, apt-get install libsodium-dev,Debian10.9
现在微信支付API的V3版支付接口都需要sodium,建议默认安装上 |
|
|