在运行yum install php-mysql时出现一下错误:
[root@localhost ~]# yum install php-mysql
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
Setting up Install Process
No package php-mysql available.
Error: Nothing to do
上网查了一下,php-mysql这个组件应该怎么安装呢  ,或者这个问题应该怎么解决?

解决方案 »

  1.   

    还有就是我运行了yum search php之后出现了:
    Loaded plugins: fastestmirror, refresh-packagekit
    Loading mirror speeds from cached hostfile
    ================================= Matched: php =================================
    php.i686 : PHP scripting language for creating dynamic web sites
    php-cli.i686 : Command-line interface for PHP
    php-common.i686 : Common files for PHP
    php-gd.i686 : A module for PHP applications for using the gd graphics library
    php-pdo.i686 : A database access abstraction module for PHP applications
    php-pear.noarch : PHP Extension and Application Repository framework
    php-xml.i686 : A module for PHP applications which use XML
    dmz-cursor-themes.noarch : X cursors themes
    iproute.i686 : Advanced IP routing and network device configuration tools
    ipw2100-firmware.noarch : Firmware for Intel® PRO/Wireless 2100 network adaptors
    ipw2200-firmware.noarch : Firmware for Intel® PRO/Wireless 2200 network adaptors
    libiec61883.i686 : Streaming library for IEEE1394
    perl-Net-LibIDN.i686 : Perl bindings for GNU LibIDN
    readline.i686 : A library for editing typed command lines
    readline-devel.i686 : Files needed to develop programs which use the readline
                        : library
      没有php-mysql组件,不知道应该怎么解决
      

  2.   

    yum list available 查看一下软件仓库里到底有没有php-mysql
    有可能php-mysql的名字为php-mysql5或者php-mysql5.5之类的。
      

  3.   


    试了,运行之后出现的是:
    [root@localhost ~]# yum list available
    Loaded plugins: fastestmirror, refresh-packagekit
    Loading mirror speeds from cached hostfilePS:我是刚刚接触这些,不知道能不能说的仔细一点呢,谢谢了
      

  4.   

    加一些新的yum源,可能你那些源是系统自带的。速度慢不说,东西还不全
      

  5.   


    确实是,我的mysql还有php都是系统自带的,就我现在这个问题来看,应该怎么解决呢
      

  6.   

    我建议你干脆自己下源码自己手动编译安装吧。我无论在什么系统上都是自己下载源码装,其实并不麻烦,顶多就是编译时告诉你系统缺xx动态库,去网上搜一下就可以找到了。而且这个过程会让你学习到很多东西。比如libevent、libxml那些库都是干什么用的。自己手动装的,开了什么模块、用了运行时参数自己也会很清楚。
      

  7.   

    换源。centos 如果是64位你会碰到个很蛋痛的问题.换成163的源就行了.
      

  8.   


    我的是163的源,可没可能是别的问题呢?
    我运行yum upgrade的时候出现:[root@localhost ~]# yum upgrade
    Loaded plugins: fastestmirror, refresh-packagekit
    Loading mirror speeds from cached hostfile
    Setting up Upgrade Process
    No Packages ed for Update