Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
GoLearn is a Go library that's relatively standard apart from a few optional C dependencies. To install it, you'll need to install Go 1.4 or later first.
- You'll need to have a compatible compiler installed (to check, run
g++in your terminal.)
- GoLearn uses Gonum's BLAS wrapper, which requires OpenBLAS or similar to be installed. Follow these installation instructions, which are os-specific and may require you to install a C library.
Installing GoLearn's internal dependencies
After installing go and the system dependencies, type
go get -t -u -v github.com/sjwhitworth/golearn
Completing the installation
Run the following to complete installation.
cd $GOPATH/src/github.com/sjwhitworth/golearn go get -t -u -v ./...
On Linux and Mac OS X, you can verify that Go is installed correctly via your terminal. Try compiling the example program to verify that your installation is working correctly.
go directory must exist in your home directory and be writeable.
If it isn't, type
cd && mkdir go to create it.
PATH variables must be set correctly.
- To verify, type
$GOPATHvariable should include your
$GOROOT, plus a
bin/directory. For example, if
$GOROOTis set to
$GOPATHshould be set to
- To make sure that these variables are setup correctly, add
export PATH=$PATH:$GOROOT/binto your Bash configuration file.
|Operating Systems||Mac OS X 10.8
|Next revision||On version upgrade|
Mac OS X 10.8
- BLAS installation via HomeBrew has not been confirmed working.