Comments (7)
If the static libcurl libraries aren't in the centos package repos you'll have to compile them yourself, so that cpuminer can statically link it (instructions: https://curl.haxx.se/docs/install.html)
from cpuminer-multi.
I'm in ARM (raspberry), and I compile curl manually with :
./configure --disable-shared --enable-static
and use this for cpuminer :
./configure CFLAGS="-static" LDFLAGS="-L/usr/local/lib/libcurl.a" LIBS="-lssl -lcrypto -lssl -lcrypto -lz" CFLAGS="-DCURL_STATICLIB"
but :
file minerd :
minerd: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=a9541f017f019a12994119910c2f7a72fc427e7d, not stripped
ldd minerd :
linux-vdso.so.1 (0x7ecc4000) /usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76fa9000) libcurl.so.4 => /usr/lib/arm-linux-gnueabihf/libcurl.so.4 (0x76f20000) libssl.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libssl.so.1.0.0 (0x76ec6000) libcrypto.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0 (0x76d58000) libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x76d31000) libjansson.so.4 => /usr/lib/arm-linux-gnueabihf/libjansson.so.4 (0x76d15000) libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76cec000) libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76bab000) libidn.so.11 => /usr/lib/arm-linux-gnueabihf/libidn.so.11 (0x76b6a000) librtmp.so.1 => /usr/lib/arm-linux-gnueabihf/librtmp.so.1 (0x76b41000) libssh2.so.1 => /usr/lib/arm-linux-gnueabihf/libssh2.so.1 (0x76b1f000) libgssapi_krb5.so.2 => /usr/lib/arm-linux-gnueabihf/libgssapi_krb5.so.2 (0x76ad4000) libkrb5.so.3 => /usr/lib/arm-linux-gnueabihf/libkrb5.so.3 (0x76a20000) libk5crypto.so.3 => /usr/lib/arm-linux-gnueabihf/libk5crypto.so.3 (0x769e2000) libcom_err.so.2 => /lib/arm-linux-gnueabihf/libcom_err.so.2 (0x769cf000) liblber-2.4.so.2 => /usr/lib/arm-linux-gnueabihf/liblber-2.4.so.2 (0x769b3000) libldap_r-2.4.so.2 => /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2 (0x7695e000) /lib/ld-linux-armhf.so.3 (0x54b4b000) libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x7694b000) libgnutls-deb0.so.28 => /usr/lib/arm-linux-gnueabihf/libgnutls-deb0.so.28 (0x7683e000) libhogweed.so.2 => /usr/lib/arm-linux-gnueabihf/libhogweed.so.2 (0x76805000) libnettle.so.4 => /usr/lib/arm-linux-gnueabihf/libnettle.so.4 (0x767c5000) libgmp.so.10 => /usr/lib/arm-linux-gnueabihf/libgmp.so.10 (0x76752000) libgcrypt.so.20 => /lib/arm-linux-gnueabihf/libgcrypt.so.20 (0x766af000) libkrb5support.so.0 => /usr/lib/arm-linux-gnueabihf/libkrb5support.so.0 (0x76696000) libkeyutils.so.1 => /lib/arm-linux-gnueabihf/libkeyutils.so.1 (0x7668b000) libresolv.so.2 => /lib/arm-linux-gnueabihf/libresolv.so.2 (0x76666000) libsasl2.so.2 => /usr/lib/arm-linux-gnueabihf/libsasl2.so.2 (0x7663e000) libp11-kit.so.0 => /usr/lib/arm-linux-gnueabihf/libp11-kit.so.0 (0x765fd000) libtasn1.so.6 => /usr/lib/arm-linux-gnueabihf/libtasn1.so.6 (0x765dd000) libgpg-error.so.0 => /lib/arm-linux-gnueabihf/libgpg-error.so.0 (0x765bf000) libffi.so.6 => /usr/lib/arm-linux-gnueabihf/libffi.so.6 (0x765ae000) libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x76581000)
I tried many ways but always get the dynamic lib..help me please.
thanks a lot.
from cpuminer-multi.
Same question !
from cpuminer-multi.
when use : ./configure CFLAGS="-static"
get this error :
checking for libcurl >= version 7.15.2... yes
checking whether libcurl is usable... no
configure: error: Missing required libcurl >= 7.15.2
from cpuminer-multi.
Any idea !?
from cpuminer-multi.
any idea for static build !?
from cpuminer-multi.
checking whether le32enc is declared... no
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for getopt_long... yes
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... yes
checking for OPENSSL_init in -lcrypto... yes
checking whether __uint128_t is supported... no
checking for gawk... (cached) gawk
checking for curl-config... /usr/local/curl/bin/curl-config
checking for the version of libcurl... 7.54.1
checking for libcurl >= version 7.15.2... yes
checking whether libcurl is usable... no
configure: error: Missing required libcurl >= 7.15.2
ubs14@ubuntu14-32:~/cpuminer-multi$ ./configure --with-libcurl=/usr/local/curl LDFLAGS="-static"
compile curl by myself and set curl-config --static-libs but then..
from cpuminer-multi.
Related Issues (20)
- Update to 1.3.7 windows build
- "Make" after "autogen" and"configure" HOT 4
- can you add hmq1725 algo?
- Algorithm Crypto
- Permission Denied with ./nomacro.pl HOT 3
- Add the Minotaur algorithm [Ring (RNG)]
- DWARF error when compiling on Raspberry Pi 3 HOT 3
- Algorithms
- NEW ALGO FOR BITCORE MEGA-BTX
- When Power9 compile Assenbler error are submitted from gcc
- stratnum failed to connect error HOT 3
- rx2 compile error arm64
- Miner
- algoritm verthash
- rx2 cache error
- Connection Lost if ssh timesout. HOT 1
- Table
- Lyra2v3 and Tribus algo issue
- Trouble with bitcoind is it error, support or server issue ? HOT 1
- Stratum authentication failed error HOT 3
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 cpuminer-multi.