See: https://docs.modular.com/mojo/manual/get-started
For this experiment, I just used the pixi package manager that they recommended. See other repo where I experimented.
Some prerequisites:
sudo apt-get update
sudo apt-get install build-essential # Required for mojo to build
# Otherwise building will fail with: /usr/bin/ld: cannot find Scrt1.o: No such file or directory Make sure pixi is installed and enter the venv with
pixi shellI ran mojo hello_world.mojo which behaves similar to python and performs just-in-time compilation.
I can compile it into an executable:
mojo build hello_world.mojo
./hello_world