Compiling ejabberd under Snow Leopard with Erlang R13B

ProcessOne - Mickaël Rémond - September 27, 2009

ejabberd compilation under Mac OS X Snow Leopard require special parameters.

Erl Interface, the library to link Erlang with C code, is compiled as 32-bits code in Erlang R13B-2, even on Snow Leopard. Mac OS X Snow Leopard, the latest version of Apple operating system, is a 64-bits system and will try compiling ejabberd C code in 64-bits as a default.

To compile ejabberd on Mac OS X Snow Leopard with Erlang R13B-2, you need to tell the compiler to compile ejabberd C code as 32-bits. It will match the architecture type of Erl Interface, as installed by Erlang/OTP compilation process.

This is done with the following configure command:

CC=‘gcc -m32’ CFLAGS=-m32 LDFLAGS=-m32 ./configure

Enjoy !



Categories: Companies  ProcessOne  

Comments

anonymous avatar

That’s worrisome.  How do we get a 64-bit version of the Erl interface in R13B-2?

Posted by Anonymous on 28 Sep 2009 at 04:19



 
anonymous avatar

I thank you hbmuly for sharing your wisdom JJWY

Posted by Buddy on 04 May 2011 at 12:33



 


Add comment

Name:

Email:

URL:

Smileys

Remember my personal information

Notify me of follow-up comments?