php - PECL::gnupg cannot be installed in OpenBSD 5.5 -
i'm using openbsd 5.5(with vagrant box:tmatilai/openbsd-5.5). installed php, pear , gnupg pkg_add command. also, installed pecl::apc pecl command.
however, when try install pecl::gnupg pecl command(pecl install gnupg), install fails following message.
# pecl install gnupg downloading gnupg-1.3.3.tgz ... starting download gnupg-1.3.3.tgz (19,141 bytes) ......done: 19,141 bytes 5 source files, building running: phpize configuring for: php api version: 20100412 zend module api no: 20100525 zend extension api no: 220100525 building in /tmp/pear/temp/pear-build-rootmgednwmxyn/gnupg-1.3.3 running: /tmp/pear/temp/gnupg/configure checking grep handles long lines , -e... /usr/bin/grep checking egrep... /usr/bin/grep -e checking sed not truncate output... /usr/bin/sed checking cc... cc checking whether c compiler works... yes checking c compiler default output file name... a.out checking suffix of executables... checking whether cross compiling... no checking suffix of object files... o checking whether using gnu c compiler... yes checking whether cc accepts -g... yes checking cc option accept iso c89... none needed checking how run c preprocessor... cc -e checking icc... no checking suncc... no checking whether cc understands -c , -o together... yes checking system library directory... lib checking if compiler supports -r... yes checking build system type... x86_64-unknown-openbsd5.5 checking host system type... x86_64-unknown-openbsd5.5 checking target system type... x86_64-unknown-openbsd5.5 checking php prefix... /var/www/pear checking php includes... -i/usr/local/share/php-5.4/include -i/usr/local/share/php-5.4/include/main -i/usr/local/share/php-5.4/include/tsrm -i/usr/local/share/php-5.4/include/zend -i/usr/local/share/php-5.4/include/ext -i/usr/local/share/php-5.4/include/ext/date/lib checking php extension directory... /usr/local/lib/php-5.4/modules checking php installed headers prefix... /usr/local/share/php-5.4/include checking if debug enabled... no checking if zts enabled... no checking re2c... no configure: warning: need re2c 0.13.4 or later if want regenerate php parsers. checking gawk... no checking nawk... no checking awk... awk checking if awk broken... no checking gnupg support... yes, shared checking gnupg files in default path... found in /usr/local/include checking gpgme_check_version in -lgpgme... no configure: error: wrong gpgme lib version or lib not found error: `/tmp/pear/temp/gnupg/configure' failed history of command line below:
$ vagrant init tmatilai/openbsd-5.5 $ vagrant $ vagrant ssh ### after login ### $ sudo su # pkg_add php-5.4.24 pear gnupg-1.4.16 gpgme libgpg-error autoconf-2.69p1 automake-1.14.1 # export autoconf_version=2.69 # export automake_version=1.14 # ln -s /usr/local/bin/php-5.4 /usr/local/bin/php # ln -s /usr/local/bin/phpize-5.4 /usr/local/bin/phpize # ln -s /usr/local/bin/php-config-5.4 /usr/local/bin/php-config # pear upgrade pear # pecl install apc # ok # pecl install gnupg # error occurs also, tried manual compilation , had same error.
# mkdir /usr/local/src # cd /usr/local/src # pecl download gnupg # tar zxf gnupg-1.3.3.tgz # cd gnupg-1.3.3 # phpize # ./configure # configure: error: wrong gpgme lib version or lib not found gpgme might installed.
# gpgme-config --version 1.3.1 # ldconfig -r | grep gpgme 63:-lgpgme-pthread.18.0 => /usr/local/lib/libgpgme-pthread.so.18.0 69:-lgpgme.18.0 => /usr/local/lib/libgpgme.so.18.0 # find / -name "*gpgme*" /usr/local/bin/gpgme-config /usr/local/info/gpgme.info-1 /usr/local/info/gpgme.info-2 /usr/local/info/gpgme.info /usr/local/lib/libgpgme.a /usr/local/lib/libgpgme.la /usr/local/lib/libgpgme-pthread.so.18.0 /usr/local/lib/libgpgme.so.18.0 /usr/local/lib/libgpgme-pthread.a /usr/local/lib/libgpgme-pthread.la /usr/local/include/gpgme.h /usr/local/share/aclocal/gpgme.m4 /var/db/pkg/gpgme-1.3.1p0 does know how install pecl::gnupg in openbsd 5.5?
in config.m4, remove "-ldl". it's not needed on freebsd , suspect it's same on openbsd.
also, had use following command line on freebsd:
./configure --with-gnupg=/usr/local ldflags="-l/usr/local/lib" someone using openbsd used following
./configure cflags="-i/usr/local/include" ldflags="-l/usr/local/lib"
Comments
Post a Comment