1.git
go get github.com/apple/foundationdb/bindings/go/src/fdb # github.com/apple/foundationdb/bindings/go/src/fdb foundationdb/bindings/go/src/fdb/cluster.go:27:33: fatal error: foundationdb/fdb_c.h: No such file or directory compilation terminated.
2.github
https://www.foundationdb.org/download/ foundationdb-clients_5.2.5-1_amd64.deb ( checksum ) foundationdb-server_5.2.5-1_amd64.deb ( checksum )
3.vim
github.com/apple/foundationdb/bindings/go/src/fdb # github.com/apple/foundationdb/bindings/go/src/fdb In file included from ../../apple/foundationdb/bindings/go/src/fdb/database.go:27:0: /usr/include/foundationdb/fdb_c.h:35:2: error: #error Requested API version requires a newer version of this header #error Requested API version requires a newer version of this header
4.app
vim fdb_c.h查看須要的版本
#define FDB_API_VERSION 520
#include <foundationdb/fdb_c.h>ui
#if !defined(FDB_API_VERSION)
#error You must #define FDB_API_VERSION prior to including fdb_c.h (current version is 520)
#elif FDB_API_VERSION < 13
#error API version no longer supported (upgrade to 13)
#elif FDB_API_VERSION > 520
#error Requested API version requires a newer version of this header
#endifthis
5.spa
git checkout release-5.2