Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

Executable commands shown on this page should be run in a terminal emulator on macOS or Linux. This process has not been tested on Windows, but will likely work the same way, especially when using Windows Subsystem for Linux.

Prerequisites

Ybixo requires:

  • Git to clone the compiler's source code
  • Ruby (version 3.4 or later) to run the programs produced by the Ybixo compiler
  • Rust (version 1.65 or later) to build the compiler itself
    • Cargo, the build tool for Rust, which will be installed alongside Rust

Installation steps

  1. Install Ruby: https://www.ruby-lang.org/en/downloads/

  2. Install Rust: https://rust-lang.org/tools/install/

  3. Clone the Ybixo Git repository:

    $ git clone https://github.com/ybixo/ybixo.git
    
  4. From inside the newly cloned repository, execute:

    $ cargo install --path .
    

    Note the trailing . at the end of that command.

    This will build the compiler and place it in Cargo's bin directory, which you should add to your PATH environment variable as described in the installation instructions for Rust.

  5. The Ybixo compiler is now available. Try executing:

    $ obc --help