From c0c2dc415175d2db72a788ea8b7a3e2ae2ab4f6a Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Wed, 17 Jun 2020 09:18:07 +0300 Subject: [PATCH] You have to link against libdl on Linux Otherwise there will be linking error because rocksdb is importing ```dlclose```, ```dlopen``` and other functions from libdl.so. --- docs/build.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/build.md b/docs/build.md index 95142071..84f2ca55 100644 --- a/docs/build.md +++ b/docs/build.md @@ -218,7 +218,7 @@ Setup variables for gorocksdb: https://github.com/tecbot/gorocksdb ``` export CGO_CFLAGS="-I/path/to/rocksdb/include" -export CGO_LDFLAGS="-L/path/to/rocksdb -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4" +export CGO_LDFLAGS="-L/path/to/rocksdb -lrocksdb -lstdc++ -lm -lz -ldl -lbz2 -lsnappy -llz4" ``` Install ZeroMQ: https://github.com/zeromq/libzmq