sqlite: updated ErrNotCompiled installation hint

Change-Id: I96a5fde5bf3d34cc29f38180272a624c353a6c4f
This commit is contained in:
Brad Fitzpatrick 2013-07-28 18:23:04 -07:00
parent 831f5c3a06
commit eb1208a12e
1 changed files with 2 additions and 2 deletions

View File

@ -47,11 +47,11 @@ func CompiledIn() bool {
return compiled
}
var ErrNotCompiled = errors.New("camlistored was not built with SQLite support. Rebuild with go get/install --tags=with_sqlite " + compileHint())
var ErrNotCompiled = errors.New("camlistored was not built with SQLite support. If you built with make.go, use go run make.go --sqlite=true. If you used go get or get install, use go {get,install} --tags=with_sqlite" + compileHint())
func compileHint() string {
if _, err := os.Stat("/etc/apt"); err == nil {
return " (Required: apt-get install libsqlite3-dev)"
return " (Hint: apt-get install libsqlite3-dev)"
}
return ""
}