dta38159 2013-03-24 07:15
浏览 58
已采纳

如何下载Mac OS X的PHP扩展

I recently purchased a Mac to do my LAMP development. However, coming from Debian, using the apt-get tool to download PHP extensions was surprisingly easy but doesn't exist on my Mac. After reading up on multiple forums, it seems one needs to download Xcode and use ports to do so, OR, download the binaries and compile them. So my question is, what is the best tool to use in order to get all these extensions (php5-mysql, php5-gd, libapache2-mod-php5, php5-curl etc).

Note: I am using the default PHP installed on my Mac which apparently doesn't come with many extensions or support for them.

  • 写回答

2条回答 默认 最新

  • du4010 2013-03-24 07:17
    关注

    You are correct. You can download XCode first and then use MacPorts to download/install/enable php and each extension. This is the same approach we use to setup our LAMP development environment on our MacBook Pros at work.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建