I’m trying to install Erlang 188.8.131.52 using asdf on MacOS Mojave but it fails. I’ve also tried with Erlang 22 with the same issue. This is what the output is:
❯ asdf install erlang 184.108.40.206 Extracting source code mv: rename ./otp-OTP-220.127.116.11 to /Users/linus/.asdf/plugins/erlang/kerl-home/builds/asdf_18.104.22.168/otp_src_22.214.171.124/otp-OTP-126.96.36.199: Directory not empty Building Erlang/OTP 188.8.131.52 (asdf_184.108.40.206), please wait... Build failed. CC ../priv/x86_64-apple-darwin18.6.0/erl_gl.so 10 warnings generated. 10 warnings generated. LD ../priv/x86_64-apple-darwin18.6.0/wxe_driver.so ld: file not found: /usr/local/opt/jpeg/lib/libjpeg.8.dylib for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [../priv/x86_64-apple-darwin18.6.0/wxe_driver.so] Error 1 make: *** [opt] Error 2 make: *** [opt] Error 2 make: *** [libs] Error 2 Please see /Users/linus/.asdf/plugins/erlang/kerl-home/builds/asdf_220.127.116.11/otp_build_18.104.22.168.log for full details.
So, it requires libjpeg8 and I don’t have that. I do have libjpeg9 installed and libjpeg8 isn’t even available through Homebrew anymore.
Do I really have to downgrade libjpeg to install Erlang? It seems a bit weird to me.
Has anyone else had the same issues?