Giter VIP home page Giter VIP logo

Comments (16)

zjshen14 avatar zjshen14 commented on August 15, 2024

This is because you've not setup LD_LIBRARY_PATH. libsect283k1_ubuntu.so isn't in a standard shared lib dir. See http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html.

BTW, be aware that the lib will still not work for you because you're in centos instead of ubuntu. We've not supported centos yet.

from iotex-core.

jerkyrs avatar jerkyrs commented on August 15, 2024

where do i get this library from? i appreciate that it won't work on Centos7 but the container i assume should have this library installed. Is this library custom or is it provided by Ubuntu repositories? I do not see much reference outside of this project

from iotex-core.

zjshen14 avatar zjshen14 commented on August 15, 2024

Yes, this is our custom library.

from iotex-core.

jerkyrs avatar jerkyrs commented on August 15, 2024

is it available on a repository somewhere, a bit stuck without it.

from iotex-core.

zjshen14 avatar zjshen14 commented on August 15, 2024

It's under <project_root>/crypto/lib/libsect283k1_ubuntu.so

from iotex-core.

jerkyrs avatar jerkyrs commented on August 15, 2024

I only see Header files here, is there C file to compile to Shared library? I assume i would need to do something like the following assuming i had the C

gcc -c sect283k1.c -fPIC
ld -shared --soname libsect283k1_centos.so sect283k1.o

from iotex-core.

jerkyrs avatar jerkyrs commented on August 15, 2024

So temporary work around

export LD_LIBRARY_PATH=/go/src/github.com/iotexproject/iotex-core/crypto/lib/:$LD_LIBRARY_PATH
iotex-server -config /etc/iotex/config.yaml -log-path /var/log/iotex/server.log &

We can set this in Dockerfile ENV

ENV LD_LIBRARY_PATH=/go/src/github.com/iotexproject/iotex-core/crypto/lib/:$LD_LIBRARY_PATH

from iotex-core.

zjshen14 avatar zjshen14 commented on August 15, 2024
  1. for make run, please wait for the fix tonight
  2. Dockerfile doesn't need setting LD_LIBRARY_PATH

from iotex-core.

zjshen14 avatar zjshen14 commented on August 15, 2024

The problem should have been fixed. make run should work from project root dir (mac os and ubuntu). Feel free to reopen the issue if you find it's not.

from iotex-core.

jerkyrs avatar jerkyrs commented on August 15, 2024

How can i compile the library for centos, are we missing the C files. It works as expected now for Docker container i can start iotex-server without shared library.

from iotex-core.

zjshen14 avatar zjshen14 commented on August 15, 2024

It works as expected now for Docker container i can start iotex-server without shared library.

You're actually using the shared library. You don't need to setup LD_LIBRARY_PATH because we cp the library to the standard path.

from iotex-core.

jerkyrs avatar jerkyrs commented on August 15, 2024

How can i build it for Centos though ?

from iotex-core.

zjshen14 avatar zjshen14 commented on August 15, 2024

We currently only ship the library binary, so that you're not able to build it on centos. We're still testing it with different linux distributions.

from iotex-core.

jerkyrs avatar jerkyrs commented on August 15, 2024

i assume sect283k1 is your lightweight ECC implementation ?

from iotex-core.

wyh136 avatar wyh136 commented on August 15, 2024

copy /go/src/github.com/iotexproject/iotex-core/crypto/lib/ibsect283k1_ubuntu.so /usr/lib
make run

problem solved.

from iotex-core.

jerkyrs avatar jerkyrs commented on August 15, 2024

@wyh136 bit of a hack but yes that will work, if you get any updates to this library in future you need to ensure you are using latest version so that should be done within your build, Iotex actually have a working Docker image (sort of most recent has bug)

From Dockerfile

 cp $GOPATH/src/github.com/iotexproject/iotex-core/crypto/lib/libsect283k1_ubuntu.so /usr/lib/ 

As this is part of Dockerfile it is updated each time you pull latest and re-run docker build

from iotex-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.