/arch-mojo

Install Mojo on Arch

Primary LanguagePython

This is a script to install the mojo programming language on Archlinux and Fedora.

Since mojo needs a version of ncurses that is not available on normal way on Arch, you need to do some extra steps to get mojo working.

Arch Installation

You can install mojo either with an AUR helper like yay or paru by installing the mojo package or doing it manually with the following command.

python <(curl -sSL https://raw.githubusercontent.com/Sharktheone/arch-mojo/main/src/install.py)

Options:

Install mojo globally:
python <(curl -sSL https://raw.githubusercontent.com/Sharktheone/arch-mojo/main/src/install.py) --global

Change working directory:

python <(curl -sSL https://raw.githubusercontent.com/Sharktheone/arch-mojo/main/src/install.py) --dir=/tmp/arch-mojo

Fedora Installation

First install modular with the official instructions Modular

python <(curl -sSL https://raw.githubusercontent.com/Sharktheone/arch-mojo/main/src/install.py) --fedora

Options:

Install mojo globally:
python <(curl -sSL https://raw.githubusercontent.com/Sharktheone/arch-mojo/main/src/install.py) --global --fedora

Change working directory:

python <(curl -sSL https://raw.githubusercontent.com/Sharktheone/arch-mojo/main/src/install.py) --dir=/tmp/arch-mojo --fedora

Missing shared libs

You might get an error about a missing shared library libpanel.so.6 when mojo is self testing. That's because modular and python ignores the LD_LIBRARY_PATH environment variable. If you use mojo itself it should be set (after you restarted your terminal). If not add it to your .bashrc or .zshrc:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.local/lib/arch-mojo