嗨,我有pecl安装的问题,我遇到的问题是我正在安装gearman,我现在正处于安装pecl PHP扩展的阶段.
它应该是一个简单的执行命令:
$ sudo pecl install gearman
Run Code Online (Sandbox Code Playgroud)
安装成功,我甚至可以测试包含的PHP
<?php
echo "Gearman version: " . gearman_version() . PHP_EOL;
?>
Run Code Online (Sandbox Code Playgroud)
使用以下命令在CLI php中执行:
$ php gearman_version.php
Run Code Online (Sandbox Code Playgroud)
诀窍.不幸的是我正在使用堆栈.lappstack确切地说,我在lappstack的安装中有一个单独的php,它位于:
/home/userName/lappstack-5.4.34-0/php
Run Code Online (Sandbox Code Playgroud)
其中php/etc包含我的php.ini供web使用.
现在,回到齿轮装置的pecl装置,执行pecl安装齿轮装置 结果齿轮装置安装在单独的php5安装中,并且gearman.so安装在:
/usr/lib/php5/20121212/gearman.so
Run Code Online (Sandbox Code Playgroud)
理想情况下,齿轮手应该包含在:
/home/userName/lappstack-5.4.34-0/php/lib/php/extensions/gearman.so
Run Code Online (Sandbox Code Playgroud)
像我所有的其他扩展.
这实际上导致应用程序无法使用齿轮机扩展.而指向的php.ini,使用gearman实际上就是:
/etc/php5/cli
Run Code Online (Sandbox Code Playgroud)
和
/etc/php5/apache2
Run Code Online (Sandbox Code Playgroud)
我需要帮助,我实际上正在安装我的装置.谢谢 !
我正在尝试在 PHP 5.5.27 上使用pecl install xdebug安装 xdebug
根据PECL网站https://pecl.php.net/package/xdebug xdebug最新稳定版本是2.3.3
但是上面的命令正在尝试安装xdebug 2.3.2
这有什么问题吗?
我正在运行 Amazon Linux AMI 2016.09.1 (HVM),SSD 卷类型
我跑了:
yum update
yum install php70
yum install php70-gd php70-mysqlnd php70-fpm php70-pecl-apcu php7-pear php70-devel
yum install php70-soap
Run Code Online (Sandbox Code Playgroud)
什么时候做
php -v
7.0.14
Run Code Online (Sandbox Code Playgroud)
和
apachectl -V
Server version: Apache/2.4.25 (Amazon)
Run Code Online (Sandbox Code Playgroud)
但是当我尝试运行“pecl”时,我得到“找不到命令”
我已经确认每个包都已安装。不知道我错过了什么包裹。
" memcached
"已安装但" memcache
"我无法安装.我成功安装在php 5.6但在7.2中获取错误
WHM中的屏幕截图:
安装日志
downloading memcache-2.2.7.tgz ...
Starting to download memcache-2.2.7.tgz (36,459 bytes)
..........done: 36,459 bytes
11 source files, building
running: phpize
Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
Zend Extension Api No: 320170718
Enable memcache session handler support? [yes] : building in /root/tmp/pear/pear-build-rootN2fUrn/memcache-2.2.7
running: /root/tmp/pear/memcache/configure --with-php-config=/opt/cpanel/ea-php72/root/usr/bin/php-config --enable-memcache-session=yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that …
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 pecl 安装 zipArchive。运行命令后,我收到错误 - “请重新安装 libzip 发行版”。
我在 Amazon Linux 2 上运行 PHP 7.2。
这是我的输出:
$ ./pecl install zip
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading zip-1.15.2.tgz ...
Starting to download zip-1.15.2.tgz (249,280 bytes)
....................................................done: 249,280 bytes
8 source files, building
running: phpize
Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
Zend Extension Api No: 320170718
building in /tmp/pear/install/pear-build-ec2-userIZcX1f/zip-1.15.2
running: /tmp/pear/install/zip/configure --with-php-config=/usr/bin/php-config
checking for grep that handles long lines …
Run Code Online (Sandbox Code Playgroud) 更新
这个问题似乎与 PECL 本身有关:
https://github.com/Imagick/imagick/issues/331
我无法运行构建过程,pecl install imagick
也无法从错误日志中获取任何信息。我使用装有最新 Apple M1 处理器的 Mac (OS 11.2.1)。该库与 PHP 8.0.2 结合使用
在开始构建过程之前,我安装了以下 brew 包:
所需的库
brew install pkg-config
brew install imagemagick
Run Code Online (Sandbox Code Playgroud)
构建命令
pecl install imagick
Run Code Online (Sandbox Code Playgroud)
构建过程日志
creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/tmp/pear/temp/pear-build-rootgEqg8P/imagick-3.4.4/libtool --mode=compile cc -I. -I/private/tmp/pear/temp/imagick -I/private/tmp/pear/temp/pear-build-rootgEqg8P/imagick-3.4.4/include -I/private/tmp/pear/temp/pear-build-rootgEqg8P/imagick-3.4.4/main -I/private/tmp/pear/temp/imagick -I/opt/homebrew/Cellar/php/8.0.2/include/php -I/opt/homebrew/Cellar/php/8.0.2/include/php/main -I/opt/homebrew/Cellar/php/8.0.2/include/php/TSRM -I/opt/homebrew/Cellar/php/8.0.2/include/php/Zend -I/opt/homebrew/Cellar/php/8.0.2/include/php/ext -I/opt/homebrew/Cellar/php/8.0.2/include/php/ext/date/lib -I/opt/homebrew/Cellar/imagemagick/7.0.11-0/include/ImageMagick-7 -DHAVE_CONFIG_H -g -O2 -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 …
Run Code Online (Sandbox Code Playgroud) RUN pecl install mongodb-1.4.2
Run Code Online (Sandbox Code Playgroud)
结果是这样的输出:
RUN pecl install mongodb-1.4.2 && docker-php-ext-enable mongodb:
No releases available for package "pecl.php.net/mongodb"
install failed
Run Code Online (Sandbox Code Playgroud)
这可能是一个证书问题吗?因为如果我尝试 wget 我会得到以下结果:
Connecting to pecl.php.net (104.236.228.160:443)
ssl_client: pecl.php.net: certificate verification failed: certificate has expired
Run Code Online (Sandbox Code Playgroud)
PHP 版本 php:7.0
有没有办法解决这个问题,还是我需要等待他们更新证书?
我在安装时遇到此错误 pecl/amqp
当我在命令行中键入时: pear install pecl/amqp
警告:php_bin C:\ xampp \ php。\ php.exe似乎有一个后缀。\ php.exe,
但
配置变量php_suffix不匹配
错误:DSP amqp.dsp不存在。
我需要安装它,以便可以RabbitMQ
在php上使用amqp()。
我疯了很多研究找到php7的dbase dll,我没有找到它.
有人找到了吗?或者你知道是否有办法从旧版本重建dbase.dll来创建一个新版本.
[15-Oct-2015 23:20:30 UTC] PHP Warning: PHP Startup: dbase: Unable to initialize module
Module compiled with module API=20131226
PHP compiled with module API=20141001
These options need to match
in Unknown on line 0
Run Code Online (Sandbox Code Playgroud)
在这个错误中,我们可以看到模块是使用模块20131226编译的,有一种方法可以使用新模块来获取它并重建它吗?
谢谢你们
我正在尝试为php安装intl。当我运行时,sudo pecl install intl
它给我一个错误No releases available for package "pecl.php.net/intl"
。我尝试清除缓存,也尝试升级pear
和pecl
。没有。这是我的梨和PHP版本:
PEAR Version: 1.9.4
PHP Version: 5.6.3
Zend Engine Version: 2.6.0
Running on: Darwin iMac-bvc.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64
有任何想法吗?提前致谢!