2014-07-25 02:30:14

PHP export path, no available formula

Trying to link your PHP CLI to your brew package on Mac, you might get the error below.

Computar:thomashambach$ export PATH="$(brew --prefix homebrew/php/php54)/bin:$PATH"
Error: No available formula for php
Please tap it and then try again: brew tap homebrew/php54

Very easy fix, just remove homebrew/php from your prefix configuration as shown below.

export PATH="$(brew --prefix php54)/bin:$PATH"