Monero Mining with CPUMiner-Multi On Centos 7

  • 9
  •  
  • 2
  •  
  •  
  •  
  •  
  •  
    11
    Shares

Update: Please see these articles for a better way to mine Monero on CPUs

This guide will show you how to compile CPUMiner-Multi on Centos 7 for mining Monero.

First lets install the packages needed:

yum groupinstall "Development Tools"

yum install curl-devel openssl-devel git screen

screen

cd /usr/local/src/

git clone https://github.com/tpruvot/cpuminer-multi.git

cd cpuminer-multi

./autogen.sh

./configure CFLAGS="-march=native" --with-crypto --with-curl

./build.sh

Now all that is left is to run the cpuminer command. You can use the following: (Be sure you change the XMR address to your own, unless you want to mine for me :))

./cpuminer -a cryptonight -o stratum+tcp://pool.usxmrpool.com:3333 -u 46dpA9N1KDE9yERcSGASXPUyA4ga1GrPq5sDXqwwjQL2dAmf5kvgpNQUWdvyT1r55pfwfvuBn2h7YQPhZFYdWtjWUVUTobh -p x

If you found this helpful, consider a donation!

Results on one of our 32 core servers:

 

Happy mining!

1 1 vote
Article Rating

  • 9
  •  
  • 2
  •  
  •  
  •  
  •  
  •  
    11
    Shares
Subscribe
Notify of
guest
22 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Ivan
Ivan
2 years ago

When I come to the last step ./build.sh I get error:
configure: error: C compiler cannot create executables
See `config.log’ for more details
/bin/sh ./config.status –recheck
/bin/sh: ./config.status: No such file or directory
make: *** [config.status] Error 127
strip: ‘cpuminer’: No such file

lord
2 years ago
Reply to  CC Freak

I also get the error:

configure: error: C compiler cannot create executables
See `config.log’ for more details.
/bin/sh ./config.status –recheck
/bin/sh: ./config.status: No such file or directory
make: *** [config.status] Error 127
strip: ‘cpuminer’: No such file

disqus_OoBEYPgmf1
2 years ago
Reply to  lord

just do a ‘make’ instead of using build.sh.. or do a ./configure –with-curl –with-crypto and then ‘make’

candroid
2 years ago

thank you for the tutorial, but when I tried to step the last message appears : “bash: ./cpuminer: No such file or directory”. What’s wrong ? the order is right and appropriate that you explain here. What is the solution then ? . Thank you

note: i use Vps vultr

Rodrigo
Rodrigo
2 years ago
Reply to  candroid

use sudo at the beggining

Fabiano
3 years ago

Muito obrigado, me ajudou muito, já esta funcionando no meu Centos 7, como gratidão vou deixar um tempo minerando para sua wallet. 😉

Willian Mazzardo
Willian Mazzardo
2 years ago

Hi … where do I change to miner into my wallet? Is the -u parameter?

Guillermo Rey
Guillermo Rey
2 years ago

Where can i set up my user account (-u)?

Alpha
Alpha
2 years ago

This works great

Chetan Vora
Chetan Vora
2 years ago

Stratum connection failed: Failed connect to pool.usxmrpool.com:3333; Connection refused

Milo
Milo
2 years ago
Reply to  Chetan Vora

Try another pool, like monerohash.com.

Pankaj Kumar
2 years ago

Hi, I did the setup accordingly and i am getting the details like [2018-01-01 14:01:56] CPU #2: 27.14 H/s [2018-01-01 14:01:56] accepted: 3740/3740 (diff 0.000), 106.46 H/s yes! [2018-01-01 14:02:05] CPU #0: 28.03 H/s [2018-01-01 14:02:05] accepted: 3741/3741 (diff 0.000), 108.78 H/s yes! [2018-01-01 14:02:10] accepted: 3742/3742 (diff 0.000), 110.39 H/s yes! [2018-01-01 14:02:14] CPU #3: 27.64 H/s [2018-01-01 14:02:14] accepted: 3743/3743 (diff 0.000), 111.26 H/s yes! [2018-01-01 14:02:18] accepted: 3744/3744 (diff 0.000), 109.89 H/s yes! [2018-01-01 14:02:28] CPU #1: 27.27 H/s [2018-01-01 14:02:56] CPU #2: 26.96 H/s [2018-01-01 14:03:12] CPU #0: 27.95 H/s [2018-01-01 14:03:13] CPU #2: 26.49 H/s… Read more »

MohaBassam
MohaBassam
2 years ago

Hi, Thanks for the tutorial it was very helpful
but if I am using exodus wallet what will be the pool address??

Rafael
Rafael
2 years ago

Watch out!
The source code is infected with trojan horse, you know?

Sree
Sree
2 years ago

I’m receiving segmentation fault when running the miner
########

Using JSON-RPC 2.0
[2018-02-15 01:17:40] CPU Supports AES-NI: NO
[2018-02-15 01:17:40] Starting Stratum on stratum+tcp://xmr.poolto.be:2999
[2018-02-15 01:17:40] 2 miner threads started, using ‘cryptonight’ algorithm.
[2018-02-15 01:17:41] Stratum difficulty set to 2500
Segmentation fault

Nick
Nick
2 years ago

HI!

When I close the remote terminal mining process also closed too, so how should I do

SAV
SAV
1 year ago
Reply to  Nick

You have to use screen.