Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTP-27.0.1 otp-aarch64-linux-gnu.tar.gz on ubuntu-22.04 errors #2

Closed
wojtekmach opened this issue Aug 19, 2024 · 3 comments
Closed

Comments

@wojtekmach
Copy link

I tried the following and received two different errors:

$ docker run --rm -it ubuntu:22.04
root@758c77cbefad:/# apt update && apt install -y curl
root@758c77cbefad:/# curl --fail -LO https://github.com/cocoa-xu/otp-build/releases/download/v27.0.1/otp-aarch64-linux-gnu.tar.gz
root@758c77cbefad:/# mkdir otp-27.0.1 && tar -xzf otp-aarch64-linux-gnu.tar.gz -C otp-27.0.1

root@758c77cbefad:/# otp-27.0.1/usr/local/bin/erl
otp-27.0.1/usr/local/bin/erl: 57: exec: /usr/local/lib/erlang/erts-15.0.1/bin/erlexec: not found

root@758c77cbefad:/# otp-27.0.1/usr/local/lib/erlang/bin/erl
/otp-27.0.1/usr/local/lib/erlang/erts-15.0.1/bin/beam.smp: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

I was able to solve the first error by doing: cd otp-27.0.1/usr/local/lib/erlang && ./Install -sasl $PWD, fwiw. I guess this is expected but I thought I'd mention this.

In my builds I was doing ./Install before archiving since the installation is relocatable as of OTP 25.

@cocoa-xu
Copy link
Owner

cocoa-xu commented Aug 26, 2024

Thanks @wojtekmach! btw I'm not sure if it would be a good idea to do a little hack to the launch scripts (in this repo of course) to bring the relocatable feature to OTP 24, or just do an AS-IS build and make a note in README.md? (I mean of course it's not necessary to use the code in this repo for your proposal, but just as a general question regarding whether the precompiled OTP 24 should have this feature)

@wojtekmach
Copy link
Author

wojtekmach commented Sep 2, 2024

@cocoa-xu agreed, I think it's safe to run ./Install on OTP 25+ but otherwise keep things as is and document accordingly. FYI I'll be submitting an OTP patch to have a .zip Windows build in releases which is archived relocatable install. :) (See erlang/otp#8729 (comment))

@cocoa-xu
Copy link
Owner

This has been on my todo list for so long and I finally stop procrastinating and added it in a8b903f 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants