简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM