我在哪里可以找到我的扩展php在centos使用yum安装memcache时


Where can I find my extensions for php in centos when using yum install memcache

正如标题所说。我需要memcache。所以把它放在php.ini,但我不能找到它安装包管理器yum install memcached后。

谁来帮帮我。

谢谢

我不认为memcached RPM包含php扩展,或者centos不维护扩展。您可能需要手动安装:

cd /usr/src
wget http://pecl.php.net/get/memcache-2.2.6.tgz
tar zxvf memcache-2.2.6.tgz
cd memcache-2.2.6
phpize
./configure
make
make install

如果使用的是XAMPP(Linux),则需要安装XAMPP - Linux -devel,并在/opt/lampp/bin/中使用phpize。如果您还没有安装Xampp的开发文件,首先需要安装Xampp -开发包(期望您的Xampp版本是1.7.7):

wget http://www.apachefriends.org/download.php?xampp-linux-devel-1.7.7.tar.gz
mv download.php'?xampp-linux-devel-1.7.7.tar.gz xampp-linux-devel-1.7.7.tar.gz
tar xvfz xampp-linux-devel-1.7.7.tar.gz -C /opt

然后尝试相同的安装,但使用/opt/lampp/bin/phpize而不是phpize

cd /usr/src
wget http://pecl.php.net/get/memcache-2.2.6.tgz
tar zxvf memcache-2.2.6.tgz
cd memcache-2.2.6
/opt/lampp/bin/phpize
./configure --with-php-config=/opt/lampp/bin/php-config
make
make install

希望这对你有帮助!