Bitcoin Forum
May 10, 2024, 11:05:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how to make a self compile binaries cpuminer running at other linux pc  (Read 1173 times)
anonpassport (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
January 28, 2014, 09:55:58 AM
 #1

hi, everyone, i was trouble in a problem. i want to compile cpuminer so that i can add the minning pool url, username, password into the code and make it as default.
when i was finished, it's working well on the PC which i was compiled it, but when i copy the binaries file (minerd) to the other pc and try to run it, there is and error about the dependence, both of the two pc is centos.

error message:
./minerd: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory

and then i try to find out how many dependences was lost:

[root@localhost ~]# ldd minerd
   libcurl.so.4 => not found
   libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003959e00000)
   libc.so.6 => /lib64/libc.so.6 (0x0000003959200000)
   /lib64/ld-linux-x86-64.so.2 (0x0000003958e00000)
[root@localhost ~]#

and, i try the other pc again:

[root@localhost ~]# ldd minerd
/usr/bin/checkdisk: /usr/lib64/libidn.so.11: no version information available (required by /usr/lib64/libcurl.so.4)
/usr/bin/checkdisk: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by /usr/lib64/libcurl.so.4)
/usr/bin/checkdisk: /lib64/libc.so.6: version `GLIBC_2.11' not found (required by /usr/lib64/libcurl.so.4)
/usr/bin/checkdisk: /usr/lib64/libnss3.so: version `NSS_3.12.5' not found (required by /usr/lib64/libcurl.so.4)
/usr/bin/checkdisk: /lib64/libc.so.6: version `GLIBC_2.12' not found (required by /lib64/libldap-2.4.so.2)
/usr/bin/checkdisk: /usr/lib64/libnss3.so: version `NSS_3.12.9' not found (required by /lib64/libldap-2.4.so.2)
/usr/bin/checkdisk: /usr/lib64/libnss3.so: version `NSS_3.12.5' not found (required by /lib64/libldap-2.4.so.2)
/usr/bin/checkdisk: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by /usr/lib64/libcrypto.so.10)
[root@localhost ~]#

i was follow the step below to compile it:

step1:yum install gcc make curl-devel
step2:wget http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.3.2.tar.gz
step3:tar xzf pooler-cpuminer-*.tar.gz
step4:cd cpuminer-*
step5:./configure CFLAGS="-O3"
step6:make

so, anyone can help me how to make it work well on the other centos/redhat? thanks very much.
by the way, file size of my binaries file is 290095Byte, it is less than the official file that file size is  592464Byte.
1715382344
Hero Member
*
Offline Offline

Posts: 1715382344

View Profile Personal Message (Offline)

Ignore
1715382344
Reply with quote  #2

1715382344
Report to moderator
1715382344
Hero Member
*
Offline Offline

Posts: 1715382344

View Profile Personal Message (Offline)

Ignore
1715382344
Reply with quote  #2

1715382344
Report to moderator
1715382344
Hero Member
*
Offline Offline

Posts: 1715382344

View Profile Personal Message (Offline)

Ignore
1715382344
Reply with quote  #2

1715382344
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715382344
Hero Member
*
Offline Offline

Posts: 1715382344

View Profile Personal Message (Offline)

Ignore
1715382344
Reply with quote  #2

1715382344
Report to moderator
1715382344
Hero Member
*
Offline Offline

Posts: 1715382344

View Profile Personal Message (Offline)

Ignore
1715382344
Reply with quote  #2

1715382344
Report to moderator
Smileyftw
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
January 28, 2014, 01:03:49 PM
 #2

hello anonpassport , so you need to install the dependencies
KoningKaas
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
January 28, 2014, 01:17:09 PM
 #3

Dependencies CENTOS
 sudo apt-get install -y build-essential m4 libssl-dev libdb++-dev libboost-all-dev libminiupnpc-dev git
oxfardk
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
January 28, 2014, 04:10:57 PM
 #4

Why don't you use another operating system ? something easy to use

pmconrad
Full Member
***
Offline Offline

Activity: 149
Merit: 102


View Profile WWW
January 28, 2014, 04:32:37 PM
 #5

You can simply use my linux packages: https://build.opensuse.org/package/show/home:p_conrad:coins/cpuminer

anonpassport (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
January 28, 2014, 05:28:40 PM
 #6

hello anonpassport , so you need to install the dependencies

but why we can running the official binaries file on every centos(or redhat) without install any dependencies?

thanks.
anonpassport (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
January 28, 2014, 05:29:29 PM
 #7

Dependencies CENTOS
 sudo apt-get install -y build-essential m4 libssl-dev libdb++-dev libboost-all-dev libminiupnpc-dev git


but why we can running the official binaries file on every centos(or redhat) without install any dependencies?

thanks.
anonpassport (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
January 28, 2014, 05:34:08 PM
 #8


thanks very much, but what i really want is an executable file, not an rpm file. any sugguestion? thank you.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!