PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, August 30, 2022

[FIXED] How to link a php install to pear on OS X?

 August 30, 2022     macos, pear, php     No comments   

Issue

I have Pear already installed and linked to php 5.5 (which is the default version that came with the OS). However, I need to use php 5.4. I downloaded php 5.4 but am unable to link it with the already-installed pear.

I tried doing brew link php54 in terminal and tried adding the path to the my installed Pear folder in the php.ini for php54 like so: include_path = ".:/usr/local/pear/"

Neither of those methods worked. Any guidance would be appreciated.


Solution

The include_path should link to the folder in which the System.php file exists. This file exists in the path /usr/local/pear/share/pear in OS X so when I put that as the include path, it worked.

Check this link for more details: http://pear.php.net/manual/en/installation.checking.php



Answered By - covfefe
Answer Checked By - Willingham (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing