微信支付平台证书 PHP5.6 扩展 libsodium sodium linux 宝塔

php5.6 linux版本

版本:1.0.6

wget https://github.com/jedisct1/libsodium-php/archive/1.0.6.tar.gz

具体命令

wget https://github.com/jedisct1/libsodium-php/archive/1.0.6.tar.gz
tar xf 1.0.6.tar.gz
cd tar xf 1.0.6
 /www/server/php/56/bin/phpize
 ./configure --with-php-config=/www/server/php/56/bin/php-config
make
make install

配置php.ini

extension=libsodium.so

文件位置

/www/server/php/56/etc

libsodium

libsodium support enabled
libsodium compiled version 1.0.6
libsodium headers version 1.0.18
libsodium library version 1.0.18

安装和编译过程

1.0.6.tar.gz  2.0.22.tar.gz  libsodium-php-1.0.6  libsodium-php-2.0.22
[root@iZwz90913tx5u1k5xdokjgZ php56]# cd libsodium-php-1.0.6
[root@iZwz90913tx5u1k5xdokjgZ libsodium-php-1.0.6]# /www/server/php/56/bin/phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
[root@iZwz90913tx5u1k5xdokjgZ libsodium-php-1.0.6]# ./configure --with-php-config=/www/server/php/56/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 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 whether cc understands -c and -o together... yes
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-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /www/server/php/56
checking for PHP includes... -I/www/server/php/56/include/php -I/www/server/php/56/include/php/main -I/www/server/php/56/include/php/TSRM -I/www/server/php/56/include/php/Zend -I/www/server/php/56/include/php/ext -I/www/server/php/56/include/php/ext/date/lib
checking for PHP extension directory... /www/server/php/56/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /www/server/php/56/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for libsodium support... yes, shared
checking for libsodium files in default path... found in /usr
checking for crypto_pwhash_scryptsalsa208sha256 in -lsodium... yes
checking for crypto_aead_aes256gcm_encrypt in -lsodium... yes
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... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... 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

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
[root@iZwz90913tx5u1k5xdokjgZ libsodium-php-1.0.6]# make
/bin/sh /未来之窗阿雪技术观/php56/libsodium-php-1.0.6/libtool --mode=compile cc  -I. -I/未来之窗阿雪技术观/php56/libsodium-php-1.0.6 -DPHP_ATOM_INC -I/未来之窗阿雪技术观/php56/libsodium-php-1.0.6/include -I/未来之窗阿雪技术观/php56/libsodium-php-1.0.6/main -I/未来之窗阿雪技术观/php56/libsodium-php-1.0.6 -I/www/server/php/56/include/php -I/www/server/php/56/include/php/main -I/www/server/php/56/include/php/TSRM -I/www/server/php/56/include/php/Zend -I/www/server/php/56/include/php/ext -I/www/server/php/56/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /未来之窗阿雪技术观/php56/libsodium-php-1.0.6/libsodium.c -o libsodium.lo 
mkdir .libs
 cc -I. -I/未来之窗阿雪技术观/php56/libsodium-php-1.0.6 -DPHP_ATOM_INC -I/未来之窗阿雪技术观/php56/libsodium-php-1.0.6/include -I/未来之窗阿雪技术观/php56/libsodium-php-1.0.6/main -I/未来之窗阿雪技术观/php56/libsodium-php-1.0.6 -I/www/server/php/56/include/php -I/www/server/php/56/include/php/main -I/www/server/php/56/include/php/TSRM -I/www/server/php/56/include/php/Zend -I/www/server/php/56/include/php/ext -I/www/server/php/56/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /未来之窗阿雪技术观/php56/libsodium-php-1.0.6/libsodium.c  -fPIC -DPIC -o .libs/libsodium.o
/bin/sh /未来之窗阿雪技术观/php56/libsodium-php-1.0.6/libtool --mode=link cc -DPHP_ATOM_INC -I/未来之窗阿雪技术观/php56/libsodium-php-1.0.6/include -I/未来之窗阿雪技术观/php56/libsodium-php-1.0.6/main -I/未来之窗阿雪技术观/php56/libsodium-php-1.0.6 -I/www/server/php/56/include/php -I/www/server/php/56/include/php/main -I/www/server/php/56/include/php/TSRM -I/www/server/php/56/include/php/Zend -I/www/server/php/56/include/php/ext -I/www/server/php/56/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -o libsodium.la -export-dynamic -avoid-version -prefer-pic -module -rpath /未来之窗阿雪技术观/php56/libsodium-php-1.0.6/modules  libsodium.lo -lsodium
cc -shared  .libs/libsodium.o  -lsodium  -Wl,-soname -Wl,libsodium.so -o .libs/libsodium.so
creating libsodium.la
(cd .libs && rm -f libsodium.la && ln -s ../libsodium.la libsodium.la)
/bin/sh /未来之窗阿雪技术观/php56/libsodium-php-1.0.6/libtool --mode=install cp ./libsodium.la /未来之窗阿雪技术观/php56/libsodium-php-1.0.6/modules
cp ./.libs/libsodium.so /未来之窗阿雪技术观/php56/libsodium-php-1.0.6/modules/libsodium.so
cp ./.libs/libsodium.lai /未来之窗阿雪技术观/php56/libsodium-php-1.0.6/modules/libsodium.la
PATH="$PATH:/sbin" ldconfig -n /未来之窗阿雪技术观/php56/libsodium-php-1.0.6/modules
----------------------------------------------------------------------
Libraries have been installed in:
  /php56/libsodium-php-1.0.6/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

相关推荐

  1. php 扫码支付

    2024-06-06 17:24:04       46 阅读
  2. 编译企业会话内容存档PHP版SDK扩展

    2024-06-06 17:24:04       61 阅读
  3. centos7 宝塔php7安装mongodb扩展

    2024-06-06 17:24:04       33 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-06 17:24:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-06 17:24:04       100 阅读
  3. 在Django里面运行非项目文件

    2024-06-06 17:24:04       82 阅读
  4. Python语言-面向对象

    2024-06-06 17:24:04       91 阅读

热门阅读

  1. kafka 可以脱离 zookeeper 单独使用吗?为什么?

    2024-06-06 17:24:04       25 阅读
  2. Android串口调试ADB

    2024-06-06 17:24:04       28 阅读
  3. 元宇宙概念及关键技术

    2024-06-06 17:24:04       32 阅读
  4. 调用大模型API 给产业分类

    2024-06-06 17:24:04       34 阅读
  5. 什么情况下AI可以不用预先设定算法和规则?

    2024-06-06 17:24:04       31 阅读
  6. matlab误差估计扩展卡尔

    2024-06-06 17:24:04       28 阅读
  7. 优化耗时业务:异步线程在微服务中的应用

    2024-06-06 17:24:04       33 阅读
  8. Pytorch 叶子节点和非叶子节点的理解

    2024-06-06 17:24:04       27 阅读