Sean-Der / fail2rest

REST server for fail2ban
107 stars 24 forks source link

[SOLVED] Error installing (sqlite3) #15

Closed Deepcuts closed 10 years ago

Deepcuts commented 10 years ago

Hello,

After issuing "go install -v github.com/Sean-Der/fail2rest" I get the error:

"sqlite3.go:157[/tmp/go-build197093546/github.com/mattn/go-sqlite3/_obj/sqlite3.cgo1.go:115]: function ends without a return statement"

Any clue how to get past this?

Thank you

Sean-Der commented 10 years ago

What version of Go are you using? go version is the easiest way to find out.

I remember reading somewhere that go-sqlite3 is broken on early versions of go, try upgrading if your using pre 1.3

Deepcuts commented 10 years ago

Using go version go1 Will update and check back.

Sean-Der commented 10 years ago

Hi @Deepcuts any word on this?

Deepcuts commented 10 years ago

To fix my issue the following did the trick: (Ubuntu 12.04)

sudo apt-get install python-software-properties sudo add-apt-repository ppa:duh/golang sudo apt-get update sudo apt-get install golang

Thank you