Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Sharktheone/arch-mojo
Install Mojo on Arch
https://github.com/Sharktheone/arch-mojo
Last synced: 27 days ago
JSON representation
Install Mojo on Arch
- Host: GitHub
- URL: https://github.com/Sharktheone/arch-mojo
- Owner: Sharktheone
- Created: 2023-09-13T20:16:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-16T22:14:16.000Z (7 months ago)
- Last Synced: 2024-05-16T23:29:19.424Z (7 months ago)
- Language: Python
- Size: 86.9 KB
- Stars: 78
- Watchers: 4
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mojo - arch-mojo - Script to install Mojo on ArchLinux. (🛠️ Development Tools / Advent of Code 2023)
README
# 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.
```bash
python <(curl -sSL https://raw.githubusercontent.com/Sharktheone/arch-mojo/main/src/install_libs.py)
```### Options:
Change working directory:
```bash
python <(curl -sSL https://raw.githubusercontent.com/Sharktheone/arch-mojo/main/src/install_libs.py) --dir=/tmp/arch-mojo
```## Fedora Installation
First install modular with the official instructions [Modular](https://developer.modular.com/download)
```bash
python <(curl -sSL https://raw.githubusercontent.com/Sharktheone/arch-mojo/main/src/install_libs.py) --fedora
```### Options:
Change working directory:
```bash
python <(curl -sSL https://raw.githubusercontent.com/Sharktheone/arch-mojo/main/src/install_libs.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`:```bash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.local/lib/arch-mojo
```