Compile MongooseIM on OS X with openssl

Another tricky thing I always struggle with: Get MongooseIM compiled on OS X (since they removed openssl). So if you have openssl installed via homebrew just do diff –git a/apps/ejabberd/rebar.config b/apps/ejabberd/rebar.config index c693471..4e5ff1f 100644 — a/apps/ejabberd/rebar.config +++ b/apps/ejabberd/rebar.config @@ -8,8 +8,15 @@ {require_otp_vsn, “R?1[678]”}. {port_specs, – [{“.*”, “priv/lib/tls_drv.so”, [“c_src/tls_drv.c”], [{env, [{“LDFLAGS”, “$LDFLAGS -lssl”}]}]}, – {“.*”, […]

Erlang with openssl using kerl on recent OS X (El Capitan, Sierra) with homebrew

Since I struggle with this every time I have to setup a new machine, here’s the best solution IMHO: https://github.com/kerl/kerl/issues/103#issuecomment-176704372 In short $ cat ~/.kerlrc KERL_CONFIGURE_OPTIONS=”–with-ssl=/usr/local/opt/openssl” CFLAGS=”-DOPENSSL_NO_EC=1″