Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8008181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:03:43+00:00 2026-06-04T18:03:43+00:00

I am using php 5.2.10 on redhat. Default installed pear package is PEAR 1.8.0.

  • 0

I am using php 5.2.10 on redhat. Default installed pear package is PEAR 1.8.0. Now i want to install PHPunit via pear. So whenever i run command to install phpunit, it gives error :

pear install --alldeps phpunit/PHPUnit

phpunit/PHPUnit requires PEAR Installer (version >= 1.9.2), installed version is 1.8.0
phpunit/PHPUnit can optionally use PHP extension "dbus"
phpunit/DbUnit requires PEAR Installer (version >= 1.9.2), installed version is 1.8.0
phpunit/File_Iterator requires PEAR Installer (version >= 1.9.2), installed version is         1.8.0
phpunit/PHP_CodeCoverage requires PEAR Installer (version >= 1.9.1), installed version   is 1.8.0
phpunit/PHP_CodeCoverage requires package "phpunit/File_Iterator" (version >= 1.2.2)
phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5)
phpunit/PHPUnit_MockObject requires PEAR Installer (version >= 1.9.2), installed version is 1.8.0  
phpunit/PHPUnit_Selenium requires PEAR Installer (version >= 1.9.2), installed version is 1.8.0
phpunit/PHP_TokenStream requires PEAR Installer (version >= 1.9.1), installed version is 1.8.0
No valid packages found
install failed

I have tried command to upgrade pear:

pear upgrade pear
pear upgrade --force pear

but it returns :

Nothing to upgrade

Any solutions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:03:44+00:00Added an answer on June 4, 2026 at 6:03 pm

    try this command :

    pear upgrade --force http://pear.php.net/get/PEAR-1.9.4.tar
    

    It will download the tar of pear 1.9.4 and upgrade the version.
    If it is not working,check whether your php supports .zlib or not.
    If it is not supported then configure your php with.zlib by this command:

    ./configure --with zlib
    

    check this by phpinfo command on browser,it will support zlib in your php info page.
    Run the above command to upgrade your pear version and check it by:

    pear version
    

    It will show your pear version as 1.9.4

    then run command:

    pear install --alldeps phpunit/PHPUnit
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using PHP, I am trying to delete a record, but I want to check
I have developed an application using PHP in Ubuntu XAMPP 1.7.4 environment. Now I'm
Using PHP, exec('php test.php'); will execute a separate PHP script on the command line.
Using php or javascript I want to get the title of the page Any
Using PHP Regular Expression I want to extract some value from code <?xml version=1.0
Using PHP 5.3 if I send a JSON encoded string as an arugment via
Using php I want to load XML files from several websites and want to
Using PHP and MySQL, I want to query a table of postings my users
The Situation: I'm using ffmpeg (via php) to convert video files. I configured my
Using php 5.3 on windows 2008 in IIS 7. I've installed NTS image magick

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.