• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How can I make Darwin see the most recent PHP from the shell prompt?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I make Darwin see the most recent PHP from the shell prompt?


  • Subject: Re: How can I make Darwin see the most recent PHP from the shell prompt?
  • From: Larry Fransson <email@hidden>
  • Date: Mon, 13 Dec 2004 16:10:50 -0800


On Dec 13, 2004, at 15:22, Frederick C. Lee wrote:

Greetings:
I've tried Darwin Ports and also ran the PHP 5.02 installer as well. But when I looked at the current PHP version at the Terminal, I still get version 4.3.2. (see below).


Simple question: How can I remove the old (version 4.3.2) and replace it with the lastest (either via Darwin Ports or from the PHP site)?
That is, where to I point Darwin/Mac OS X to use the latest version of PHP?

This isn't really Cocoa-related, but here you go anyway:

You don't need to remove 4.3.2. In fact, I think I would recommend against it. It's just personal preference, but I prefer not to mess with the stock setup too much in case I want to remove all of my Darwin Ports or fink stuff.

In order to use your Darwin Ports (or fink, or anything else) version of PHP, you need to change your $PATH so that the Darwin Ports directory (/opt is it?) is before everything else. For example:

[larrysg4:~] fransson% echo $PATH
/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/ local/bin:/Developer/Tools:/usr/X11R6/bin


That's my $PATH. As you can see, the fink directories (/sw/) come first, followed by /bin, /sbin/, and the /usr/ directories, then the Darwin Ports /opt/local/bin. (I don't remember why I set it up that way, but I'm sure I had a good reason.) What you need to do is alter your $PATH - in whatever shell rc file is appropriate (mine is in .cshrc), so that /opt/local/bin comes before the /bin, /sbin, etc.

Larry Fransson
Seattle, WA

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How can I make Darwin see the most recent PHP from the shell prompt? (From: "Frederick C. Lee" <email@hidden>)

  • Prev by Date: Re: About efficiently reading and writing files...
  • Next by Date: re: c++ exceptions causing abort
  • Previous by thread: How can I make Darwin see the most recent PHP from the shell prompt?
  • Next by thread: Re: How can I make Darwin see the most recent PHP from the shell prompt?
  • Index(es):
    • Date
    • Thread