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 6175323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:54:20+00:00 2026-05-23T23:54:20+00:00

When trying to do pear install phpunit/PHPUnit I get the following error Failed to

  • 0

When trying to do

pear install phpunit/PHPUnit

I get the following error

    Failed to download pear/HTTP_Request2 within preferred state "stable", latest release is version 2.0.0RC1, stability "beta", use "channel://pear.php.net/HTTP_Request2-2.0.0RC1" to install
phpunit/PHPUnit can optionally use PHP extension "curl"
phpunit/PHPUnit can optionally use PHP extension "dbus"
pear/XML_RPC2 requires package "pear/HTTP_Request2" (version >= 0.6.0)
phpunit/PHPUnit requires package "pear/XML_RPC2"
No valid packages found
install failed

It says right there to use another channel, but I can’t seem to discover or add that channel! What’s the correct command to do this, or what else could I do?

Thank you very much,
MrB

edit:

Got it, wow, 10s after posting.

pear install HTTP_Request2-2.0.0RC1
  • 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-05-23T23:54:20+00:00Added an answer on May 23, 2026 at 11:54 pm

    As mentioned in the online PEAR manual, the PEAR installer by default only installs stable packages. If you wish to install a package that hasn’t yet been declared stable, you can do so, without changing the preferred state, by also specifying the version number or its state when attempting to install it. Thus:

    $ pear install -f package_name-1.2.3
    

    Or, if a package is in beta you can install it with:

    $ pear install -f package_name-beta
    

    Similarly, if the package is in alpha:

    $ pear install -f package_name-alpha
    

    There is a ‘devel’ stability state too, but not that many packages are released in that state.
    Sometimes the error message will include a useful hint, as seen in your question above 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to create a QtRuby application, I get the following error: /usr/lib64/ruby/site_ruby/1.8/Qt/qtruby4.rb:2144: [BUG] Segmentation
I'm ultimately trying to install PEAR so I can easily install PHPUnit. I want
Trying to install pear package and keep getting this strange error. Can you shed
I am trying to get PHPUnit up and running the following are the steps
I am trying to install PEAR for use with PHP. As i read on
I'm trying to install pear on my centos. I've used *yum install php-pear** to
I am trying to install PEAR in my WAMP-server. The go-pear.bat is running as
I am trying to install a PEAR package into my recent XAMPP PHP installation
I'm trying to send an email using PHP Pear. I have everything install correctly
Trying to get started using phpunit and can't get it installed/setup properly. When I

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.