开发者

Can't compile Erlang R14B03 when trying install RabbitMQ using Homebrew on Mac OS X

I am developing a django app and it will utilize the Celery notification system. To use Celery I need the install the RabbitMQ server. I am trying to install it using homebrew. So I just:

sudo brew install rabbitmq

But erlang is a prerquisit for the install. So Homebrew tries to compile erlang-otp (R14B03), but during this process it always gets stuck for hours. I even let it sit over night and nothing happend. So I aborted the compilation and did:

sudo brew install -v erlang

to see the progress of the compile. It gets stuck a the and states the following error:

=== Entering application hipe
(cd ../main && make hipe.hrl)
sed -e "s;%VSN%;3.8;" ../../hipe/main/hipe.hrl.src > ../../hipe/main/hipe.hrl
erlc -W  +debug_info +inline -o../ebin hipe_rtl.erl
(no error logger present) error: "Error in process <0.1.0> with exit val开发者_如何学JAVAue: {{badfun,[<<5 bytes>>,<<69 bytes>>,<<9 bytes>>,<<3 bytes>>,<<2 bytes>>,<<5 bytes>>,<<11 bytes>>,<<2 bytes>>,<<8 bytes>>,<<8 bytes>>,<<5 bytes>>,<<7 bytes>>,<<5 bytes>>,<<11 bytes>>,<<2 bytes>>,<<11 bytes>>,<<15 bytes>>,<<4 bytes>>,<<72 bytes>>,<<5 bytes>>,<<1 byte>>,<<7 bytes>>,<<10 bytes>>,<<7 bytes>>,<<6 bytes>>,<<7 bytes>>,<<7 bytes>>,<<6 bytes>>,<<12 bytes>>]},[{erlang,apply,2}]}\n"

I've tried it multiple times, but I get he same result. Could be because I have the wrong version of autoconf? Have any of you guys had a similar experience? What are some recommendations to get a successful compile?

I appreciate the help. Many thanks in advance.


Erlang has problems building with Xcode 4's compilers.

You should be able to get it to compile if you turn off optimization with CFLAGS=-O0.


You can get a pre-compiled package for Mac OSX from Erlang Solutions.


I had the same issue on a new Lion install with Xcode 4.1. The following command installed erlang successfully.

brew install erlang --use-gcc
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜