IoTone / TheShellProject

The Shell Project aims to build a viable general purpose blockchain written in Dlang, with attributes of security, ease of deployment, clear specification, ease of use for DAPPs, and multiple implementation interop
1 stars 1 forks source link

Fix libsodium integration #43

Closed truedat101 closed 6 years ago

truedat101 commented 6 years ago

Demios doesn't ship binaries, but building with autotools makes me want to cry because they are brittle and often just don't work everywhere. Either - prebuild for each supported platform (probably the answer) or switch to new build system.

truedat101 commented 6 years ago

And the problem identified in #41 is that libsodium wrapper from demios doesn't provide a library prebuilt as it does for windows.

truedat101 commented 6 years ago

I think this is resolved. The LD_LIBRARY_PATH needs to be set. If you've installed libsodium already, you can find them under /usr/local/lib. So I would set export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

truedat101 commented 6 years ago

Verified this works with gdc on linux.

truedat101 commented 6 years ago

@pedroalvesbatista please verify this works for you.

pedroalvesbatista commented 6 years ago

./shell-d: error while loading shared libraries: libsodium.so.23: cannot open shared object file: No such file or directory

truedat101 commented 6 years ago

From the readme: https://github.com/IoTone/TheShellProject/tree/proto2-dev/shell-d/prototype#building

For libsodium, if you have built libsodium, point your LD_LIBRARY_PATH to libsodium. For a default linux install of libsodium, it would be under /usr/local/lib typically. Set: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

Can you confirm if you have LD_LIBRARY_PATH set?

pedroalvesbatista commented 6 years ago

ALL UNIT TEST RUN SUCCESSFULLY

I MIGHT TELL THATS A GREEN LIGHT, RIGHT ?

truedat101 commented 6 years ago

Ok, so this one is ok then.