2014年(27)
分类: 嵌入式
2014-04-25 17:18:59
安装phpmyadmin报错No package phpmyadmin available.
问题:安装nginx,报错如下
yum -y install nginx |
Loaded plugins: fastestmirror |
原因:EPEL未被启动,且指示的 rpm包不可用
解决方法:1.首先检查系统是否安装epel-release:
[root@flc ~]# rpm -q epel-release
package epel-release is not installed
2.如果没有安装,则install:
[root@flc ~]# rpm -ivh
2.1如果此处也报错就:
[root@flc ~]# rpm -ivh --force --nodeps
--force --nodeps 的意思:强制安装不安装关联的各种包
Retrieving
Preparing... ########################################### [100%]
1:epel-release ########################################### [100%]
注意:
32位:
64位:
#安装成功
[root@flc ~]# rpm -q epel-release
epel-release-6-8.noarch
#查看其所依附的软件文件
[root@flc ~]# rpm -qR epel-release
/bin/sh
/bin/sh
config(epel-release) = 6-8
redhat-release >= 6
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
3导入key:
[root@flc ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
别忘了安装yum-priorities
[root@flc ~]#yum install yum-priorities
[root@flc ~]#cd /etc/yum.repos.d
[root@localhost yum.repos.d]# ls |grep epel
epel.repo
epel-testing.repo
然后安装nginx,即不报错:
[root@wmct-server yum.repos.d]# yum install nginx