首頁論壇分類作業系統LinuxCentOS 7.x 編譯安裝 libsodium
CentOS 7.x 編譯安裝 libsodium
   編 輯        刪 除      # 5c8224a78abba 發表: Odyssey     新增:2018-09-17 15:12:48     更新:2018-09-17 15:12:48

The Sodium crypto library (libsodium)
https://download.libsodium.org/doc/

jedisct1/libsodium: A modern, portable, easy to use crypto library
https://github.com/jedisct1/libsodium

Releases · jedisct1/libsodium
https://github.com/jedisct1/libsodium/releases

下載 libsodium
cd /usr/local/src
lynx https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz

安裝 libsodium
tar zxf libsodium-1.0.16.tar.gz
cd libsodium-1.0.16
./configure --prefix=/usr/local/libsodium --with-pthreads
make
make check
make install
make clean

jedisct1/libsodium-php: PHP extension for libsodium
https://github.com/jedisct1/libsodium-php

Releases · jedisct1/libsodium-php
https://github.com/jedisct1/libsodium-php/releases

下載 libsodium-php
cd /usr/local/src
lynx https://github.com/jedisct1/libsodium-php/archive/1.0.7.tar.gz

安裝 libsodium-php
tar zxf libsodium-php-1.0.7.tar.gz
cd libsodium-php-1.0.7
/usr/local/php7/bin/phpize
./configure --with-php-config=/usr/local/php7/bin/php-config --with-libsodium=/usr/local/libsodium
make
make test
make install
make clean

vi /usr/local/php7/etc/php.ini
extension=libsodium.so


夢幻奧德修斯 - OdysseusDream
Website:https://www.odysseusdream.com/
Discord:https://discord.gg/ht4mwMG
FB社團:https://www.facebook.com/groups/OdysseusDream/

我要回覆
CentOS 7.x 編譯安裝 libsodium
首頁論壇分類作業系統LinuxCentOS 7.x 編譯安裝 libsodium