安装并启用intl扩展(用于验证器)

时间:2013-04-20 12:54:23

标签: symfony osx-mountain-lion mamp

在Symfony配置期间,建议安装并启用intl扩展。 我遵循了本教程:http://sunny.chotai.uk.com/?p=2

终端中,我写了这个命令:

sudo port install php54-intl

但后来我收到了这条消息:

Warning: The Command Line Tools for Xcode don't appear to be installed;
most ports will likely fail to build.
Warning: See http://guide.macports.org/chunked/installing.xcode.html
for more information.
--->  Computing dependencies for php54-intlError: Unable to execute port:
can't read "build.cmd": Failed to locate 'make' in path:
'/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin'
or at its MacPorts configuration time location, did you move it?`

为什么它不起作用以及如何解决它。我的配置是 MAMP 2.1.4 OS X 10.8.3

1 个答案:

答案 0 :(得分:0)

您需要在XCode中安装XCode和命令行工具,以便MacPorts能够正常运行。

这也被列为MacPorts Install Page的要求之一。