问题在OSX 10.9上编译Phalcon [英] Problems compile phalcon on osx 10.9

查看:73
本文介绍了问题在OSX 10.9上编译Phalcon的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试遵循文档中的说明:

Trying to follow instruction from documentation:

运行

$ sudo ./install

并得到这个:

gcc -I. -I/Users/honky/cphalcon/build/64bits -DPHP_ATOM_INC -I/Users/honky/cphalcon/build/64bits/include -I/Users/honky/cphalcon/build/64bits/main -I/Users/honky/cphalcon/build/64bits -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/php/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -O2 -finline-functions -fomit-frame-pointer -fvisibility=hidden -c /Users/honky/cphalcon/build/64bits/phalcon.c -fno-common -DPIC -o .libs/phalcon.o
/Users/honky/cphalcon/build/64bits/phalcon.c:108409:21: error: libintl.h: No such file or directory
/Users/honky/cphalcon/build/64bits/phalcon.c: In function ‘phalcon_translate_adapter_gettext_read_dimension’:
/Users/honky/cphalcon/build/64bits/phalcon.c:108425: warning: incompatible implicit declaration of built-in function ‘gettext’
/Users/honky/cphalcon/build/64bits/phalcon.c: In function ‘phalcon_translate_adapter_gettext_has_dimension’:
/Users/honky/cphalcon/build/64bits/phalcon.c:108441: warning: incompatible implicit declaration of built-in function ‘gettext’
/Users/honky/cphalcon/build/64bits/phalcon.c: In function ‘zim_Phalcon_Translate_Adapter_Gettext_query’:
/Users/honky/cphalcon/build/64bits/phalcon.c:108553: warning: incompatible implicit declaration of built-in function ‘gettext’
/Users/honky/cphalcon/build/64bits/phalcon.c:108555: warning: incompatible implicit declaration of built-in function ‘dgettext’
/Users/honky/cphalcon/build/64bits/phalcon.c: In function ‘zim_Phalcon_Translate_Adapter_Gettext_exists’:
/Users/honky/cphalcon/build/64bits/phalcon.c:108590: warning: incompatible implicit declaration of built-in function ‘gettext’
/Users/honky/cphalcon/build/64bits/phalcon.c:108592: warning: incompatible implicit declaration of built-in function ‘dgettext’
make: *** [phalcon.lo] Error 1

有猜到吗?

推荐答案

Mac os x附带了很长时间预安装的PHP 5.x,但未安装预安装的扩展和解决库依赖关系会浪费大量的空闲时间,并且需要额外的时间努力,迷失在无关的Google搜索结果中.我的经验向我展示了这一艰难的方法.我强烈建议在Mac OS X上使用 Homebrew 来消除这种不必要的麻烦.

Mac os x ships with PHP 5.x preinstalled for a long time but installing not pre-installed extensions and solving library dependencies steals lot of free time and requires extra effort, getting lost in un-relevant google results. My experience has showed me that, the hard way. I strongly recommend using Homebrew on Mac OS X to eliminate really unnecessary pains like this.

成功安装Homebrew之后,只需简单地添加 Phalcon 扩展名(以及成千上万个其他开源libs/tools/apps):

After you have successfully installed Homebrew, having Phalcon extension (and thousands of other open source libs/tools/apps) as simple as this:

$ brew tap josegonzalez/homebrew-php
$ brew install php55-phalcon

当您需要其他扩展名或库时,只需键入:

When you need another extension or library, just type:

$ brew search <whatever>

要了解有关公式或安装选项的更多信息,请执行以下操作:

To learn more about a formula or installing options:

$ brew info <whatever>

注意:自制软件需要安装 Xcode .酿造前,请确保Mac上已安装Xcode.如果出现问题,请使用brew doctor命令了解发生的情况.

Note: Homebrew requires installing Xcode. Make sure that Xcode is installed on your mac before brewing. If something went wrong, use brew doctor command to get an idea about what's happening.

这篇关于问题在OSX 10.9上编译Phalcon的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆