kellegous / go

Another Google-like Go short link service
MIT License
583 stars 122 forks source link

Installation Problems #25

Open garthwebb opened 4 years ago

garthwebb commented 4 years ago

I tried using the installation directions on a Raspberry Pi (running stretch) and it did not work:

$ GOPATH=`pwd` go install github.com/kellegous/go
can't load package: package github.com/kellegous/go: cannot find package "github.com/kellegous/go" in any of:
...

I then cloned the repo and tried using the Makefile. First run of make found several problems with sass:

Next closure-compiler does not seem to be the binary for any closure compiler I could find. I installed google-closure-compiler and updated the binary name to that.

kellegous commented 4 years ago

I need to update the README, the correct installation command is:

GOPATH=`pwd` go get github.com/kellegous/go/cmd/go
garthwebb commented 4 years ago

Hi, thanks for the quick response. I tried that and I get:

$ GOPATH=`pwd` go get github.com/kellegous/go/cmd/go
src/github.com/kellegous/go/vendor/google.golang.org/api/transport/http/dial.go:20:2: no buildable Go source files in /home/garth/src/github.com/kellegous/go/vendor/google.golang.org/api/transport/http/internal/propagation

Looking in that directory, I do see a *.go file, so not sure what it doesn't like (I'm not very familiar with go):

$ ls -l  src/github.com/kellegous/go/vendor/google.golang.org/api/transport/http/internal/propagation
total 4
-rw-r--r-- 1 garth garth 2460 Jan 20 23:26 http.go
garthwebb commented 4 years ago

Ok guessing its because it wants go 1.8+ and the latest apt-get version is 1.7.4:

$ go version
go version go1.7.4 linux/arm
mfickett commented 4 years ago

Hello, Xoogler here missing go links. I'm also having trouble getting this running. I tried:

# from the comment above
% GOPATH=`pwd` go get github.com/kellegous/go/cmd/go
$GOPATH/go.mod exists but should not
# from the README
% GOPATH=`pwd` go install github.com/kellegous/go
$GOPATH/go.mod exists but should not
% go version
go version go1.14 darwin/amd64
mfickett commented 4 years ago

I was able to run the Docker container:

git clone https://github.com/kellegous/go.git
cd go
docker image build -t kellegous-go:1.0 .
docker container run --publish 8067:8067 --detach --name go kellegous-go:1.0

Then hit localhost:8067. And to clean up, docker container rm --force go.

natlefiyr commented 4 years ago

Looks like @jonathangarelick may have found this as well given that he updated the README, but for clarity's sake I was also able to run this using the newest command, but just on my computer (not a Raspberry pi per the original post; note that $ just indicates the shell prompt):

$ GOPATH=`pwd` go get github.com/kellegous/go/cmd/go
$ bin/go

I checked inside the go.mod file and see that it references golang 1.13, so you probably need at least that version. Mine worked fine with go1.14.4:

$ go version
go version go1.14.4 linux/amd64

Then hit localhost:8067 (i.e. put that as the URL in your browser, e.g. try localhost:8067/links etc.). (To clean up, I did ps fux | grep go in another shell and then kill $pid.)

Also, possibly overly specific information, but I was doing this on a Ubuntu WSL shell, and to get golang version 1.14.4 I followed this: https://medium.com/@benzbraunstein/how-to-install-and-setup-golang-development-under-wsl-2-4b8ca7720374. This also set the GOROOT, GOPATH, and PATH environment variables, which could have helped also.

teraflik commented 2 years ago

Was able to successfully install it on Ubuntu 18.04 and go1.18.3 using:

go install github.com/kellegous/go/cmd/go@latest
akashchouhan16 commented 1 year ago

Windows machines with Go v1.17 and above could use.

$ go version
go version go1.17.2 windows/amd64

To install:

go get -u github.com/kellegous/go/cmd/go@latest 

OR

go install github.com/kellegous/go/cmd/go@latest 
slice-nishantk commented 11 months ago

I am trying to setup golink service at my company. However, I'm not clear on how to configure the DNS settings to be able to open links using https://go/short-link. I've configured go.mycompany.com using AWS Route 53. But how to redirect go to go.mycompany.com?

My company uses Tunnelblick VPN (if that matters).