hey guys. I'm having problem installing m-cpuminer-v2 to my Raspberry PI 3 with the error below. Appreciate some help here.
*** Error in `gcc': double free or corruption (!prev): 0x0056ab58 ***
Makefile:641: recipe for target 'm_minerd-cpu-miner.o' failed
make[2]: *** [m_minerd-cpu-miner.o] Aborted
make[2]: Leaving directory '/home/pi/m-cpuminer-v2'
Makefile:760: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/m-cpuminer-v2'
Makefile:410: recipe for target 'all' failed
make: *** [all] Error 2
Here's what I did to successfully install the m-wallet and m-cpuminer-v2 on my Raspberry Pi 3 Model B
To install m-walletsudo apt-get update
sudo apt-get upgrade
cd ~
mkdir coinmagi
cd coinmagi
git clone
https://github.com/magi-project/magi.gitcd magi/src
sudo apt-get install git build-essential libssl-dev libdb-dev libdb++-dev libgmp-dev libminiupnpc-dev libboost-all-dev libprotobuf-dev
(Read more here:
https://github.com/magi-project/magi/blob/master/doc/build-unix.md)
nano makefile.unix
Add these two lines below to the file after the line "else ifeq ($(xCPUARCH),armv6l)"
else ifeq ($(xCPUARCH),armv8l)
xCXXFLAGS+=-Ofast -mfpu=neon -mfloat-abi=hard
it should look like this after the edit:
ifeq ($(xCPUARCH),armv7l)
else ifeq ($(xCPUARCH),armv6l)
else ifeq ($(xCPUARCH),armv8l)
xCXXFLAGS+=-Ofast -mfpu=neon -mfloat-abi=hard
else
xCXXFLAGS+=-msse2
endif
make -f makefile.unix xCPUARCH=armv8l
Please be patient, it'll take some time to compile. You can ignore the warnings about typedef 'Char_type'
I prefer letting the wallet synchronize and validate all the blockchain, but it takes some time. To accelerate the process you may also download the latest block-chain data (m-block-chain.tar.gz or .zip) from:
http://coinmagi.org/bin/block-chainand extract it somewhere you prefer (I downloaded and extracted it to a USB flash drive attached to the Raspberry Pi)
Create a file named magi.conf, put it somewhere you prefer (again I put it on the USB drive) and add:
daemon=1
server=1
rpcport=8232
rpcallowip=127.0.0.1
rpcuser=rpcuser
rpcpassword=rpcpass
to the file and save it.
Finally run the server by running the following command. Wait for it to update the blockchain database (it will take some time, please be patient!)
./magid -conf=/path/to/magi.conf -datadir=/path/to/downloaded/blockchain &
To install m-cpuminer-v2cd ~/coinmagi
git clone
https://github.com/magi-project/m-cpuminer-v2.gitcd m-cpuminer-v2
sudo apt-get install libcurl4-openssl-dev libcurl4-nss-dev libgmp-dev libssl-dev libjansson-dev automake
edit Makefile.am (search for and change -march=native to -mfpu=neon)
./autogen.sh
./configure CFLAGS="-mfpu=neon -mfloat-abi=hard"
make
Please feel free to let me know if you have any problems compiling the apps.
Coin Magi's Roadmap (
https://roadmap.coinmagi.org (well it's still not on m-core.org yet)) desires to have "Easy-go installation and mPoW/mPoS mining on cost effective devices (e.g., Raspberry Pi and Pine64)" in 2018. I have been around for a while and I like coin magi and I clearly see a bright future for our coin. That's because, despite not having a GPU, I could successfully mine a few coins on my old Pentium CPU! Raspberry Pi's very low power consumption makes it a perfect platform to stake coin magi on. If you want to see more active development on linux, especially on Raspberry Pi, please consider donating to my address:
94aVCTrT4fCrgodie1gAjDDTZEqaZiCTaG
It will help me learn more about minting/staking. I really appreciate it, thanks