作者jacobcan118 (jacobcan118)
看板PHP
标题[请益] 请问如何装php 和 curl 在 redhat
时间Sat Nov 23 11:34:56 2013
请问各位要如何在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:
[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.el
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 71.183.242.84
1F:→ danny8376:説实话 这跟PHP本身没啥关XD 第一个应该是orcale的repo 11/24 21:58
2F:→ danny8376:有问题 换个repo试试 第二个openssl冲突 11/24 21:58
3F:→ danny8376:自己把openssl升到 >= 0.9.8e-26 之後再试试 11/24 21:59
4F:→ danny8376:看了看好像是ssl太新 XD 要找无视ssl版本的方法 11/25 00:23
5F:推 yanli2:yum install php php-curl 11/25 03:24
6F:推 alog:php手动编译就好了 11/26 20:20
7F:→ jacobcan118:yum installl php-curl. 12/01 00:21
8F:→ jacobcan118:[Errno 4] IOError: <urlopen error(-3 failture in.. 12/01 00:21
9F:→ jacobcan118:移除openssl.在装openssl-0.9.8e-20.el5.i686 还是不 12/01 00:23