Modular Mojo for Arch Linux

I’ve been trying to get Max on Archcraft Linux but haven’t had any luck with it. Is there a way to get it along with Magic🪄 on Archcraft Linux?

1 Like

Did you try

curl -ssL https://magic.modular.com/d143b00c-172d-4fda-b646-bd84d393b92d | bash

This worked for me on CachyOS (based on Arch Linux).

2 Likes

works for me on Arch

1 Like

Ok. That worked. I’m still having an issue with trying to install Max and Mojo. I think the problem was libllvm.so was missing or something and the Mojo repl wouldn’t open.

are a lot of folks porting the Modular stack into Linux environments? I’ve been thinking about it. How is the stack running so far

Huh. Did you initialize a project, cd to it, and use magic run mojo, or magic shell to activate the environment?

❯ magic init my-mojo-project --format mojoproject
✔ Created /home/chriselrod/Documents/progwork/mojo/my-mojo-project/mojoproject.toml
✔ Added max >=24.6.0,<25

~/Documents/progwork/mojo 4m 36s
❯ cd my-mojo-project/

~/Documents/progwork/mojo/my-mojo-project
❯ magic run mojo
Welcome to Mojo! 🔥

Expressions are delimited by a blank line.
Type `:quit` to exit the REPL and `:mojo help` for further assistance.

  1> print("hello, world!") 
  2.  
hello, world!
  2>  

It shouldn’t rely on your host LLVM LLVM version.

Linux support is good in my experience. All my development is on Linux.
Have you run into any issues, or are you just considering whether or not to try it? If the latter, I’d give it a try and report any issues.

I’m about a year away from finishing undergrad and my machine works for what I need it for now. I may port a Linux OS onto a SSD and run Windows OS on the SATA drive. Or wait a year and buy a second machine for 100% Linux workflow

I take it your current machine is Windows?

I wouldn’t anticipate any problems when you’re ready to give Linux a try.

Note, you can dual boot windows and linux on the same drive. There should be guides online describing how to do this.

Also, as anitpick: SSD and SATA are orthogonal concepts.
Many SSDs are also SATA drives. SATA is a means of connecting to the motherboard.
HDDs tend to use SATA, while every drive I’ve heard of that uses NVME instead of SATA is also a SSD.

@elrod I didn’t know that :laughing: nice to knows ig. Yes I am running on Windows. I am a bit new to the Linux community and I am a bit aware about nitpicking in the Linux community from experience :joy:

I actually just found out about dual booting 2 OS systems into a single hard drive but I download software packages and libraries like there is no tomorrow just to see what they do. But I want a dedicated hard drive per OS. I would prefer leveraging both as I do not have a preference. Whichever is the best for what I intend to do goes.

Yes, I’ve created the virtual environment and ran magic shell but whenever I try to run Mojo it doesn’t work. I’m also running Archcraft Linux on an ASUS Intel Celeron dual core, I think it might just be the distribution and not the modular applications.

Did anybody get it to work on Archcraft Linux? It’s still not working for me.

I finally got it to work on Archcraft Linux by adding the lldb dependency to the project as well as the Python3.12 package. The global install will work by copying libpanel.so.6, libpanel.so.6.5, libncurses.so.6, and libncurses.so.6.5 from the project/envs/default/lib folder into the /user/lib folder.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.