Comments (16)
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.
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.
Yes, this is our custom library.
from iotex-core.
is it available on a repository somewhere, a bit stuck without it.
from iotex-core.
It's under <project_root>/crypto/lib/libsect283k1_ubuntu.so
from iotex-core.
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.
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.
- for
make run
, please wait for the fix tonight - Dockerfile doesn't need setting
LD_LIBRARY_PATH
from iotex-core.
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.
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.
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.
How can i build it for Centos though ?
from iotex-core.
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.
i assume sect283k1 is your lightweight ECC implementation ?
from iotex-core.
copy /go/src/github.com/iotexproject/iotex-core/crypto/lib/ibsect283k1_ubuntu.so /usr/lib
make run
problem solved.
from iotex-core.
@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)
- Archive mode related RPC return wrong result
- Must have
- CI result conflicts HOT 2
- [evm] enable transient storage feature
- verify mainnet's genesis hash HOT 1
- add ioctl command for delegate endorsement
- Optimize indexer interface
- debug_traceTransaction reverted HOT 2
- Support for callTracer in debug_traceTransaction
- "Failed to get code hash. " message
- [ioctl] update ws project format
- Implement HeaderByHeight in filedao HOT 2
- Add transaction hash to the EVM logs
- Cannot restake to larger duration in native staking
- start a new PoS chain from zero with iotex-core
- Accounting whether the node height is behind in readiness on API node
- verify the integrity of trie.db.patch
- ioctl update not working properly for masOS HOT 1
- Candidate State Manager and Candidate State Reader
- TestCandidateTransferOwnership failing on macOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iotex-core.