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

Friday, February 18, 2022

[FIXED] PEAR included with MAMP: how to access via Terminal?

 February 18, 2022     mamp, pear, terminal     No comments   

Issue

I'm trying to run a command that downloads a bit of software using PEAR installed with MAMP.

Here's the command I run in Terminal:

pear channel-discover pear.phpdoc.org

The Terminal responds with:

-bash: pear: command not found

Could someone please advise how to access PEAR that comes pre-installed with MAMP?

Path to MAMP on my Mac is /Applications/MAMP/


Solution

I do not use mamp but i think you can find the pear here:

/Applications/MAMP/bin/php5.3/bin/pear

you can simply add some alias to make it shorter, something like

alias mamppear="/Applications/MAMP/bin/php5.3/bin/pear"


Answered By - Simon Berka
  • 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

1,214,505

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 © 2025 PHPFixing