Issue with installing on fedora 38
I seem to be getting an issue when installing in fedora, modular works fine but
modular install mojo doesn't finish and returns the following error:
4 Replies
as a note; I already have ncurses and ncurses-devel installed
probably safer to stick with ubuntu until they roll out more Linux compatibility: https://docs.modular.com/mojo/manual/get-started/index.html
Modular Docs - Get started with Mojo🔥
Get the Mojo SDK or try coding in the Mojo Playground.
Hi, why there is no other distro support from Mojo? I know that need time but for main distro like Debian, Fedora or other should be a some support. For me and many people Ubuntu is not a first choice to use 🙂
Fedora 38 Sway spin here. You may be seeing a message like this on stderr
The output to stderr is causing the test to fail for Fedora 38. During the install of mojo with
modular install mojo
it is possible to change the test that is about to fail whilst it is performing the install and self test. There will be a race from the time modular install mojo
writes the test file to disk and the time that it actually runs the test - there appears to be a large window in which you can disable the test.
During the install keep looking for ~/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py
file and modify to disable around line 275 tests which fail with a complaint about the output to stderr.
Specifically around line 275 change to to disable the test from running and failing.
Note that investigating further into the failing test it is only failing due to the output to stderr with around line 190 if not "Self-test OK!" in out or not len(err) == 0:
where len(err) is not 0 since it had /lib64/libtinfo.so.6: no version information available (required by mojo)
on stderr but at the same time it reports Self-test OK!
on stdout so it only fails on the stderr.
Despite the stderr message mojo appears to be working on Fedora 38.
Update for mojo 0.3.0: In ~/.modular/pkg/packages.modular.com_mojo/scripts/post-install/self-test.py
file the line to comment out is now around 311. In addition libedit shared lib can't be found so create a sym link with: