Install
Via Homebrew
Section titled “Via Homebrew”On Linux, macOS and WSL, you can install Pen through Homebrew.
-
Install Homebrew.
-
Run the following command in your terminal.
Terminal window brew install pen-lang/pen/pen
Now, you should be able to run a pen command in your shell.
pen --versionBuilding from source
Section titled “Building from source”You can also build Pen from source on your local machine.
-
Install the following software using a package manager of your choice (e.g.
aptfor Ubuntu and Homebrew for macOS.) -
Install Turtle.
Terminal window cargo install turtle-build# Or, via Homebrew,brew install pen-lang/pen/turtle -
Clone the Git repository.
Terminal window git clone https://github.com/pen-lang/pen -
Run a
cargocommand in the repository’s directory.Terminal window cargo install --path cmd/pen -
Set a
PEN_ROOTenvironment variable to the directory.Terminal window export PEN_ROOT=<directory>
Now, you are ready to use the pen command built manually.