I’m trying to install Erlang 184.108.40.206 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 220.127.116.11 Extracting source code mv: rename ./otp-OTP-18.104.22.168 to /Users/linus/.asdf/plugins/erlang/kerl-home/builds/asdf_22.214.171.124/otp_src_126.96.36.199/otp-OTP-188.8.131.52: Directory not empty Building Erlang/OTP 184.108.40.206 (asdf_220.127.116.11), 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_18.104.22.168/otp_build_22.214.171.124.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?