Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install php5 curl in mac osx snow leopard?

How can I install php5 curl module or any other php5 modules in mac osx snow leopard?

In Ubuntu 9.04 I am using:

sudo apt-get install php5-curl

I already tried Googling but can't find some solution.

like image 642
marknt15 Avatar asked Oct 03 '09 08:10

marknt15


1 Answers

I would install it via macports. Once you've installed mac ports, you can use it to build and then install php5 curl with the command

sudo port install php5-curl

I was able to determine what the mac ports package name was by using the ports search function:

port search curl

Edit: You must have Apple Developer tools (X Code) installed on your machine for mac ports to work. X Code can be downloaded free from Apple. It also should be on your second Snow Leopard installation disc.

As a developer working on Apple machines, I find ports indispensable. It's rare that I get through an entire project without relying on it for some dependency, especially when I am using a lot of open source libraries. It's worth spending some time looking around and seeing what else is in there.

like image 79
Aftermathew Avatar answered Oct 03 '22 07:10

Aftermathew