[問題] 安裝php和curl 在redhat

作者: jacobcan118 (jacobcan118)   2013-11-22 13:59:45
請問各位要如何在redhat 裡安裝和執行php, curl.
我試了兩台機器
A: 有curl 沒php
有Errno 14, Error 404 錯誤
B:有php 沒curl
有dependence conflict.
我要如果解決這兩種錯誤? 謝謝
1:
在A裡用yum 裝php 跑下面error 改了 domain file /etc/resolv.conf 重啟network service 還是一樣
[root@A ~]# yum install php
Loaded plugins: security
http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/6/base/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: el5_u6_base. Please verify its path and try again
2:
在機器B有php跑測試php file <?php echo php_info();?> 出現需要Lib, 用yum 裝 curl 一堆dependence conflict.
[root@ ~]# php -f ops.php
php: error while loading shared libraries: libcurl.so.3: cannot open shared object file: No such file or directory
[root@ ~]# yum install curl
Installing:
curl i386 7.15.5-9.el5_6.3 ol5_u7_base 233 k
curl x86_64 7.15.5-9.el5_6.3 ol5_u7_base 230 k
Installing for dependencies:
krb5-libs i386 1.6.1-62.el5 ol5_u7_base 668 k
libidn i386 0.6.5-1.1 ol5_u7_base 194 k
openssl i686 0.9.8e-20.el5 ol5_u7_base 1.4 M
Transaction Summary
================================================================================
Install 5 Package(s)
Upgrade 0 Package(s)
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Check Error:
package openssl-0.9.8e-26.el5_9.1.x86_64 (which is newer than openssl-0.9.8e-20.el5.i686) is already installed
package krb5-libs-1.6.1-70.el5.x86_64 (which is newer than krb5-libs-1.6.1-62.el5.i386) is already installed
file /etc/pki/tls/certs/Makefile from install of openssl-0.9.8e-20.el5.i686 conflicts with file from package openssl-0.9.8e-26.el5_9.1.x86_64
file /etc/pki/tls/certs/ca-bundle.crt from install of openssl-0.9.8e-20.el5.i686 conflicts with file from package openssl-0.9.8e-26.el5_9.1.x86_64
file /usr/share/man/man1/ca.1ssl.gz from install of openssl-0.9.8e-20.el5.i686 conflicts with file from package openssl-0.9.8e-26.el5_9.1.x86_64
file /usr/share/man/man1/ecparam.1ssl.gz from install of openssl-0.9.8e-20.el5.i686 conflicts with file from package openssl-0.9.8e-26.el5_9.1.x86_64
file /usr/share/man/man1/pkcs12.1ssl.gz from install of openssl-0.9.8e-20.el5.i686 conflicts with file from package openssl-0.9.8e-26.el5_9.1.x86_64
file /usr/share/man/man1/req.1ssl.gz from install of openssl-0.9.8e-20.el5.i686 conflicts with file from package openssl-0.9.8e-26.el5_9.1.x86_64
file /usr/share/man/man1/s_time.1ssl.gz from install of openssl-0.9.8e-20.el5.i686 conflicts with file from package openssl-0.9.8e-26.el5_9.1.x86_64
file /usr/share/man/man1/sslrand.1ssl.gz from install of openssl-0.9.8e-20.el5.i686 conflicts with file from package openssl-0.9.8e-26.el5_9.1.x86_64
file /usr/share/man/man1/x509.1ssl.gz from install of openssl-0.9.8e-20.el5.i686 conflicts with file from package openssl-0.9.8e-26.el5_9.1.x86_64
[root@gname~]# vim /proc/version
Linux version 2.6.18-194.11.4.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Sep 21 05:04:09 EDT 2010

Links booklink

Contact Us: admin [ a t ] ucptt.com