Installation
Confirmed Goby runs on Mac OS and Linux for now. Try Goby on Windows and let us know the result.
Via Homebrew (binary installation for Mac OS)
Note: Please check the latest release before installing Goby via Homebrew
brew tap goby-lang/goby
brew install goby
In the case, $GOBY_ROOT
is automatically configured.
From Source
Try this if you'd like to contribute Goby! Skip 1 if you already have Golang in your environment.
- Prepare Golang environment
- Install Golang >= 1.9
- Make sure
$GOPATH
in your shell's config file( like .bashrc) is correct - Add you
$GOPATH/bin
to$PATH
- Run
go get github.com/goby-lang/goby
- Set the Goby project's exact root path
$GOBY_ROOT
manually, which should be:
$GOPATH/src/github.com/goby-lang/goby
Installation on a Linux system
In order to install Go, Goby and PostgreSQL on a Linux system, see the wiki page.
Verifying Goby installation
- Run
goby -v
to see the version. - Run
goby -i
to launch igb REPL. - Type
require "uri"
in igb.
FYI: You can just run brew test goby
to check Homebrew installation.
If you have any issue installing Goby, please let us know via Github issues
Using Docker
Goby has official docker image as well. You can try the Plugin System using docker.
Packaging Goby
Goby searches the standard library files (lib/**/*.gb
, in the source tree) by default in the lib/
subdirectory, relative to the Goby binary (goby
).
Language interpreter packages usually have entirely separate paths for the interpreter binary and the standard library files. When packaging Goby, it's possible to use the $GOBY_LIBPATH
environment variable to specify the standard library files search path of the compiled binary.
For example:
GOBY_LIBPATH=/usr/lib/goby-0.1.9/lib make build
will compile a binary which will search standard library files in /usr/lib/goby-0.1.9/lib
.