我正在 Cent OS 5 服务器上安装 memcache,并遵循此指南 >http://www.howtoforge.com/php_memcache_centos5.0
现在,当我进来的时候,
phpize && ./configure --enable-memcache && make
服务器说phpize: command not found
因此,我尝试了这个命令yum -y install php-devel
,以下是服务器的答案
Loaded plugins: fastestmirror
Repository 'vz-base' is missing name in configuration, using id
Repository 'vz-updates' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
* addons: mirror.5ninesolutions.com
* base: mirror.san.fastserv.com
* extras: mirror.nwresd.org
* rpmforge: apt.sw.be
* updates: mirror.5ninesolutions.com
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package php-devel available.
Nothing to do
那么...有线索吗?
答案1
您将 php-devel 安装到了哪里?默认目录?似乎 phpize 未安装或不在您的路径中。您可以运行 find 来查找 phpize 吗?找到后,您可以将其添加到您的路径中,也可以直接调用它。