The MAX package is a superset of the Mojo package.
Having both standalone Mojo package and the MAX package installed
at the same time can cause version confusion.
We recommend uninstalling the standalone Mojo using modular uninstall mojo. You can still use Mojo from the MAX package..
[mojo][error] Mojo SDK post-install test "mojo build test_mandelbrot.mojo" failed:
SubprocessError: Command '/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo build /home/jerin/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo -o /tmp/tmponnclmwv/test_mandelbrot' returned non-zero exit status 1.
stderr:
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo)
/usr/bin/ld: cannot find -ltinfo: No such file or directory
collect2: error: ld returned 1 exit status
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to link executable
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 205, in test_mojo_build
self.run_mojo(
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 193, in run_mojo
return self.run(self.mojo, subcommand, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 181, in run
raise SubprocessError(
[mojo][error] Mojo SDK post-install test "mojo build test_python.mojo" failed:
SubprocessError: Command '/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo build /home/jerin/.modular/pkg/packages.modular.com_max/test/test_python.mojo -o /tmp/tmponnclmwv/test_python' returned non-zero exit status 1.
stderr:
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo)
/usr/bin/ld: cannot find -ltinfo: No such file or directory
collect2: error: ld returned 1 exit status
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to link executable
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 215, in test_mojo_build
self.run_mojo(
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 193, in run_mojo
return self.run(self.mojo, subcommand, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 181, in run
raise SubprocessError(
[mojo][error] Mojo SDK post-install test "mojo repl" failed:
SubprocessError: Command '/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo repl --one-line-before-file settings set target.load-cwd-lldbinit false --one-line-before-file settings set target.disable-aslr false --one-line-before-file settings set plugin.process.gdb-remote.packet-timeout 60' returned non-zero exit status 127.
stderr:
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo)
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo-lldb: error while loading shared libraries: libedit.so.2: cannot open shared object file: No such file or directory
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 304, in test_mojo_repl
raise SubprocessError(repl.returncode, " ".join(args), out, err)
[mojo][error] Mojo SDK post-install test "mojo debug" failed:
SubprocessError: Command ''/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo' 'debug' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.load-cwd-lldbinit false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.disable-aslr false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set plugin.process.gdb-remote.packet-timeout 60' '-Xlldb' '-o' '-Xlldb' 'b test_debug.mojo:10' '-Xlldb' '-o' '-Xlldb' 'run' '-Xlldb' '-o' '-Xlldb' 'frame var foo' '-Xlldb' '-b' '/home/jerin/.modular/pkg/packages.modular.com_max/test/test_debug.mojo'' returned non-zero exit status 127.
stderr:
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo)
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo-lldb: error while loading shared libraries: libedit.so.2: cannot open shared object file: No such file or directory
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 350, in test_mojo_debug
raise SubprocessError(
[mojo][error] Some components of the Mojo SDK may have been installed successfully, but others may not work as expected.
[mojo][error] Please submit an issue to https://github.com/modularml/mojo and include the full output of the command you just ran.
modular: error: failed to run script
Stderr:
[mojo][error] Mojo SDK post-install test "mojo build test_mandelbrot.mojo" failed:
SubprocessError: Command '/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo build /home/jerin/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo -o /tmp/tmponnclmwv/test_mandelbrot' returned non-zero exit status 1.
stderr:
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo)
/usr/bin/ld: cannot find -ltinfo: No such file or directory
collect2: error: ld returned 1 exit status
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to link executable
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 205, in test_mojo_build
self.run_mojo(
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 193, in run_mojo
return self.run(self.mojo, subcommand, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 181, in run
raise SubprocessError(
[mojo][error] Mojo SDK post-install test "mojo build test_python.mojo" failed:
SubprocessError: Command '/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo build /home/jerin/.modular/pkg/packages.modular.com_max/test/test_python.mojo -o /tmp/tmponnclmwv/test_python' returned non-zero exit status 1.
stderr:
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo)
/usr/bin/ld: cannot find -ltinfo: No such file or directory
collect2: error: ld returned 1 exit status
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to link executable
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 215, in test_mojo_build
self.run_mojo(
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 193, in run_mojo
return self.run(self.mojo, subcommand, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 181, in run
raise SubprocessError(
[mojo][error] Mojo SDK post-install test "mojo repl" failed:
SubprocessError: Command '/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo repl --one-line-before-file settings set target.load-cwd-lldbinit false --one-line-before-file settings set target.disable-aslr false --one-line-before-file settings set plugin.process.gdb-remote.packet-timeout 60' returned non-zero exit status 127.
stderr:
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo)
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo-lldb: error while loading shared libraries: libedit.so.2: cannot open shared object file: No such file or directory
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 304, in test_mojo_repl
raise SubprocessError(repl.returncode, " ".join(args), out, err)
[mojo][error] Mojo SDK post-install test "mojo debug" failed:
SubprocessError: Command ''/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo' 'debug' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.load-cwd-lldbinit false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.disable-aslr false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set plugin.process.gdb-remote.packet-timeout 60' '-Xlldb' '-o' '-Xlldb' 'b test_debug.mojo:10' '-Xlldb' '-o' '-Xlldb' 'run' '-Xlldb' '-o' '-Xlldb' 'frame var foo' '-Xlldb' '-b' '/home/jerin/.modular/pkg/packages.modular.com_max/test/test_debug.mojo'' returned non-zero exit status 127.
stderr:
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo)
/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo-lldb: error while loading shared libraries: libedit.so.2: cannot open shared object file: No such file or directory
File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 350, in test_mojo_debug
raise SubprocessError(
[mojo][error] Some components of the Mojo SDK may have been installed successfully, but others may not work as expected.
[mojo][error] Please submit an issue to https://github.com/modularml/mojo and include the full output of the command you just ran.
AND FOR modular -v:
jerin@fedora:~$ modular -v
modular: /lib64/libtinfo.so.6: no version information available (required by modular)
modular 0.7.1 (28ddab26)
Steps to reproduce
Include relevant code snippet or link to code that did not work as expected.
If applicable, add screenshots to help explain the problem.
Include anything else that might help us debug the issue.
System information
- What OS did you do install MAX on ?
- Provide version information for MAX by pasting the output of max -v`
- Provide version information for Mojo by pasting the output of mojo -v`
- Provide Modular CLI version by pasting the output of `modular -v`
Thanks! Sorry you have trouble installing MAX. You have also created the same issue previously here. Note that this is not a bug. We currently officially support Ubuntu and it looks like you're on Fedora.
Bug description
os: fedora
this is the output:
jerin@fedora:~$ modular install max modular: /lib64/libtinfo.so.6: no version information available (required by modular)
Found release for https://packages.modular.com/max @ 24.2.1
Using cached archive: /home/jerin/.modular/max-x86_64-unknown-linux-gnu-24.2.1-4-0.tar.gz
Extracting downloaded archives.
Extracted [ ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ ] 100% 1.39GiB/1.39GiB
Extraction complete, setting configs...
Configs complete, running post-install hooks...
==== CONFLICTING PACKAGES DETECTED ====
The MAX package is a superset of the Mojo package.
Having both standalone Mojo package and the MAX package installed at the same time can cause version confusion.
We recommend uninstalling the standalone Mojo using
modular uninstall mojo
. You can still use Mojo from the MAX package..[mojo][error] Mojo SDK post-install test "
mojo build test_mandelbrot.mojo
" failed: SubprocessError: Command '/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo build /home/jerin/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo -o /tmp/tmponnclmwv/test_mandelbrot' returned non-zero exit status 1. stderr: /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo) /usr/bin/ld: cannot find -ltinfo: No such file or directory collect2: error: ld returned 1 exit status /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to link executable File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 205, in test_mojo_build self.run_mojo( File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 193, in run_mojo return self.run(self.mojo, subcommand, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 181, in run raise SubprocessError( [mojo][error] Mojo SDK post-install test "mojo build test_python.mojo
" failed: SubprocessError: Command '/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo build /home/jerin/.modular/pkg/packages.modular.com_max/test/test_python.mojo -o /tmp/tmponnclmwv/test_python' returned non-zero exit status 1. stderr: /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo) /usr/bin/ld: cannot find -ltinfo: No such file or directory collect2: error: ld returned 1 exit status /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to link executable File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 215, in test_mojo_build self.run_mojo( File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 193, in run_mojo return self.run(self.mojo, subcommand, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 181, in run raise SubprocessError( [mojo][error] Mojo SDK post-install test "mojo repl
" failed: SubprocessError: Command '/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo repl --one-line-before-file settings set target.load-cwd-lldbinit false --one-line-before-file settings set target.disable-aslr false --one-line-before-file settings set plugin.process.gdb-remote.packet-timeout 60' returned non-zero exit status 127. stderr: /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo) /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo-lldb: error while loading shared libraries: libedit.so.2: cannot open shared object file: No such file or directory File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 304, in test_mojo_repl raise SubprocessError(repl.returncode, " ".join(args), out, err) [mojo][error] Mojo SDK post-install test "mojo debug
" failed: SubprocessError: Command ''/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo' 'debug' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.load-cwd-lldbinit false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.disable-aslr false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set plugin.process.gdb-remote.packet-timeout 60' '-Xlldb' '-o' '-Xlldb' 'b test_debug.mojo:10' '-Xlldb' '-o' '-Xlldb' 'run' '-Xlldb' '-o' '-Xlldb' 'frame var foo' '-Xlldb' '-b' '/home/jerin/.modular/pkg/packages.modular.com_max/test/test_debug.mojo'' returned non-zero exit status 127. stderr: /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo) /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo-lldb: error while loading shared libraries: libedit.so.2: cannot open shared object file: No such file or directory File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 350, in test_mojo_debug raise SubprocessError( [mojo][error] Some components of the Mojo SDK may have been installed successfully, but others may not work as expected. [mojo][error] Please submit an issue to https://github.com/modularml/mojo and include the full output of the command you just ran. modular: error: failed to run scriptFailure Information:
PATH=/home/jerin/.local/bin:/home/jerin/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin HOME=/home/jerin PYTHONPATH=/home/jerin/.modular/pkg/packages.modular.com_max/venv/lib/home/jerin/.modular/pkg/packages.modular.com_max/venv/bin/python /home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py --modular-home /home/jerin/.modular --package-path /home/jerin/.modular/pkg/packages.modular.com_max --mojo-config-section mojo-max
mojo build test_mandelbrot.mojo
" failed: SubprocessError: Command '/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo build /home/jerin/.modular/pkg/packages.modular.com_max/test/test_mandelbrot.mojo -o /tmp/tmponnclmwv/test_mandelbrot' returned non-zero exit status 1. stderr: /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo) /usr/bin/ld: cannot find -ltinfo: No such file or directory collect2: error: ld returned 1 exit status /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to link executable File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 205, in test_mojo_build self.run_mojo( File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 193, in run_mojo return self.run(self.mojo, subcommand, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 181, in run raise SubprocessError( [mojo][error] Mojo SDK post-install test "mojo build test_python.mojo
" failed: SubprocessError: Command '/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo build /home/jerin/.modular/pkg/packages.modular.com_max/test/test_python.mojo -o /tmp/tmponnclmwv/test_python' returned non-zero exit status 1. stderr: /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo) /usr/bin/ld: cannot find -ltinfo: No such file or directory collect2: error: ld returned 1 exit status /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: error: failed to link executable File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 215, in test_mojo_build self.run_mojo( File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 193, in run_mojo return self.run(self.mojo, subcommand, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 181, in run raise SubprocessError( [mojo][error] Mojo SDK post-install test "mojo repl
" failed: SubprocessError: Command '/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo repl --one-line-before-file settings set target.load-cwd-lldbinit false --one-line-before-file settings set target.disable-aslr false --one-line-before-file settings set plugin.process.gdb-remote.packet-timeout 60' returned non-zero exit status 127. stderr: /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo) /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo-lldb: error while loading shared libraries: libedit.so.2: cannot open shared object file: No such file or directory File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 304, in test_mojo_repl raise SubprocessError(repl.returncode, " ".join(args), out, err) [mojo][error] Mojo SDK post-install test "mojo debug
" failed: SubprocessError: Command ''/home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo' 'debug' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.load-cwd-lldbinit false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set target.disable-aslr false' '-Xlldb' '--one-line-before-file' '-Xlldb' 'settings set plugin.process.gdb-remote.packet-timeout 60' '-Xlldb' '-o' '-Xlldb' 'b test_debug.mojo:10' '-Xlldb' '-o' '-Xlldb' 'run' '-Xlldb' '-o' '-Xlldb' 'frame var foo' '-Xlldb' '-b' '/home/jerin/.modular/pkg/packages.modular.com_max/test/test_debug.mojo'' returned non-zero exit status 127. stderr: /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo: /lib64/libtinfo.so.6: no version information available (required by /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo) /home/jerin/.modular/pkg/packages.modular.com_max/bin/mojo-lldb: error while loading shared libraries: libedit.so.2: cannot open shared object file: No such file or directory File "/home/jerin/.modular/pkg/packages.modular.com_max/scripts/post-install/self-test.py", line 350, in test_mojo_debug raise SubprocessError( [mojo][error] Some components of the Mojo SDK may have been installed successfully, but others may not work as expected. [mojo][error] Please submit an issue to https://github.com/modularml/mojo and include the full output of the command you just ran.AND FOR modular -v:
jerin@fedora:~$ modular -v modular: /lib64/libtinfo.so.6: no version information available (required by modular) modular 0.7.1 (28ddab26)
Steps to reproduce
System information