does the trick. Unfortunately I am using a stack. lappstack to be precise, and I have a separate php in the installation of my lappstack which is in :/home/userName/lappstack-5.4.34-0/php其中php/etc包含我的 php.ini 供网络使用.where php/etc contains my php.ini for web use.现在,返回到Gearman的pecl安装,执行 pecl install gearman结果将gearman安装在单独的php5安装中,并且 gearman.so 安装在:now, going back to the pecl installation of gearman, executing the pecl install gearmanresults to gearman being installed in a separate php5 installation, and the gearman.so is installed in :/usr/lib/php5/20121212/gearman.so理想情况下,gearman.so应该包含在:which, ideally, the gearman.so should be contained in :/home/userName/lappstack-5.4.34-0/php/lib/php/extensions/gearman.so像其他所有扩展程序一样.like all my other extensions.实际上导致应用程序无法使用gearman扩展名.指向php.ini并使用gearman的实际上是:which actually results to the application not being able to use the gearman extension. And the php.ini that is being pointed to, to use gearman is actually the ones in :/etc/php5/cli和/etc/php5/apache2我需要帮助,我的安装确实很麻烦.谢谢!I need help, I'm really in the process of getting haywired in my installations. Thanks !推荐答案您可以通过以下方式查看已配置的目录You can see the configured directories with$ pear config-show要更改目录,例如php_dir,使用config-set:To change the directories, e.g. php_dir, use config-set:$ pear config-set php_dir /path/to/foo 这篇关于更改Pecl安装目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-04 23:12
查看更多