From e780126c9ee6b01b07dd81ea17df2bf218679259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20R=C3=A9mond?= Date: Sun, 27 Sep 2009 14:30:01 +0000 Subject: [PATCH] Describe how to compile ejabberd on Mac OS X Snow Leopard with Erlang R13B-2 SVN Revision: 2636 --- doc/guide.tex | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/guide.tex b/doc/guide.tex index 0b43fa135..aa385df37 100644 --- a/doc/guide.tex +++ b/doc/guide.tex @@ -380,6 +380,20 @@ Some options that you may be interested in modifying: Disable the use of Erlang/OTP supervision for transient processes. \end{description} +\makesubsection{snowleopard}{Compiling ejabberd under Snow Leopard with Erlang R13B} +\ind{install!snowleopard} + +Erl Interface, the library to link Erlang with C code, is compiled as +32-bits code in Erlang R13B-2. Mac OS X Snow Leopard 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 force C code to be compiled with 32-bits. This is done with +the following configure command: + +\begin{verbatim} +CC='gcc -m32' CFLAGS=-m32 LDFLAGS=-m32 ./configure +\end{verbatim} \makesubsection{install}{Install} \ind{install!install}