脚本宝典收集整理的这篇文章主要介绍了在Debian 6上安装Gearman PHP扩展,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
root@debian:/tmp/PEar/install# aptITude seArch gearman i gearman - A distributed job queue i A gearman-job-server - Job server for the Gearman i gearman-tools - Tools for the Gearman i libgearman-dev - Development files for the i libgearman4 - Library PRoviding Gearman
# /usr/local/pear/bin/pecl install gearman downloading gearman-1.1.0.tgz ... Starting to download gearman-1.1.0.tgz (30,488 bytes) .........done: 30,488 bytes 3 source files,building running: PHPize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 building in /tmp/pear/install/pear-build-rootrDO8Ob/gearman-1.1.0 running: /tmp/pear/install/gearman/configure checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /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... /usr checking for PHP includes... -i/usr/include/PHP5 -I/usr/include/PHP5/main -I/usr/include/PHP5/TSRM -I/usr/include/PHP5/Zend -I/usr/include/PHP5/ext -I/usr/include/PHP5/ext/date/lib checking for PHP extension directory... /usr/lib/PHP5/20090626 checking for PHP installed headers prefix... /usr/include/PHP5 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... nawk checking if nawk is broken... no checking whether to enable gearman support... yes,shared not found configure: error: Please install libgearman ERROR: `/tmp/pear/install/gearman/configure' Failed
config.m4有一些有趣的行
for i in $PHP_GEARMAN /usr/local /usr /opt/local; do if test -r $i/include/libgearman-1.0/gearman.h; then GEARMAN_LIB_DIR=/usr/lib GEARMAN_INC_DIR=/usr/include/ AC_MSG_RESULT([found in $i]) break fi done
首先,引用了“libgearman-1.0”(源代码中使用了相同的目录名称).已安装的包括转到/usr/include / libgearman.我创建了一个链接并不是一个大问题
ln -s libgearman/ libgearman-1.0
同样,以防万一GEARMAN_LIB_DIR和GEARMAN_INC_DIR将其指向正确的目录.不幸的是,这是我得到的:
./configure checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /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,shared found in /usr checking for gearman_client_set_context in -lgearman... yes checking for gearman_worker_set_server_option in -lgearman... no configure: error: libgearman version 0.21 or later required
你知道在Debian / ubuntu上安装这个PHP扩展的最简单方法是什么?我在GOOGLE上找到了一些命题但是没有为我工作.
它也可能是从源代码编译libgearman的解决方案,然后使用checkinstall创建之后安装的debian软件包,或使用https://Launchpad.net/~gearman-developers/archive/ppa上提供的gearman开发人员ppa .我们在各种发行版(包括Debian,Ubuntu,RHEL4和SL6)上构建了libgearman,gearmand和PHP扩展,并使用checkinstall来获得适当的包.
以上是脚本宝典为你收集整理的在Debian 6上安装Gearman PHP扩展全部内容,希望文章能够帮你解决在Debian 6上安装Gearman PHP扩展所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。