input-output-hk / cardano-sl

Cryptographic currency implementing Ouroboros PoS protocol
Apache License 2.0
3.76k stars 631 forks source link

Linux compilation error - librocksdb.so.5.10 #2144

Open egalion opened 6 years ago

egalion commented 6 years ago

Hello, I'm compiling on Ubuntu 16.04 64-bit.

I follow the install instructions and at the command:

./scripts/build/daedalus-bridge.sh

I get the following error:

cardano-sl-db-1.0.3: build (lib)
Preprocessing library cardano-sl-db-1.0.3...
[ 5 of 13] Pos.DB.Pure
<command line>: can't load .so/.DLL for: /home/slex29/programs/cardano-sl/.stack-work/install/x86_64-linux/lts-9.1/8.0.2/lib/x86_64-linux-ghc-8.0.2/libHSrocksdb-haskell-1.0.0-ASh627zSIahH8QxTbLrgnb-ghc8.0.2.so (librocksdb.so.5.10: cannot open shared object file: No such file or directory)

I have compiled rocksdb with make shared_lib. When I use the command ls /usr/local/lib/librocksdb* -s I get the following:

373588 /usr/local/lib/librocksdb.a        
0 /usr/local/lib/librocksdb.so.5     
109548 /usr/local/lib/librocksdb.so.5.10.0
0 /usr/local/lib/librocksdb.so       
0 /usr/local/lib/librocksdb.so.5.10
h4ck3rm1k3 commented 6 years ago

do you need the user local version or can you not use the standard package? I am using librocksdb5.8_5.8.7-1_amd64.deb from debian sid on debian, maybe you can find a deb for ubuntu?