mirror of https://github.com/perkeep/perkeep.git
sqlite: updated ErrNotCompiled installation hint
Change-Id: I96a5fde5bf3d34cc29f38180272a624c353a6c4f
This commit is contained in:
parent
831f5c3a06
commit
eb1208a12e
|
@ -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 ""
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue