wabarc / archive.is

A command-line tool and Go package for wayback web pages to archive.today
GNU General Public License v3.0
35 stars 4 forks source link

Make the documentation more verbose #3

Closed iaeiou closed 3 years ago

iaeiou commented 3 years ago

Hi there,

I've tried to install on Debian 10 but failed. Here is what I tried:

sudo apt install golang-go
go get github.com/wabarc/archive.is
archive.org google.fr

The output:

archive.org: unknown command

Another try:

go archive.org google.fr
go archive.org: unknown command
Run 'go help' for usage.

Do you have any hint? (I'm completely new to Go)

Thank you

waybackarchiver commented 3 years ago

It looks like that missing bin path of Golang in the PATH environment variable, try to add it:

export PATH=$PATH:$HOME/go/bin

and try:

archive.is http://google.fr

Maybe got the result is http://archive.is => Archive.today is unavailable., the FAQ might help.

iaeiou commented 3 years ago

Hi, I gave another try

go get github.com/wabarc/archive.is

output:

# github.com/wabarc/helper
../../go/src/github.com/wabarc/helper/file.go:34:12: undefined: strings.ReplaceAll

at this point I don't have any bin folder in ~/go (I only get ~/go/src), I've added the whole ~/go to the Path:

export PATH=$PATH:$HOME/go

Still, no success:

archive.is https://www.google.com https://www.bbc.com

output:

bash: archive.is: command not found

I guess I miss a build step, maybe the Readme could give some instructions/hints about that?

Anyway, I'm using the releases now, and I'm fine with it

waybackarchiver commented 3 years ago

@iaeiou Thanks for your feedback!

I installed Go from Debian apt source, and got the Go version 1.11, but the project required above Go 1.12.

I will add the required min version to README soon.

iaeiou commented 3 years ago

I installed Go from Debian apt source, and got the Go version 1.11

Confirmed:

$ go version
go version go1.11.6 linux/amd64