Compiling ejabberd under Snow Leopard with Erlang R13B
Posted by Mickaël Rémond on September 27, 2009ejabberd 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: Jabber / XMPP ejabberd Erlang
Share article:
Tweet this
Make delicious
Stumble upon
Comments
No comments so far, you could be the first.Add comment

Stay Informed
Subscribe to our RSS feed or follow us on Twitter to receive alerts when we post new news stories and blogs.
Subscribe to ProcessOne RSS feed
Follow ProcessOne on Twitter
Follow Mickaël on Twitter
Search our blogs
To make it easier for you to find blogs on topics that you are interested in, we have grouped them into categories depending on the different themes addressed in each blog. Categories include:
ProcessOne
Jabber / XMPP
ejabberd
Erlang
CEAN
Information Technology
Misc
Tsung
French
Mozilla
Employment opportunities
IMtrends
All categories
Become a ProcessOne partner
Find out about the benefits of joining ProcessOne’s partnership programme.
Click here
Our products and services
We offer packaged solutions comprising all of the server-side and client-side technology necessary to create valuable new instant messaging applications. In addition, we offer a range of services for delivering customised solutions.
Click here for full details