Installing
Download binary
You can download the brainz
binary from the
latest release.
There are 4 different OSes available:
- x86_64-unknown-linux-musl
(
x86_64-unknown-linux-musl
) - x86_64-apple-darwin
(
x86_64-apple-darwin
) - x86_64-pc-windows-msv
(
x86_64-pc-windows-msv
) - armv7-unknown-linux-gnueabihf
(
armv7-unknown-linux-gnueabihf
)
To install on other OSes, you can install from cargo or download the source code and compile it yourself.
After, just unzip and use the brainz
or brainz.eze
file to run your programs. You can
also move the binary downloaded into your
bin directory.
Then, you can just check your installation:
# Check your installation.
./brainz --version # Or ./brainz.exe if you are on windows
# If you put the binary in your bin directory
brainz --version
Install from cargo
If you have cargo (and rust), you can install brainease for your operating system with:
# Cargo is the Rust package manager.
cargo install brainease
# Check your installation
brainz --version
Install from source
As the brainease interpreter and compiler are written in Rust, to install them from source
you need to also have Rust
and Cargo
installed.
Then, you can just follow these steps:
# Clone the repository
git clone https://github.com/arthurfiorette/brainease ~/.brainease
# Cd into the repository
cd ~/.brainease
# Build the binary
cargo build --release
# Copy the binary to your bin directory
cp ./target/release/brainz /usr/local/bin/brainz
# Apply the executable permissions
sudo chmod +x /usr/local/bin/brainz
# Check your installation
brainz --version