asdf-vm / asdf-erlang

Erlang plugin for asdf version manager
https://github.com/asdf-vm/asdf
MIT License
479 stars 118 forks source link

Cannot install any erlang version above 24 #282

Closed JackSoby closed 9 months ago

JackSoby commented 1 year ago

I am trying to install erlang 26.0.2

when I run asdf install erlang I get the following result

asdf_26.0.2 is not a kerl-managed Erlang/OTP installation
The asdf_26.0.2 build has been deleted
Extracting source code
Building Erlang/OTP 26.0.2 (asdf_26.0.2), please wait...
APPLICATIONS DISABLED (See: /Users/jack/.asdf/plugins/erlang/kerl-home/builds/asdf_26.0.2/otp_build_26.0.2.log)
 * jinterface     : No Java compiler found

APPLICATIONS INFORMATION (See: /Users/jack/.asdf/plugins/erlang/kerl-home/builds/asdf_26.0.2/otp_build_26.0.2.log)
 * wx             : wxWidgets was not compiled with --enable-webview or wxWebView developer package is not installed, wxWebView will NOT be available

DOCUMENTATION INFORMATION (See: /Users/jack/.asdf/plugins/erlang/kerl-home/builds/asdf_26.0.2/otp_build_26.0.2.log)
 * documentation  :
 *                  fop is missing.
 *                  Using fakefop to generate placeholder PDF files.

Build failed.
1 warning generated.
 CC ../priv/x86_64-apple-darwin22.6.0/erl_gl.so
5 warnings generated.
 LD ../priv/x86_64-apple-darwin22.6.0/wxe_driver.so
ld: file not found: /usr/local/opt/libtiff/lib/libtiff.5.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [../priv/x86_64-apple-darwin22.6.0/wxe_driver.so] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2

Please see /Users/jack/.asdf/plugins/erlang/kerl-home/builds/asdf_26.0.2/otp_build_26.0.2.log for full details.
Removing all artifacts except the logfile
(Use KERL_AUTOCLEAN=0 to keep build on failure, if desired)
Cleaning up compilation products for asdf_26.0.2
Cleaned up compilation products for asdf_26.0.2 under /Users/jack/.asdf/plugins/erlang/kerl-home/builds

I have the most up to date version of kerl installed with homebrew.

I get the same issue when trying to install any version of erlang version 24 or up.

I am on MacOS Ventura 13.5

thbar commented 1 year ago

I have a very similar error, in particular the error seems to be around lib tiff above and below:

❯ asdf install erlang
asdf_25.3.2.5 is not a kerl-managed Erlang/OTP installation
The asdf_25.3.2.5 build has been deleted
Extracting source code
Building Erlang/OTP 25.3.2.5 (asdf_25.3.2.5), please wait...
APPLICATIONS DISABLED (See: /Users/thbar/.asdf/plugins/erlang/kerl-home/builds/asdf_25.3.2.5/otp_build_25.3.2.5.log)
 * odbc           : ODBC library - link check failed

APPLICATIONS INFORMATION (See: /Users/thbar/.asdf/plugins/erlang/kerl-home/builds/asdf_25.3.2.5/otp_build_25.3.2.5.log)
 * wx             : wxWidgets was not compiled with --enable-webview or wxWebView developer package is not installed, wxWebView will NOT be available

DOCUMENTATION INFORMATION (See: /Users/thbar/.asdf/plugins/erlang/kerl-home/builds/asdf_25.3.2.5/otp_build_25.3.2.5.log)
 * documentation  : 
 *                  fop is missing.
 *                  Using fakefop to generate placeholder PDF files.

Build failed.
5 warnings generated.
 LD ../priv/aarch64-apple-darwin22.3.0/wxe_driver.so
ld: warning: dylib (/opt/homebrew/lib/libpng16.16.dylib) was built for newer macOS version (13.0) than being linked (12.0)
ld: warning: dylib (/opt/homebrew/lib/libjpeg.8.dylib) was built for newer macOS version (13.0) than being linked (12.0)
ld: file not found: /opt/homebrew/opt/libtiff/lib/libtiff.5.dylib for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [../priv/aarch64-apple-darwin22.3.0/wxe_driver.so] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2

Please see /Users/thbar/.asdf/plugins/erlang/kerl-home/builds/asdf_25.3.2.5/otp_build_25.3.2.5.log for full details.
Removing all artifacts except the logfile
(Use KERL_AUTOCLEAN=0 to keep build on failure, if desired)
Cleaning up compilation products for asdf_25.3.2.5
Cleaned up compilation products for asdf_25.3.2.5 under /Users/thbar/.asdf/plugins/erlang/kerl-home/builds

I am on 13.2.1.

JackSoby commented 1 year ago

what fixed this for me was running brew install wxwidgets

Stratus3D commented 9 months ago

Closing as I don't think there is anything we can improve in asdf-erlang for this.