hyperledger-iroha / iroha-dco

Iroha - A simple, decentralized ledger
http://iroha.tech
Apache License 2.0
988 stars 297 forks source link

How to install runtime library #1295

Closed walkero closed 6 years ago

walkero commented 6 years ago

I use libhrohajava.so at my java client machine(ubuntu), How to install other libhrohajava.so dependent dynamic link library?

thanks

l4l commented 6 years ago

What do you mean by "other dependent dynamic link library"? If you mean .class files generated by swig, you may just copy them as is you copied libirohajava.so If you mean other .so libraries (like protobuf&boost), then they either should be installed in your system or placed in external folder. Take a look at the list of such libs by ldd path/to/libirohajava.so

walkero commented 6 years ago

@l4l thank you i will try ldd path/to/libirohajava.so then solve my problem.

l4l commented 6 years ago

closing then

walkero commented 6 years ago

hi, @l4l

How to install libed25519.so.1.2.2 ? Can i download libed25519 from internet, or use apt-get install some library(libed25519)?

ldd libirohajava.so 
    linux-vdso.so.1 =>  (0x00007ffd09d63000)
    libprotobuf.so => /usr/local/lib/libprotobuf.so (0x00007ff3af54c000)
    libed25519.so.1.2.2 => /usr/local/lib/libed25519.so.1.2.2 (0x00007ff3af339000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff3aefb7000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff3aecae000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff3aea98000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff3ae6ce000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff3ae4b1000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff3ae297000)
    /lib64/ld-linux-x86-64.so.2 (0x00007ff3b0246000)

thanks

walkero commented 6 years ago

hi I find libed25519.so.1.2.2 file in iroha docker container, and copy this file together with libirohajava.so.

thanks

l4l commented 6 years ago

libed25519 goes from this repo: https://github.com/hyperledger/iroha-ed25519 And it is built with the iroha (or might be compiled&installed at the system as standalone library)

walkero commented 6 years ago

@l4l thank you very much.