> ## Content Index
> Fetch the complete content index at: https://www.process-one.net/llms.txt
> Use this file to discover other available public pages before exploring further.

# Compiling ejabberd under Snow Leopard with Erlang R13B
- URL: https://www.process-one.net/blog/compiling-ejabberd-under-snow-leopard-with-erlang-r13b/
- Published: 2009-09-26T22:00:00.000Z
- Updated: 2024-09-23T16:19:55.000Z
- Description: ejabberd compilation under Mac OS X Snow Leopard require special parameters.
- Author: Mickaël Rémond

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 !