Support #865
Install Hydra on FreeBSD
Description
This is a guide for setting up a Hydra OAuth2 server on FreeBSD 10.
Prepare the Environment¶
- Make sure the system is up to date:
pkg update && pkg upgrade
- Create a GOPATH folder:
mkdir ~/go
- Install a couple dependencies:
pkg install go git
- Edit the .cshrc file:
vi ~/.cshrc
- Set the GOROOT and Go bin for the environment:
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin /usr/local/go/bin /home/bob/go/bin) setenv GOROOT /usr/local/go setenv GOPATH $HOME/go source ~/.cshrc
- Set the GOROOT and Go bin for the environment:
Install Hydra¶
- Download and install Hydra and Glide:
go get github.com/ory-am/hydra go get github.com/Masterminds/glide cd $GOPATH/src/github.com/ory-am/hydra glide install go install github.com/ory-am/hydra
- Test hydra:
hydra