I found a solution that solved my problem, now using FreeBSD 11.1 x86_64
Nginx Reverse Proxy and Golang Setup on FreeBSD Source: https://www.vultr.com/docs/nginx-reverse-proxy-and-golang-setup-on-freebsd Requirements Basic knowledge of UNIX. FreeBSD x64 with Nginx installed. Install Tools You will need several programs that are not shipped with FreeBSD. Run the following command to install them: pkg install nano wget git mercurial bzr Download and Install Golang Download golang by running the following set of commands: cd /tmp wget https://storage.googleapis.com/golang/go1.3.3.freebsd-amd64.tar.gz tar -C /usr/local -xzf go1.3.3.freebsd-amd64.tar.gz Setup Environment Variables Create a variable called GOPATH (which will be the location for installed packages) and add it to your path: mkdir ~/.gopkg setenv GOPATH /root/.gopkg set path = ($path /usr/local/go/bin /root/.gopkg/bin) If you want to have the path set on boot, then run the following command to add it to your .cshrc: echo "setenv GOPATH /root/.gopkg" >> ~/.cshrc echo "set path = ($path /usr/local/go/bin /root/.gopkg/bin)" >> ~/.cshrc Verify Installation Run go in your terminal. If you are presented with a list of options, then the installation was successful. Run the following command to install a web framework called Martini: go get github.com/go-martini/martini If you don't see any errors, then you may proceed to the next step. Setup Martini Create a file called server.go and populate it with the following lines of code: package main import "github.com/go-martini/martini" func main() { m := martini.Classic() m.Get("/", func() string { return "Hello from Vultr VPS :)!" }) m.Run() } When done, save and run go run server.go. Provided that you do not see any errors on your terminal, then you can proceed to the next step. @firebitsbr Em domingo, 22 de dezembro de 2013 03:00:02 UTC-2, Mauro Risonho de Paula Assumpção escreveu: > > I'm trying to use and compile programs made in golang on freebsd 9.2 and > 10.0 rc1, but I'm problems setting variables and GOROOT GOPATH environment. > > I'm trying to use command: > > export > setenv > > But, unsuccessfully. > > Has anyone managed to solve this? > > @firebitsbr > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.