Confused about installing PHP5 cli

Ryan Schmidt ryandesign at macports.org
Wed Jul 15 16:07:32 PDT 2009


On Jul 14, 2009, at 15:00, mrbigpants wrote:

> Ryan Schmidt wrote:
>
>>> There is PHP4 at /usr/local/bin (came w/ OSX, I think)
>>
>> Apple does not supply any software in /usr/local;
>
> I misspoke. There is a php binary in /usr/bin, which I assume came  
> w/ OS X.

Yes, Apple provides a php in /usr/bin starting with Mac OS X 10.5.0.

> Should I reorder the paths in my PATH environment variable so that
> /opt/local/bin comes before /usr/bin? What's the best way to handle  
> this?

The recommended way to configure your paths has /opt/local/bin and / 
opt/local/sbin before the other paths:

http://guide.macports.org/#installing.shell




More information about the macports-users mailing list