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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:53:18+00:00 2026-06-02T04:53:18+00:00

Max OS X 10.7.. when i run phing -v i get the following errors:

  • 0

Max OS X 10.7.. when i run phing -v i get the following errors:

Warning: require_once(phing/Project.php): failed to open stream: No such file or directory in /usr/lib/php/pear/phing/Phing.php on line 22

Fatal error: require_once(): Failed opening required 'phing/Project.php' (include_path='.:') in /usr/lib/php/pear/phing/Phing.php on line 22

Here are the commands i used:

pear config-set auto_discover 1
pear install phing/phing

Here is my php.ini:

include_path = ".:/Applications/MAMP/bin/php/php5.3.6/lib/php"

running whereis for php, pear, and phing returns:

bash-3.2$ whereis php
/usr/bin/php

bash-3.2$ whereis pear
/usr/bin/pear

bash-3.2$ whereis phing
/usr/bin/phing

running config-get for pear returns:

→ pear config-get php_dir
/usr/lib/php/pear

checking this folder, system.php and phing.php both exist in this path.

  • 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-02T04:53:21+00:00Added an answer on June 2, 2026 at 4:53 am

    Seems like include_path is somehow broken.

    Check PEAR’s directory:

    pear config-get php_dir
    /usr/lib/php
    

    Whatever directory is returned, it should contain PEAR files (System.php and phing files in particular)

    Check that correct php.ini is used:

    Run php --ini and see what INI file is being loaded. Then make sure this INI files contains PEAR directory in it’s include_path

    Check include_path:

    Run php -c /path/to/php.ini -r 'echo get_include_path() . "\n";'.


    Update

    The problem is indeed with include_path since the error message reports (include_path='.:') which clearly shows that PEAR is NOT in your include path. This means that wrong php.ini is being loaded for CLI PHP. To fix it, find correct php.ini file (step 2) and add

    include_path = ".:/usr/lib/php/pear" 
    

    to it.

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

Sidebar

Related Questions

When I run the following SQL statement: SELECT MAX(SUM(TIME)) FROM downloads GROUP BY SSN
When I run the following code, I get an invalid object name error, any
I'm trying to run the following query: SELECT formatted_journeys.*, MAX(speed) FROM formatted_journeys JOIN tracker.g_log
Is using SELECT Max(ID) FROM table safer than using SELECT last_insert_id(), where they run
I run a virtual copy of Debian on VirtualBox to develop a larger-sized PHP
I have the following command that I run on cygwin: find /cygdrive/d/tmp/* -maxdepth 0
How can I run aggregate, min, max, sum and friends on embedded docs? For
How do i run max n threads in a c# code block? I'll like
If I run a query like this: insert into table (unique_id, column) select (isnull(max(cast(unique_id
I run CGI script with apache2 and I have this warning lines in error.log

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.