PECL 安装失败
从 PHP5.2.6 升级到 php 5.3 后。看起来,我还必须重新安装 PHP memcache-module。 所以我下载了最新版本的memcache(3.0.6)并遵循此文档: http://www.php.net/manual/en/install.pecl .pear.php
pecl install memcache
这会导致以下错误消息:
No releases available for package "pecl.php.net/memcache"
install failed
这里发生了什么?顺便说一句:服务器没有连接到互联网,但这应该不是问题,对吧?!
after upgrading from PHP5.2.6 to php 5.3. it seams, I also have to reinstall the PHP memcache-module.
So I downloaded the newest version of memcache (3.0.6) and followed this documentation:
http://www.php.net/manual/en/install.pecl.pear.php
pecl install memcache
Which results in the following error-message:
No releases available for package "pecl.php.net/memcache"
install failed
what's going on here? By the way: the server is not connected to the Internet, but that shouldn't be a problem, right?!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为了回答我自己的问题,为了提高 @OZ_ 和 @martswite 的知识视野,
pecl 扩展的离线安装工作方式如下:
1.) 从 http://pecl.php.net/packages.php
2.) 在那里你会得到一个 .tgz 文件
3.) 安装该文件:
To answer my own question an for rising the intellectual horizon of @OZ_ and @martswite
an offline-installation of an pecl extension works like the following way:
1.) download the extension from http://pecl.php.net/packages.php
2.) there you get an .tgz file
3.) install the file:
PECL 模块(默认情况下,并且大多数情况下)是从非本地存储库下载的。
因此,您需要某种形式的互联网连接才能下载它。
或者,您可以将 pecl 包从您的计算机上传到服务器本地文件系统上的某个位置,然后从那里安装它,或者从源代码编译。
PECL modules are (by default, and most of the time) downloaded from a non-local repository.
Therefore you will need some form of internet connection to download it.
Alternatively you can upload the pecl package from your machine to a location on the servers local file system and install it from there, or compile from source.
对我来说,这个错误是由于 php 不支持 ssl 引起的。
启用 openssl 或使用 opensslbuilt int 重新编译。
检查 Linux 主机运行中的 php 支持
如果启用了支持,应该使用 openssl 打印一行。
To me this error was caused due to php without support for ssl.
Enable openssl or recompile with openssl built int.
Check php support in a Linux host run
Should print a line with openssl if support enabled.