好吧,让我直截了当地说,我是一个完全的小白,从来没有做过这样的东西,我已经阅读了tuorial后的教程,但我不能得到任何工作。 当我试图安装rpm文件时,我得到了这个错误
rpm -Uvh ftp://ftp.pbone.net/mirror/rpms.famillecollet.com/enterprise/6/test/x86_64/php-mysqlnd-5.4.9-1.el6.remi.x86_64.rpm Retrieving ftp://ftp.pbone.net/mirror/rpms.famillecollet.com/enterprise/6/test/x86_64/php-mysqlnd-5.4.9-1.el6.remi.x86_64.rpm warning: /var/tmp/rpm-tmp.ez4vvd: Header V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEY error: Failed dependencies: php-pdo(x86-64) = 5.4.9-1.el6.remi is needed by php-mysqlnd-5.4.9-1.el6.remi.x86_64
所以我尝试安装该rpm文件并得到这个错误
rpm -ivh ftp://ftp.pbone.net/mirror/rrpms.famillecollet.com/enterprise/6/test/x86_64/php-pdo-5.4.6-1.el6.remi.x86_64.rpm Retrieving ftp://ftp.pbone.net/mirror/rrpms.famillecollet.com/enterprise/6/test/x86_64/php-pdo-5.4.6-1.el6.remi.x86_64.rpm curl: (9) Server denied you to change to the given directory error: skipping ftp://ftp.pbone.net/mirror/rrpms.famillecollet.com/enterprise/6/test/x86_64/php-pdo-5.4.6-1.el6.remi.x86_64.rpm - transfer failed
我使用的FTP链接,因为我不知道如何让他们到服务器。 我觉得我对此感到非常沮丧,但是我必须安装这个驱动程序才能使我的任何脚本正常工作。
任何帮助将不胜感激!
尝试添加Remi存储库到yum并按照这种方式进行安装。 Yum会自动处理所有的依赖关系,所以你不必一直跟踪面包屑path到最终的依赖关系。 节省你很多的时间和挫折:)
以root用户身份运行这些命令:
wget http://rpms.famillecollet.com/enterprise/remi.repo -O /etc/yum.repos.d/remi.repo yum --enablerepo=remi-test install php-mysqlnd
第一个命令将检索Remi的仓库configuration文件。 第二个命令将安装php-mysqlnd软件包,并将使用Remi软件库进行安装。