Erlang on Mac OS X Panther

Bjorn Gustavsson <>
Wed Jun 23 13:27:35 CEST 2004


> I've bough meself a mac :-)

Excellent! :)

> Anyway, I found the following two problems compiling erlang
> on Panther OS X 10.3
> - Erlang utilize internal zlib functions. In particular z_errstr()
>   The zlib on OS X doesn't have the dunction.
> # nm /usr/lib/libz.dylib | grep errstr
>  Returns nothing. I solved it by 
>    - installing zlib from source in /usr/local
>    - and hacking the generated Makefile 
>      to link with /usr/libz.a instead of just -lz

Erlang comes with its own zlib. In the R9C-2 release, we have changed
so that "our" zlib is always linked in.

> SSL application doesn't build correctly either:
>   The link flags contained a -R which gcc doesn't inderstand
>   I just removed the -R. Don't even know what it's supposed to do.

It is probably needed by some obscure platform. We'll see what we
can do about it in future releases.

Björn Gustavsson, Erlang/OTP, Ericsson AB

More information about the erlang-questions mailing list