2016-06-20 3 views
1

안녕하십니까. 내 OS Yosemite 컴퓨터에 pecl을 사용하여 gnupg를 설치할 수 없습니다.OSX에서 gnupg 및 gpgme lib 버전 오류

목적 :

은 GnuPG는 모듈 PGP 암호화를 수행하는 PHP에 사용되는 설치합니다.

지금까지 물건을 설치 :

설치된 gpgme이 autoconf를 설치 한 후 양조를 사용하여. brew도 autoconf도 내 컴퓨터에서 사용할 수 없었습니다. 내가 sudo pecl install gnupg을 수행 할 때

이 그것을 설치하려고하지만 아래의 전체 로그를 붙여 넣기하고

configure: error: wrong gpgme lib version or lib not found 

에서 종료 : 설치 gpgme 버전은 1.6.0

문제입니다. 내가 지금까지 시도 무엇

sudo pecl install gnupg 
Password: 
downloading gnupg-1.3.6.tgz ... 
Starting to download gnupg-1.3.6.tgz (19,273 bytes) 
......done: 19,273 bytes 
5 source files, building 
running: phpize 
Configuring for: 
PHP Api Version:   20131106 
Zend Module Api No:  20131226 
Zend Extension Api No: 220131226 
building in /private/tmp/pear/temp/pear-build-rootJfzyjJ/gnupg-1.3.6 
running: /private/tmp/pear/temp/gnupg/configure 
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-apple-darwin14.5.0 
checking host system type... x86_64-apple-darwin14.5.0 
checking target system type... x86_64-apple-darwin14.5.0 
checking for PHP prefix... /Applications/XAMPP/xamppfiles 
checking for PHP includes... -I/Applications/XAMPP/xamppfiles/include/php -I/Applications/XAMPP/xamppfiles/include/php/main -I/Applications/XAMPP/xamppfiles/include/php/TSRM -I/Applications/XAMPP/xamppfiles/include/php/Zend -I/Applications/XAMPP/xamppfiles/include/php/ext -I/Applications/XAMPP/xamppfiles/include/php/ext/date/lib 
checking for PHP extension directory... /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226 
checking for PHP installed headers prefix... /Applications/XAMPP/xamppfiles/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... no 
checking for nawk... no 
checking for awk... awk 
checking if awk is broken... no 
checking for gnupg support... yes, shared 
checking for gnupg files in default path... found in /usr/local/include 
checking for gpgme_check_version in -lgpgme... no 
configure: error: wrong gpgme lib version or lib not found 
ERROR: `/private/tmp/pear/temp/gnupg/configure' failed 

는 :

  • 나는 양조 명령을 통해 GnuPG는 설치를 시도하고 그것을 잘 설치 않았지만 내가 PHP에서 사용할 수 없습니다.
  • phpizeconfigure을 사용하여 gnupg를 수동으로 컴파일하려고했지만 make 명령을 실행하면 동일한 오류가 발생합니다.

이 버전 문제를 어떻게 해결할 수 있는지 알려주십시오.

답변

0

brew install gnupg[2]은 GnuPG를 인터페이싱하기위한 라이브러리이며 다른 자작 포장 패키지로 제공되는 gpgme을 설치하지 않습니다. brew install gpgme도 실행하십시오. 그런 다음 GPGME 라이브러리가 /usr/local/include 아래에 있어야합니다. 당신이 브루을 통해 PHP를 설치하는 경우

또한, PHP에 대한 GnuPG는 패키지도 쉽게 사용할 수있다 :

$ brew search gnupg 
gnupg 
gnupg-pkcs11-scd 
gnupg2       
homebrew/php/php53-gnupg 
homebrew/php/php55-gnupg 
homebrew/versions/gnupg21  
homebrew/php/php54-gnupg 
homebrew/php/php56-gnupg