astroband / ruby-stellar-base

The stellar-base library is the lowest-level stellar helper library. It consists of classes to read, write, hash, and sign the xdr structures that are used in stellar-core
Apache License 2.0
22 stars 19 forks source link

libsodium on ubuntu #10

Closed FredericHeem closed 8 years ago

FredericHeem commented 9 years ago

Is there any special intructions on how to install libsodium on ubuntu 14.04 ?

~/ruby-stellar-base$ ruby examples/low_level_transaction_post.rb 
/home/fred/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/ffi-1.9.10/lib/ffi/library.rb:133:in `block in ffi_lib': Could not open library 'sodium': sodium: cannot open shared object file: No such file or directory. (LoadError)
Could not open library 'libsodium.so': libsodium.so: cannot open shared object file: No such file or directory

However, libsodium.so is present:

 ~/.rbenv$ find -name "libsodium.so"
./versions/2.2.0/lib/ruby/gems/2.2.0/gems/rbnacl-libsodium-1.0.3/vendor/libsodium/dist/lib/libsodium.so
./versions/2.2.0/lib/ruby/gems/2.2.0/gems/rbnacl-libsodium-1.0.3/vendor/libsodium/src/libsodium/.libs/libsodium.so
nullstyle commented 9 years ago

This should probably be an issue for https://github.com/cryptosphere/rbnacl-libsodium, or perhaps rbenv.

You can see a similar issue here: https://github.com/cryptosphere/rbnacl-libsodium/issues/3