Getting Started

Let's get started using caboose!

OS Packages

Debian/Ubuntu:

To install Caboose on Debian or Ubuntu, wget the latest release DEB, and install it with dpkg.

$ wget -O caboose.deb https://github.com/CabooseLang/Caboose/releases/download/<VERSION>-r<REVISION>/Caboose-<VERSION>-Linux.deb
$ sudo dpkg -i ./caboose.deb

CentOS/Fedora:

To install Caboose on CentOS or Fedora, curl the latest RPM package, and install it with rpm.

$ curl -sL https://github.com/CabooseLang/Caboose/releases/download/<VERSION>-r<REVISION>/Caboose-<VERSION>-Linux.rpm > caboose.rpm
$ sudo rpm -i caboose.rpm

Mac OSX:

To install Caboose on MacOS, download the latest DMG from here, and install it as usual (you should be able to tell I know nothing about a Mac).

Building the Interpreter

Caboose is fairly new so we haven't had the time to package it for different OSes yet, therefore you will have to build it from source. This has changed! If you want to use a native OS package, you can!

$ git clone https://github.com/CabooseLang/Caboose.git
$ cd Caboose
$ bash build.sh # Uses CMake to build the executable

Building requires the latest CMake on your system path.

To run some Caboose code:

$ ./build/caboose # For the REPL
$ ./build/caboose /path/to/your/code.cb # For a file

Installing the Self-Built Caboose Interpreter

If you want to run caboose from any directory, you can install it. First, go into the build directory, then run this command:

make install