【原创】系统的自带的php如何升版本?

【原创】系统的自带的php如何升版本?

各位达人,偶有一套装有Redhat9的系统
自带有如下php包:
php-4.2.2-17.i386.rpm
php-imap-4.2.2-17
php-ldap-4.2.2-17
现在因为php没有支持gd(http://www.boutell.com/gd/),
(因为没有编译,故根本谈不上“在编译时候加上 --with-gd 参数”)
有图形显示出现问题,故想把php升级到php 4.3.x或更高版本,
各位达人我该咋办啊?



我试图将redhat9自带的3个包卸载
[root@lab1 php]#rpm -e  php-ldap-4.2.2-17 php-imap-4.2.2-17 php-4.2.2-17
然后安装高版本:

[root@lab1 php]# ls
                            php-ldap-5.2.0-4.i386.rpm
                            php-mbstring-5.2.0-4.i386.rpm
gd-2.0.33                    php-mysql-5.2.0-4.i386.rpm
gd-2.0.33.tar.gz             php-ncurses-5.2.0-4.i386.rpm
php-4.4.4                    php-odbc-5.2.0-4.i386.rpm
php-4.4.4.tar.gz             php_old
php-5.2.0-4.i386.rpm         php-pdo-5.2.0-4.i386.rpm
php-bcmath-5.2.0-4.i386.rpm  php-pear-1.4.9-4.noarch.rpm
php-cli-5.2.0-4.i386.rpm     php-pgsql-5.2.0-4.i386.rpm
php-common-5.2.0-4.i386.rpm  php-snmp-5.2.0-4.i386.rpm
php-dba-5.2.0-4.i386.rpm     php-soap-5.2.0-4.i386.rpm
php-devel-5.2.0-4.i386.rpm   php-xml-5.2.0-4.i386.rpm
php-gd-5.2.0-4.i386.rpm      php-xmlrpc-5.2.0-4.i386.rpm
php-imap-5.2.0-4.i386.rpm
[root@lab1 php]# rpm -ivh *.rpm
warning: php-pear-1.4.9-4.noarch.rpm: V3 DSA signature: NOKEY, key ID 897da07a
error: Failed dependencies:
        file >= 4.0 is needed by php-5.2.0-4
        httpd-mmn = 20051115 is needed by php-5.2.0-4
        libaspell.so.15 is needed by php-5.2.0-4
        libc.so.6(GLIBC_2.3.4) is needed by php-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-5.2.0-4
        libcrypto.so.6 is needed by php-5.2.0-4
        libcurl.so.4 is needed by php-5.2.0-4
        libpspell.so.15 is needed by php-5.2.0-4
        libssl.so.6 is needed by php-5.2.0-4
        rtld(GNU_HASH) is needed by php-5.2.0-4
        libc.so.6(GLIBC_2.3.4) is needed by php-bcmath-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-bcmath-5.2.0-4
        rtld(GNU_HASH) is needed by php-bcmath-5.2.0-4
        libaspell.so.15 is needed by php-cli-5.2.0-4
        libc.so.6(GLIBC_2.3.4) is needed by php-cli-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-cli-5.2.0-4
        libcrypto.so.6 is needed by php-cli-5.2.0-4
        libcurl.so.4 is needed by php-cli-5.2.0-4
        libdb-4.3.so is needed by php-cli-5.2.0-4
        libpspell.so.15 is needed by php-cli-5.2.0-4
        libssl.so.6 is needed by php-cli-5.2.0-4
        rtld(GNU_HASH) is needed by php-cli-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-dba-5.2.0-4
        libdb-4.3.so is needed by php-dba-5.2.0-4
        rtld(GNU_HASH) is needed by php-dba-5.2.0-4
        libc.so.6(GLIBC_2.3.4) is needed by php-gd-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-gd-5.2.0-4
        libpng12.so.0(PNG12_0) is needed by php-gd-5.2.0-4
        rtld(GNU_HASH) is needed by php-gd-5.2.0-4
        libc-client.so.1 is needed by php-imap-5.2.0-4
        libc.so.6(GLIBC_2.3.4) is needed by php-imap-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-imap-5.2.0-4
        libcrypto.so.6 is needed by php-imap-5.2.0-4
        libssl.so.6 is needed by php-imap-5.2.0-4
        rtld(GNU_HASH) is needed by php-imap-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-ldap-5.2.0-4
        liblber-2.3.so.0 is needed by php-ldap-5.2.0-4
        libldap-2.3.so.0 is needed by php-ldap-5.2.0-4
        rtld(GNU_HASH) is needed by php-ldap-5.2.0-4
        libc.so.6(GLIBC_2.3.4) is needed by php-mbstring-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-mbstring-5.2.0-4
        rtld(GNU_HASH) is needed by php-mbstring-5.2.0-4
        libc.so.6(GLIBC_2.3.4) is needed by php-mysql-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-mysql-5.2.0-4
        libcrypto.so.6 is needed by php-mysql-5.2.0-4
        libmysqlclient.so.15 is needed by php-mysql-5.2.0-4
        libmysqlclient.so.15(libmysqlclient_15) is needed by php-mysql-5.2.0-4
        libssl.so.6 is needed by php-mysql-5.2.0-4
        rtld(GNU_HASH) is needed by php-mysql-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-ncurses-5.2.0-4
        rtld(GNU_HASH) is needed by php-ncurses-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-odbc-5.2.0-4
        libodbc.so.1 is needed by php-odbc-5.2.0-4
        libodbcpsql.so.2 is needed by php-odbc-5.2.0-4
        rtld(GNU_HASH) is needed by php-odbc-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-pdo-5.2.0-4
        libsqlite3.so.0 is needed by php-pdo-5.2.0-4
        rtld(GNU_HASH) is needed by php-pdo-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-pgsql-5.2.0-4
        libpq.so.4 is needed by php-pgsql-5.2.0-4
        rtld(GNU_HASH) is needed by php-pgsql-5.2.0-4
        libc.so.6(GLIBC_2.3.4) is needed by php-snmp-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-snmp-5.2.0-4
        libcrypto.so.6 is needed by php-snmp-5.2.0-4
        libnetsnmp.so.10 is needed by php-snmp-5.2.0-4
        rtld(GNU_HASH) is needed by php-snmp-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-soap-5.2.0-4
        rtld(GNU_HASH) is needed by php-soap-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-xml-5.2.0-4
        rtld(GNU_HASH) is needed by php-xml-5.2.0-4
        libc.so.6(GLIBC_2.3.4) is needed by php-xmlrpc-5.2.0-4
        libc.so.6(GLIBC_2.4) is needed by php-xmlrpc-5.2.0-4

要把这么多的包都补上啊?[/COLOR]









-      
可以不管依赖关系强制安装: rpm -ivh your*rpm --nodeps ,但不保证一定能正常使用。      
支持lanche的      
的确不能 正常使用.麻烦.