- 积分
- 26
- 威望
-
- 金钱
-
- 注册时间
- 2021-6-5
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
从/usr/local/php/etc/php.ini中disable_functions里
popen,readlink 从php禁用函数里删除
root@debian:~# apt-get install libsodium-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会同时安装下列软件:
libsodium23
下列【新】软件包将被安装:
libsodium-dev libsodium23
升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级 。
需要下载 334 kB 的归档。
解压缩后会消耗 1,211 kB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://deb.debian.org/debian buster/main amd64 libsodium23 amd64 1.0.17-1 [158 kB]
获取:2 http://deb.debian.org/debian buster/main amd64 libsodium-dev amd64 1.0.17 -1 [176 kB]
已下载 334 kB,耗时 1秒 (297 kB/s)
正在选中未选择的软件包 libsodium23:amd64。
(正在读取数据库 ... 系统当前共安装有 40648 个文件和目录。)
准备解压 .../libsodium23_1.0.17-1_amd64.deb ...
正在解压 libsodium23:amd64 (1.0.17-1) ...
正在选中未选择的软件包 libsodium-dev:amd64。
准备解压 .../libsodium-dev_1.0.17-1_amd64.deb ...
正在解压 libsodium-dev:amd64 (1.0.17-1) ...
正在设置 libsodium23:amd64 (1.0.17-1) ...
正在设置 libsodium-dev:amd64 (1.0.17-1) ...
正在处理用于 libc-bin (2.28-10) 的触发器 ...
root@debian:~# pecl install libsodium
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-upd ate pecl.php.net" to update
downloading libsodium-2.0.23.tgz ...
Starting to download libsodium-2.0.23.tgz (28,505 bytes)
.........done: 28,505 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version: 20200930
Zend Module Api No: 20200930
Zend Extension Api No: 420200930
building in /tmp/pear/temp/pear-build-rootSVoy0u/libsodium-2.0.23
running: /tmp/pear/temp/libsodium/configure --with-php-config=/usr/local/php/bin /php-config
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 pkg-config... /usr/bin/pkg-config
checking for libsodium... version 1.0.17 found using pkg-config
checking for sodium_add in -lsodium... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libra ries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
这个扩展安装真麻烦,每次不顺
|
|