我正在尝试将我的 PHP 从 5.3.13 升级到 5.5这个帖子,链接http://www.if-not-true-then-false.com/2010/install-apache-php-on-fedora-centos-red-hat-rhel/。然而,我在添加存储库的第一步就收到了错误消息:
$ sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-4.rpm
error: Failed dependencies:
epel-release >= 4 is needed by remi-release-4-7.el4.remi.noarch
$ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/4/i386/epel-release-4-10.noarch.rpm
error: Failed dependencies:
fedora-release conflicts with epel-release-4-10.noarch
我正在使用Red Hat 4.6.1:
$ cat /proc/version
Linux version 2.6.40.6-0.fc15.x86_64 ([email protected]) (gcc version 4.6.1 20110908 (Red Hat 4.6.1-9) (GCC) ) #1 SMP Tue Oct 4 00:39:50 UTC 2011
$ cat /etc/redhat-release
Fedora release 15 (Lovelock)
当前 PHP:
$ php -v
PHP 5.3.13 (cli) (built: May 9 2012 14:38:35)
有什么建议么?
答案1
您不能将 Fedora 版本与 Epel 版本混合使用。所以我认为正确的方法是从 src.rpm 构建 php。
# rpm -ivh http://dl.iuscommunity.org/pub/ius/testing/Redhat/6/SRPMS/php55u-5.5.3-1.ius.el6.src.rpm
# rpmbuild -ba --target=x86_64 php55u.spec
...
...
...
Wrote: /root/rpmbuild/SRPMS/php55u-5.5.3-1.ius.fc15.src.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-cli-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-fpm-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-common-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-devel-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-opcache-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-imap-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-ldap-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-pdo-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-mysqlnd-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-pgsql-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-process-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-odbc-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-soap-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-interbase-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-snmp-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-xml-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-xmlrpc-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-mbstring-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-gd-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-bcmath-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-gmp-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-dba-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-litespeed-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-mcrypt-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-tidy-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-mssql-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-embedded-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-pspell-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-recode-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-intl-5.5.3-1.ius.fc15.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/php55u-enchant-5.5.3-1.ius.fc15.x86_64.rpm