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

install on Opensuse leap: command not found and libtinfo fail #307

Open
aberfeldy opened this issue Apr 3, 2024 · 0 comments
Open

install on Opensuse leap: command not found and libtinfo fail #307

aberfeldy opened this issue Apr 3, 2024 · 0 comments

Comments

@aberfeldy
Copy link

after installing erlang latest with asdf I got the following output (installed everything with zypper that was mentioned):

asdf install erlang latest                                                                                                                                                                              
asdf_26.2.3 is not a kerl-managed Erlang/OTP installation
No build named asdf_26.2.3
Downloading 26.2.3 to /home/aberfeldy/.asdf/downloads/erlang/26.2.3...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  101M  100  101M    0     0  9067k      0  0:00:11  0:00:11 --:--:-- 2556k
Extracting source code
Building Erlang/OTP 26.2.3 (asdf_26.2.3), please wait...
/home/aberfeldy/.asdf/plugins/erlang/kerl: line 769: -leap_probe: command not found
Erlang/OTP 26.2.3 (asdf_26.2.3) has been successfully built
Cleaning up compilation products for asdf_26.2.3
Cleaned up compilation products for asdf_26.2.3 under /home/aberfeldy/.asdf/plugins/erlang/kerl-home/builds

whenever I try to run my erlang code I now get:

home/aberfeldy/.asdf/installs/erlang/26.2.3/bin/erl -pa /home/aberfeldy/Dev/erlang/erlangCourse/out/production/erlangCourse -pa /home/aberfeldy/Dev/erlang/erlangCourse -eval lastelem:doit(). -s init stop -noshell
/home/aberfeldy/.asdf/installs/erlang/26.2.3/erts-14.2.3/bin/beam.smp: /usr/lib/x86_64-linux-gnu/libtinfo.so.6: no version information available (required by /home/aberfeldy/.asdf/installs/erlang/26.2.3/erts-14.2.3/bin/beam.smp)
Error! Failed to eval: lastelem:doit().

Runtime terminating during boot ({undef,[{lastelem,doit,[],[]},{erl_eval,do_apply,7,[{file,"erl_eval.erl"},{line,746}]},{init,start_it,1,[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})

Crash dump is being written to: erl_crash.dump...done

code is just simple test code:

-module(lastelem).

-export([doit/0]).
doit() ->
  io:format("laste of [1,8,2,5] is ~p~n", [last([1,8,2,5])]),
  io:format("last of [sea, water, ocean] is ~p~n", [last(["sea", "water", "ocean"])]),
  io:format("laste of [] is ~p~n", [last([])]).


last([]) -> "Empty list has no elements";
last([H | []]) ->
  H;
last([_ | T]) ->
  last(T).

Any suggestion what might be missing? Did reinstall all requirements already

@aberfeldy aberfeldy changed the title install on Opensuse leap command not found and libtinfo fail install on Opensuse leap: command not found and libtinfo fail Apr 3, 2024
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

1 participant