问题
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?!
回答1:
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:
pear install memcache-3.0.6.tgz
回答2:
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.
回答3:
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
php -i | grep openssl
Should print a line with openssl if support enabled.
来源:https://stackoverflow.com/questions/6099439/pecl-install-failed