centos中爲php安裝GnuPG擴展

基本上所有需要用到的包和庫都在官網:

https://www.gnupg.org/index.html

1.到http://pecl.php.net/package/gnupg下載gnupg包。

2.make gnupg包的時候,會提示你缺少gpgme,到https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.6.0.tar.bz2這裏下載。

3.安裝gpgme的時候,會提示我們:

configure:
***
*** You need libgpg-error to build this program.
**  This library is for example available at
***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
*** (at least version 1.11 is required.)
***
configure:
***
*** You need libassuan to build this program.
*** This library is for example available at
***   ftp://ftp.gnupg.org/gcrypt/libassuan/
*** (at least version 2.0.2 (API 2) is required).
***
configure: error: 
***
*** Required libraries not found. Please consult the above messages
*** and install them before running configure again.
***
[root@supportserver-51 gpgme-1.6.0]# 

所以我們還需要安裝libgpg-error和libassuan擴展,這兩個擴展在www.gnupg.org官網都有的。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章