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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:43:53+00:00 2026-05-20T06:43:53+00:00

Ok, I think before I start I should just say that I’m a complete

  • 0

Ok, I think before I start I should just say that I’m a complete n00b when it comes to topic of OSX/BSD. I’ve only had my MBP for the past week or so and have been learning HEAPS. Though, despite this, I’m still trying to wrap my head around a few things, so, please, be gentle. 🙂

Alright, on to my problem. I’ve been trying to setup my local development environment now for a few days. I have activated Apache 2.2 and PHP 5.3.3 which came with the OS. I have also manually installed MySQL, Homebrew and setup BIND (for easier vhost management). Everything appeared to be working quite well until I realize I had to also install PEAR.

Unfortunately, a lot of critical areas within my company’s products rely heavily on the PEAR library, so I had to make sure that was all up-and-running before continuing. To install PEAR, I did the following:

  1. $ cd /usr/local/
  2. $ curl http://pear.php.net/go-pear | sudo php
  3. $ php -q go-pear.php
  4. Go through the PEAR install instructions
  5. $ mate ~/.bash_profile
  6. Added /usr/local/bin to my $PATH variable
  7. Saved and closed TextMate
  8. $ which pear (verified the location of PEAR executable)
  9. $ php -r “phpinfo();” | grep ‘.ini’ (to verify locate of current php.ini)
  10. $ mate /etc/php.ini
  11. Changed ‘include_path’ setting to: “.:/usr/local/PEAR”
  12. Saved and closed TextMate
  13. $ sudo apachectl restart
  14. Happy with the results, I begin installing a few essential PEAR packages (HTTP, NET, etc..)

I then finish checking out the latest revision of one of our SVN repositories and install the app. I attempt to access it via the browser and get an error to the following effect:

 Warning: require_once(HTTP/Request2.php): failed to open stream: No such file or directory in /Users/wilhelm/Sites/wrk/t-box-3a-rxml/public/apps/Mpx/Poller.class.php on line 8

Call Stack:
    0.0003     651400   1. {main}() /Users/wilhelm/Sites/wrk/t-box-3a-rxml/public/call.php:0
    0.0028     927096   2. RXML_Config::autoload() /Users/wilhelm/Sites/wrk/t-box-3a-rxml/public/config/autoload.php:0
    0.0040    1144272   3. require_once('/Users/wilhelm/Sites/wrk/t-box-3a-rxml/public/apps/Mpx/Poller.class.php') /Users/wilhelm/Sites/wrk/t-box-3a-rxml/public/config/autoload.php:18


Fatal error: require_once(): Failed opening required 'HTTP/Request2.php' (include_path='.:/usr/local/PEAR;/Users/wilhelm/Sites/wrk/t-box-3a-rxml/public/Library/Pear/') in /Users/wilhelm/Sites/wrk/t-box-3a-rxml/public/apps/Mpx/Poller.class.php on line 8

Call Stack:
    0.0003     651400   1. {main}() /Users/wilhelm/Sites/wrk/t-box-3a-rxml/public/call.php:0
    0.0028     927096   2. RXML_Config::autoload() /Users/wilhelm/Sites/wrk/t-box-3a-rxml/public/config/autoload.php:0
    0.0040    1144272   3. require_once('/Users/wilhelm/Sites/wrk/t-box-3a-rxml/public/apps/Mpx/Poller.class.php') /Users/wilhelm/Sites/wrk/t-box-3a-rxml/public/config/autoload.php:18

I can verify the location of these files. They DO exist and are in the proper directory. My understanding is that with the ‘include_path’ of ‘.:/usr/local/PEAR’ PHP first looks in the same directory as the calling script, if nothing is found, it moves to the next path in the list. In the last case, it SHOULD be /usr/local/PEAR, but it comes up with nothing.

The only odd thing I can see from the error report is the following bit in the second section:

(include_path='.:/usr/local/PEAR;/Users/wilhelm/Sites/wrk/t-box-3a-rxml/public/Library/Pear/')

After ‘.:/usr/local/PEAR’ there is a semi-colon and another (valid) path is appended to it. I’m not worried about this particular path, but I’m concerned the semi-colon is causing PHP to think everything after the first colon is a single path. If that’s the case, it would make sense that PHP can’t find the PEAR libraries.

Given what I’ve mentioned, could anyone else think of any reason or provide any insight into this matter? Thanks HEAPS!

EDIT:

Alright, this has been resolved. I did executed the following command in the terminal:

$ grep -r -i ini_set("include_path {path/to/project}

Aaaand I found the following:

ini_set("include_path", ini_get("include_path") . ";" . __CONFIG_PATH_LIBRARY_PEAR);

Replacing the “;” with PATH_SEPARATOR fixed the problem nicely.

Thanks go out to Jacob! 🙂

  • 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-20T06:43:54+00:00Added an answer on May 20, 2026 at 6:43 am

    Search your project for set_include_path or public/Library/Pear/

    It appears like you may be adding to the include path somewhere, and used a semi-colon instead of the PHP constant PATH_SEPARATOR, which will give you the correct separator for your OS.

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

Sidebar

Related Questions

Before I start I should say I know this seems like a long shot,
My Rails app is starting to need complicated queries. Should I just start using
Before I start posting a ton of code I think I may be able
I think it might have been asked before but i was unable to find
I think I understand the happened-before relationship for single variables. If I write a
I think all of the tutorials I found are from before you could use
I don't think this question has been asked before. I'm a bit confused on
I asked this question before, Here however I think I presented the problem poorly,
I think the question is pretty self explanatory. Anyone done this before? UPDATE :
Please see the back trace below, I don´t think I have seen this before

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.