红联Linux门户
Linux帮助

安装MYSQL-SERVER出现问题

发布时间:2008-07-31 09:59:29来源:红联作者:wen114999
[root@master etc]#rpm -ivh mysql-server-4.1.20.rpm
warning:mysql-server-4.1.20.rpm:v3 dsa signature:nokey,key id 443e1821
error:failed dependencies:
libmysqlclient.so.14 is needen by maysql-server-4.1.20
libmysqlclient.so.14(libmysqlclient_14)is needed by mysql-server-4.1.20
libstdc++.so.6 is neede by mysql-server-4.1.20
libstdc++.so.6(cxxabi_1.3) is needed by mysql-server-4.1.20
libstdc++.so.6 (glibxx_3.4) is needed by mysql-server-4.1.20
mysql= 4.1.20 is needed by mysql-server-4.1.20
perl-dbd-mysql is needed by mysql-server-4.1.20

我是菜鸟,希望高手帮帮我。跪谢
文章评论

共有 3 条评论

  1. rtl 于 2008-08-16 19:44:21发表:

    用yum在??即可,解?依???
    yum install mysql

  2. lemonade 于 2008-08-15 20:39:05发表:

    主要就是依赖性(dependency)没有解决

  3. wen114999 于 2008-08-15 09:53:16发表:

    以来装SQL-SERVER需要:libstdc++; mysql。而装libstdc++又有要装gcc


    所以先解决GCC先:
    1)安装gcc
    rpm -ivh gcc-3.3.2-6.i386.rpm
    warning: gcc-3.4.6-9.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
    error: Failed dependencies:
    binutils >= 2.15.92.0.2-18 is needed by gcc-3.4.6-9.i386
    cpp = 3.4.6-9 is needed by gcc-3.4.6-9.i386
    glibc-devel >= 2.2.90-12 is needed by gcc-3.4.6-9.i386
    libgcc >= 3.4.6-9 is needed by gcc-3.4.6-9.i386
    Suggested resolutions:
    glibc-devel-2.3.4-2.9.i386.rpm
    失败
    根据错误信息--〉1-1,1-2,1-3,1-4
    1-1)更新binutils
    wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/binutils-2.15.92.0.2-24.i386.rpm
    rpm -Uvh binutils-2.15.92.0.2-24.i386.rpm
    1-2)更新cpp
    wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/cpp-3.4.6-9.i386.rpm
    rpm -Uvh cpp-3.4.6-9.i386.rpm
    1-3)更新libgcc
    wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/libgcc-3.4.6-9.i386.rpm
    rpm -Uvh libgcc-3.4.6-9.i386.rpm
    1-4)更新glibc-devel
    wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/glibc-devel-2.3.4-2.39.i386.rpm
    rpm -ivh glibc-devel-2.3.4-2.39.i386.rpm
    warning: glibc-devel-2.3.4-2.39.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
    error: Failed dependencies:
    glibc = 2.3.4-2.39 is needed by glibc-devel-2.3.4-2.39.i386
    glibc-headers is needed by glibc-devel-2.3.4-2.39.i386
    glibc-headers = 2.3.4-2.39 is needed by glibc-devel-2.3.4-2.39.i386
    Suggested resolutions:
    glibc-headers-2.3.4-2.9.i386.rpm
    根据错误信息---〉1-4-1,1-4-2
    1-4-1)更新glibc
    wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/glibc-2.3.4-2.39.i386.rpm
    warning: glibc-2.3.4-2.39.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
    error: Failed dependencies:
    glibc-common = 2.3.4-2.39 is needed by glibc-2.3.4-2.39.i386
    根据错误信息--〉1-4-1-1
    1-4-1-1)
    wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/glibc-common-2.3.4-2.39.i386.rpm
    rpm -Uvh glibc-common-2.3.4-2.39.i386.rpm
    warning: glibc-common-2.3.4-2.39.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
    error: Failed dependencies:
    glibc-common = 2.3.4-2.9 is needed by (installed) glibc-2.3.4-2.9.i686
    又出错,强行更新,反正这个也不会用,以及依赖它的rpm也要跟新
    rpm -Uvh glibc-common-2.3.4-2.39.i386.rpm --nodeps --force
    返回到1-4-1)
    rpm -Uvh glibc-2.3.4-2.39.i386.rpm
    1-4-2)安装glibc-headers
    wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/glibc-headers-2.3.4-2.39.i386.rpm
    rpm -ivh glibc-headers-2.3.4-2.39.i386.rpm
    warning: glibc-headers-2.3.4-2.39.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
    error: Failed dependencies:
    kernel-headers is needed by glibc-headers-2.3.4-2.39.i386
    kernel-headers >= 2.2.1 is needed by glibc-headers-2.3.4-2.39.i386
    Suggested resolutions:
    glibc-kernheaders-2.4-9.1.87.i386.rpm
    根据出错信息---〉1-4-2-1
    1-4-2-1)安装glibc-kernheaders
    wget http://mirrors.jtlnet.com/centos/4/apt/i386/RPMS.os/glibc-kernheaders-2.4-9.1.100.EL.i386.rpm
    rpm -ivh glibc-kernheaders-2.4-9.1.100.EL.i386.rpm
    返回1-4-2 )
    rpm -ivh glibc-headers-2.3.4-2.39.i386.rpm
    返回1-4)
    rpm -ivh glibc-devel-2.3.4-2.39.i386.rpm
    返回1)
    rpm -ivh gcc-3.4.6-9.i386.rpm
    安装完成,gcc -v
    显示信息
    gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)

    OK。。装好了GCC就装libstdc++。装好libstdc++后就可以装SQL了。然后就可以装SQL-SERVER了