1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

PHP5 Upgrade Error: Missing Dependency: php = 4.3.x is needed by package php-pear

Discussion in 'Plesk for Linux - 8.x and Older' started by vsystems, May 1, 2007.

  1. vsystems

    vsystems Guest

    0
     
    Hi,

    I'm trying to upgrade to PHP5 on my Plesk 8.1.1 server (on CentOS v4.4 x86_64)::

    yum info php
    Setting up repositories
    update 100% |=========================| 951 B 00:00
    base 100% |=========================| 1.1 kB 00:00
    atomic 100% |=========================| 951 B 00:00
    centosplus 100% |=========================| 951 B 00:00
    addons 100% |=========================| 951 B 00:00
    extras 100% |=========================| 1.1 kB 00:00
    Reading repository metadata in from local files
    Installed Packages
    Name : php
    Arch : x86_64
    Version: 4.3.9
    Release: 3.22.4
    Size : 3.6 M
    Repo : installed
    Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)

    Description:
    PHP is an HTML-embedded scripting language. PHP attempts to make it
    easy for developers to write dynamically generated webpages. PHP also
    offers built-in database integration for several commercial and
    non-commercial database management systems, so writing a
    database-enabled webpage with PHP is fairly simple. The most common
    use of PHP coding is probably as a replacement for CGI scripts. The
    mod_php module enables the Apache Web server to understand and process
    the embedded PHP language in Web pages.


    Available Packages
    Name : php
    Arch : x86_64
    Version: 5.1.6
    Release: 3.el4s1.5
    Size : 1.2 M
    Repo : centosplus
    Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
    Description:
    PHP is an HTML-embedded scripting language. PHP attempts to make it
    easy for developers to write dynamically generated webpages. PHP also
    offers built-in database integration for several commercial and
    non-commercial database management systems, so writing a
    database-enabled webpage with PHP is fairly simple. The most common
    use of PHP coding is probably as a replacement for CGI scripts.

    The php package contains the module which adds support for the PHP
    language to Apache HTTP Server.



    YUM INSTALL PHP : returns the following:

    Setting up Install Process
    Setting up repositories
    Reading repository metadata in from local files
    Parsing package install arguments
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Package php.x86_64 0:5.1.6-3.el4s1.5 set to be updated
    --> Running transaction check
    --> Processing Dependency: php = 4.3.9-3.22.4 for package: php-domxml
    --> Processing Dependency: /usr/bin/php for package: psa-mnemo
    --> Processing Dependency: php = 4.3.9-3.22.4 for package: php-mysql
    --> Processing Dependency: php-common = 5.1.6-3.el4s1.5 for package: php
    --> Processing Dependency: php = 4.3.9-3.22.4 for package: php-pear
    --> Processing Dependency: php-cli = 5.1.6-3.el4s1.5 for package: php
    --> Processing Dependency: php = 4.3.9-3.22.4 for package: php-gd
    --> Processing Dependency: php = 4.3.9-3.22.4 for package: php-mbstring
    --> Processing Dependency: php = 4.3.9-3.22.4 for package: php-imap
    --> Restarting Dependency Resolution with new changes.
    --> Populating transaction set with selected packages. Please wait.
    ---> Package php-mbstring.x86_64 0:5.1.6-3.el4s1.5 set to be updated
    ---> Package php-mysql.x86_64 0:5.1.6-3.el4s1.5 set to be updated
    ---> Package php-cli.x86_64 0:5.1.6-3.el4s1.5 set to be updated
    ---> Package php-common.x86_64 0:5.1.6-3.el4s1.5 set to be updated
    ---> Package php-gd.x86_64 0:5.1.6-3.el4s1.5 set to be updated
    ---> Package php-imap.x86_64 0:5.1.6-3.el4s1.5 set to be updated
    ---> Package php-xml.x86_64 0:5.1.6-3.el4s1.5 set to be updated
    --> Running transaction check
    --> Processing Dependency: libmysqlclient.so.15()(64bit) for package: php-mysql
    --> Processing Dependency: php-pdo for package: php-mysql
    --> Processing Dependency: php = 4.3.9-3.22.4 for package: php-pear
    --> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) for package: php-mysql
    --> Restarting Dependency Resolution with new changes.
    --> Populating transaction set with selected packages. Please wait.
    ---> Package mysql.x86_64 0:5.0.27-1.el4.centos set to be updated
    ---> Package php-pdo.x86_64 0:5.1.6-3.el4s1.5 set to be updated
    --> Running transaction check
    --> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: psa-qmail
    --> Processing Dependency: libmysqlclient.so.14()(64bit) for package: psa-qmail
    --> Processing Dependency: libmysqlclient.so.14()(64bit) for package: psa-courier-imap-add
    --> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: psa-fileserver
    --> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: psa
    --> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: psa-courier-imap-add
    --> Processing Dependency: mysql = 4.1.20-2.RHEL4.1 for package: mysql-server
    --> Processing Dependency: libmysqlclient_r.so.14(libmysqlclient_14)(64bit) for package: mysql-server
    --> Processing Dependency: php = 4.3.9-3.22.4 for package: php-pear
    --> Processing Dependency: libmysqlclient.so.14()(64bit) for package: mysql-server
    --> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: mysql-server
    --> Processing Dependency: libmysqlclient.so.14()(64bit) for package: psa-ruby-mysql
    --> Processing Dependency: libmysqlclient_r.so.14()(64bit) for package: mysql-server
    --> Processing Dependency: libmysqlclient.so.14()(64bit) for package: psa
    --> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: psa-ruby-mysql
    --> Processing Dependency: libmysqlclient.so.14()(64bit) for package: psa-fileserver
    --> Restarting Dependency Resolution with new changes.
    --> Populating transaction set with selected packages. Please wait.
    ---> Package mysqlclient14.x86_64 0:4.1.22-1.el4s1.1 set to be updated
    ---> Package mysql-server.x86_64 0:5.0.27-1.el4.centos set to be updated
    --> Running transaction check
    --> Processing Dependency: php = 4.3.9-3.22.4 for package: php-pear
    --> Finished Dependency Resolution

    Error: Missing Dependency: php = 4.3.9-3.22.4 is needed by package php-pear


    ... and here is where I'm currently stuck. My understanding was that PHP v4.3.9-3.22.4 was the version that got installed with the server (??), so I'm not quite sure what's going on here, or how to get around this problem :(



    If I Removing php-pear (yum remove php-pear), I get prompted with the following:

    [...]
    psa-manual-custom-skin-guide noarch 8.1.1-cos4.build81070322.16 installed 213 k
    psa-migration-manager x86_64 8.1.1-cos4.build81070404.14 installed 10 M
    psa-mimp noarch 1.0-cos4.build81070322.16 installed 1.3 M
    psa-miva i386 8.1.1-cos4.build81070322.16 installed 5.6 M
    psa-mnemo noarch 2.1.1-cos4.build81070322.16 installed 3.1 M
    psa-passwd noarch 3.0-cos4.build81070322.16 installed 2.4 M
    psa-php4-configurator noarch 1.1.0-cos4.build81070322.16 installed 0.0
    psa-rubyrails-configurator x86_64 1.1.6-cos4.build81070322.16 installed 0.0
    psa-spamassassin x86_64 8.1.1-cos4.build81070322.16 installed 52 k
    psa-tomcat-configurator noarch 8.1.1-cos4.build81070322.16 installed 0.0
    psa-turba noarch 2.1.3-cos4.build81070322.16 installed 5.0 M
    psa-vpn x86_64 2.0.1-cos4.build81070322.16 installed 2.1 M
    psa-watchdog x86_64 2.0.2-cos4.build81070322.16 installed 2.6 M
    squirrelmail noarch 1.4.8-4.el4.centos installed 14 M
    typo noarch 3.8.0-80019 installed 47 M
    xrms noarch 1.19-80018 installed 8.9 M

    Transaction Summary
    =============================================================================
    Install 0 Package(s)
    Update 0 Package(s)
    Remove 74 Package(s)
    Total download size:

    ... which totally anihilates my installation of plesk, HOWEVER does then allow me to complete the PHP5 upgrade (I've since restored the server since trying this).



    If anyone would have any suggestions on how I might get past this php-pear issue (without uninstalling it), I'd be HUUUUGELY appreciative! :)

    I've been tearing my hear out trying to get past this problem for a few days now.

    Many Thanks,
    Sia
     
  2. poke

    poke Guest

    0
     
    have you tried, yum update php not yum install php?

    Also, you can uninstall php-pear by running rpm -e php-pear
     
  3. vsystems

    vsystems Guest

    0
     
    Hi poke,

    I just tried rpm -e php-pear (at your recommendation). I got the following:

    error: Failed dependencies
    php-pear is needed by (installed) php-4.3.9-3.22.4.x86_64

    (ironically, the exact same php library it's saying it can't find).

    yum update php gives me the same error as install :(

    Thanks for replying btw. I'm happy to try any other ideas you may have, as this is a new hosting environment I'm trying to setup, and done as a Virtual Machine, so I can roll back changes easily enough.

    Regards,
    Sia
     
  4. poke

    poke Guest

    0
     
    hello,

    I notice you are using the centosplus repo. You might try adding art's repo to YUM and try upgrading using his Plesk Friendly RPMs.

    http://3es.atomicrocketturtle.com
     
  5. vsystems

    vsystems Guest

    0
     
    Hi Poke,

    I think I worked it out (with your help that is)... I did the following:

    rpm -e --nodeps php-pear
    yum update php mysql --enablerepo=centosplus

    ~insert muffled sqeals of joy here, as all installs perfectly~

    wget http://ftp.monash.edu.au/pub/linux/CentOS/4.4/updates/x86_64/RPMS/php-pear-4.3.9-3.22.4.x86_64.rpm
    rpm -Uhv --nodeps php-pear-4.3.9-3.22.4.x86_64.rpm

    rpm -q php-pear
    php-pear-4.3.9-3.22.4

    rpm -q php
    php-5.1.6-3.el4s1.5

    rpm -q mysql
    mysql-5.0.27-1.el4.centos


    Thanks SO much for your help! You're an absolute legend! :D

    Kind regards,
    Sia
     
  6. poke

    poke Guest

    0
     
    Great, glad you got it all figured out ;)

    Cheers
     
Loading...