modularml / mojo

The Mojo Programming Language
https://docs.modular.com/mojo/manual/
Other
23.06k stars 2.59k forks source link

[Magic CLI]: `mojo` or `mojo debug` lead to "error while loading shared libraries: libedit.so.2" #3629

Open Julian-J-S opened 1 week ago

Julian-J-S commented 1 week ago

Issue description

When running

Getting the error: /home/julian/programming/mojo/hello2/.magic/envs/default/bin/mojo-lldb: error while loading shared libraries: libedit.so.2: cannot open shared object file: No such file or directory

However mojo main.mojo works! :green_circle:

Steps to reproduce

Setup project with magic init hello --format mojoproject Run commands from issue description

Version Info

- magic: magic 0.3.1 - (based on pixi 0.29.0)
- mojo: mojo 24.5.0 (e8aacb95)
- OS: Fedora Linux 40 (Workstation Edition)
stflavian commented 23 hours ago

I am currently having the same issue on Fedora 40. As far as I can see, a workaround for missing libraries on Fedora (including this one) was already discussed here. But it would be nice if these would be covered by the installer instead of leaving them to the user to deal with.