Installing cpuminer-multi on macOS 10.13.2 (High Sierra)
This assumes you have brew installed and are comfortable using a terminal.
Following the guide on https://github.com/tpruvot/cpuminer-multi will likely lead to errors about invalid paths to OpenSSL, and neoscrypt errors to the tune of
Undefined symbols for architecture x86_64 during the build. I managed to piece together different fixes into an installation that has worked for me. So I hope it works for you.
Ensure a c compiler is installed. Type
g++ in the terminal and continue with the xcode installation if necessary. If it prints
clang: error: no input files, then you can proceed.
# install dependencies brew install automake openssl zlib curl jansson make
# clone repo git clone https://github.com/tpruvot/cpuminer-multi.git # run build scripts cd cpuminer-multi ./autogen.sh ./nomacro.pl # where /usr/local/opt/openssl is your brew bin openssl ./configure CFLAGS="-march=native" --with-crypto=/usr/local/opt/openssl --with-curl # Due to some issues within ASM Neoscrypt perl -p -i -e "s/#if \(WINDOWS\)/#define ASM 0\n#if (WINDOWS)/g" algo/neoscrypt.c # aaand make make
If you get an error about
Undefined symbols for architecture x86_64:, check out @liukun's solution below.
# example, using Ravencoin on suprnova ./cpuminer -a x16r -o stratum+tcp://rvn.suprnova.cc:6666 -u [username].[workername] -p [workerpassword]
To stop mining just kill the process with
ctrl+c, then start it up again when required.
To adjust your mining power, use the
-t is the number of CPU cores (threads) to use when mining. So
./cpuminer -a x16r -t 1 ... would just use 1 core (good for mining in the background). I believe by default it uses all available cores.
https://github.com/Roykk/veriumMinerDocker/tree/master/OSXwithoutDocker (SSL paths issue)
wladston with the perl fix)