Меню Рубрики

Cpu miner mac os

CPU Miner for Mac OSX?

I’m new to the Monero community, but I’ve successfully mined many other cryptocurrencies. After a couple hours of digging, I could not find a pre-built CPU miner for OSX. Could someone point me in the right direction?

I found a few that require source code downloads and builds, but I’m looking for something precompiled that I can put my config settings into and be on my way.

5 Answers 5

Because I couldn’t find anything and didn’t receive any help here, I wanted to share what I ended up doing to help others in the future. This is what I did to mine on NiceHash on OSX Sierra:

Run docker run hmage/cpuminer-opt -a cryptonight -o stratum+tcp://cryptonight.usa.nicehash.com:3355 -O [YOURMONEROADDRESS].[YOURWORKERNAME]:x

Unless you just want to pool mine, the monero daemon can CPU solo mine, and precompiled macOS executables are avaiable at https://getmonero.org/downloads/. Just tell monerod how many cores to use and your address, and you are on your way.

You can also build it yourself. I know you asked for something precompiled, but just in case: https://github.com/fireice-uk/xmr-stak/blob/master/doc/compile_MacOS.md

with this cmake command

cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=ON

It works. From the logs, my GPU is working.

I have been using YAM CPU miner for some time. You can download it from mega.nz. Note that that website doesn’t support Safari properly. Either use Chrome or Firefox (or Tor Browser) instead.

Binaries are OS and CPU architecture specific. Examples:

  • Mac mini (late 2009) is Core2 architecture, so select yam-yvg1900-M8a-macos64-core2.tgz .
  • MacBook Pro (late 2013) is Haswell architecture, so select yam-yvg1900-M8a-macos64-haswell.tgz .

If you don’t know what CPU architecture your specific Apple computer has, check out the EveryMac.com website. Lookup your Apple computer, the architecture should be noted in the Processor Details section.

Mark the appropriate .tgz files in the browser with a ★ and click Download as ZIP . The resuling file is jhProtominer.zip . Unzip the file. Then unzip the appropriate archive concerning your platform, e.g.: yam-yvg1900-M8a-macos64-haswell.tgz . Then, the yam utility is in a subdirectory macos64-haswell . Transfer this directory to /opt or another location of your choice.

You can then either start the yam utility directly from a Terminal, or make a wrapper script. That could look like this (using pool minexmr.com for example):

Note that you can simply stop YAM or your wrapper script with Control + C . There’s no session state to take care of.

Источник

Как майнить криптовалюту на компьютерах Mac от Apple? Токены и программы

Какие криптовалюты можно добывать на компьютерах Apple? Альткоины! Любые криптовалюты, кроме биткоина. Популярность первой и самой известной цифровой валюты делает рынок чрезвычайно насыщенным, сложным и дорогим для новичков т.к. требует специализированного оборудования.

С другой стороны, альткоины менее популярны, в них ниже конкуренция и затраты, и некоторые можно успешно добывать даже с помощью центральных процессоров. Таким образом, альткоины — самый подходящий вариант для людей, которые хотят попробовать майнинг и заработать на нем несколько дополнительных долларов.

Навигация по материалу:

Какие альткоины можно добывать на Mac?

Существуют более 1800 разных альткоинов. Каждый из них мечтает сравняться с биткоином или даже опередить его.

В этой статье мы рассмотрим некоторые самые популярные/продвинутые/практичные монеты для добычи на компьютерах Apple. Все приведенные ниже результаты были получены на MacBook Pro 15″ выпуска середины 2017-го (A1701).

Monero (XMR)

Monero выделяется среди других криптовалют, поскольку считается самой передовой анонимной цифровой монетой. Monero основан на алгоритме Proof-of-Work CryptoNight. Он разработан таким образом, чтобы осложнить майнинг на специализированных ASIC-чипах. На самом деле добывать Monero относительно легко даже на обычном компьютере.

Специальное ПО будет обрабатывать и проверять транзакции, а владельцы оборудования будут получать вознаграждение. В случае, если счета за электричество оплачивает кто-то другой (например, работодатель или университет), возникают реальные финансовые стимулы для майнинга на компьютерах, к которым у человека есть доступ. Благодаря демократичности процесса майнинг Monero легкодоступен. Начать добычу Monero на своем компьютере очень просто — достаточно нажать на соответствующую кнопку в кошельке.

На данный момент добыча Monero на Мас или на любом другом компьютере приносит максимальную выгоду. Monero прекрасно подходит для абсолютных новичков. Все, что для этого нужно — запустить программу и нажать на кнопку. Так просто. Но все же прибыльно.Таким образом, обычные люди, интересующиеся цифровыми деньгами, могут освоить добычу Monero и параллельно заработать на этом. Это существенный плюс для криптовалюты, поскольку позволяет охватить максимальное число людей и поддержать их энтузиазм.

Криптовалюта поддерживает добычу с помощью CPU/GPU. Если задействовать достаточно мощный Мас с поддерживаемой графической картой, можно заработать неплохие деньги.

Ethereum / Ethereum Classic (ETH / ETC)

Эфир был разработан для дополнения и улучшения биткоина, расширения его возможностей. Его главной отличительной особенностью стали смарт-контракты — децентрализованные, самоисполняемые соглашения, внесенные в блокчейн и не требующие участия третьих лиц.

Эфир занимает второе место по капитализации. Ethereum Classic — это форк эфира. Последний также работает на алгоритме PoW под названием Ethash. Он поощряет децентрализованную добычу частными лицами и пока не поддерживает ASIC-майнинг.

Эфир можно добывать с помощью обычного/графического процессора или сразу обоих. Тем не менее недавно появились решения для ASIC-майнинга этой криптовалюты.

Таким образом, в нынешнем виде эфир уже не подходит для добычи на персональных компьютерах. Значительно увеличить отдачу и прибыль помогают внешние GPU. Однако в перспективе лучше всего купить ASIC-майнер и вести добычу на нем.

Litecoin (LTC)

Лайткоин — это ответвление Bitcoin Core с небольшими отличиями:

  • Значительно сокращено время генерации блоков (до 2,5 минут);
  • Увеличено общее число монет;
  • Используется алгоритм хеширования на основе scrypt вместо SHA-256.

Формально лайткоин можно добывать на центральном процессоре. Если оставить компьютер включенным на целый год, при средней скорости хеширования 15 кХ/с получится добыть 0,0003841 LTC. Для добычи 1 LTC такими темпами потребуется 45 лет!

Читайте также:  Как узнать ip своего компьютера mac os

Другими словами, вести майнинг лайткоина на персональном компьютере — не лучшая идея. Вы гораздо больше потратите на электричество, чем заработаете. Если хотите серьезно заняться майнингом, купите специальное оборудование для добычи.

Bytecoin (BCN)

Bytecoin — первый в истории альткоин, основанный на технологии CryptoNote. Bytecoin рекламирует себя как полностью анонимную криптовалюту, готовую к корпоративному применению. Важная особенность Bytecoin — бесплатные и мгновенные международные платежи: ее сеть так же быстра, как и интернет.

Впрочем, некоторое время на операцию потратить придется, поскольку платежи требуют криптографического подтверждения . Разработчики утверждают, что транзакция занимает около двух минут и отмечают, что для взлома криптовалюты «потребуются невероятные объемы электричества и вычислительная мощность суперкомпьютера».

Многие, чтобы майнить Bytecoin, добывают Monero (что выгоднее) и на них покупают Bytecoin.

Добывая Monero в течение недели, можно выручить около 0,00711 XMR и купить на них 378 BCN. При этом майнинг Bytecoin на протяжении целого года принесет всего 430 монет! В то же время на Monero, добытые за аналогичный период, можно купить 19845 BCN. Хотя задачу можно упростить еще сильнее. 551 BCN будут стоить всего $1. Просто купите криптовалюту на доллары — так вы сэкономите время и ресурсы компьютера.

Как добывать альткоины с помощью Minergate

Самый простой способ добывать криптовалюты на Macintosh — установить программу Minergate.

Интерфейс пользователя простой и понятный :

  1. Зарегистрируйтесь.
  2. Закройте приложение и войдите в расширенный режим.
  3. Перейдите на вкладку «Miner».
  4. Выберите криптовалюту по вкусу.
  5. Нажмите на кнопку «Start Mining».
  6. Выберите число ядер, которые будут использоваться для майнинга (чем больше, тем выше скорость хеширования).

Вот и все. Вы начали добывать криптовалюту. В приложении есть встроенный кошелек . С помощью сопоставленного с ним адреса можно посылать и получать различные цифровые валюты. Хотя после добычи в целях безопасности их все же рекомендуется переместить в личный кошелек.

Источник

quagliero / README.md

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.

If you get an error about Undefined symbols for architecture x86_64: , check out @liukun‘s solution below.

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 flag. -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.

💱 🍺
RVN RX1Rcn7BRorWvq8HPih8Y7Pg1ZVo7fp7Du
BTC 1HSbmfcqWxNA2AHmK8qLLcJoBzRBankZu9
LTC LPkFXzY59DgAKMpvg94Cg3LbofwcgTz4ko
ETH 0x22dF535A59f6c0f9E96f5631D4B0c0a975E926C8

This comment has been minimized.

Copy link Quote reply

SterlingChin commented Feb 1, 2018

This may help clear up some confusion for some when it comes to the mining command example you provided.

./cpuminer -a x16r -o stratum+tcp://rvn.suprnova.cc:6666 -u [username].[workername] -p [workerpassword]

This comment has been minimized.

Copy link Quote reply

SterlingChin commented Feb 1, 2018

Also, sent you a thank you!

This comment has been minimized.

Copy link Quote reply

quagliero commented Feb 3, 2018

@SterlingChin – good point, have updated the gist. Thanks for the tip! 👍

This comment has been minimized.

Copy link Quote reply

parsnippp commented Feb 4, 2018 •

– figured it out. Thanks.

This comment has been minimized.

Copy link Quote reply

XaocuHKa commented Feb 8, 2018

can i use your pre-compiled version? or it wont work standalone?

This comment has been minimized.

Copy link Quote reply

BrazilianGirl commented Feb 19, 2018

I need help to make it run on Octa Core ARM .

This comment has been minimized.

Copy link Quote reply

quagliero commented Feb 22, 2018

@XaocuHKa @BrazilianGirl – Sorry, I don’t seem to get email notifications when this is commented on. Still need help?

This comment has been minimized.

Copy link Quote reply

Andrewjamesk76 commented Feb 24, 2018

when I run ./cpuminer -a x16r -o stratum+tcp://rvn.suprnova.cc:6666 -u [username].[workername] -p [workerpassword] i am getting an error- no just file or directory can you tell me which directory i can find the file in?

This comment has been minimized.

Copy link Quote reply

BrazilianGirl commented Feb 24, 2018

This comment has been minimized.

Copy link Quote reply

tetreault commented Feb 24, 2018

Hey I’m running this on a 2017 MBP with a 2.9GHz intel i5 cpu and wanted to mess around with cpu mining ravencoin. Followed all the steps, got my suprnova account but it keeps saying:

Any ideas what I’m doing wrong here?

I’m running it like this @quagliero: ./cpuminer -a x16r -o stratum+tcp://rvn.suprnova.cc:6666 -u ME.MyWorker -p “PASSWORDHERE”

This comment has been minimized.

Copy link Quote reply

losgatossuave commented Feb 24, 2018

Hi – I can’t get this script to run: perl -p -i -e “s/#if (WINDOWS)/#define ASM 0\n#if (WINDOWS)/g” algo/neoscrypt.c

I have no idea why. It seems that without it, i get neoscript errors on make. Thanks

This comment has been minimized.

Copy link Quote reply

FGNBIRDFGKTZHJNV9JH45 commented Feb 25, 2018

@Andrewjamesk76 i’m getting the same error: No such file or directory
could you already figure out the problem here?

This comment has been minimized.

Copy link Quote reply

claudiablo commented Feb 25, 2018

Hi I was following your guide till this popped up as I entered the command ‘make’

ld: warning: directory not found for option ‘-Lyes/lib’

I was wondering if you could help me. Thank you in advance.

This comment has been minimized.

Copy link Quote reply

ciribo commented Feb 26, 2018

Hi,
I’m stuck at the git clone command.

git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Seems like I don’t have the right permission. What could I do to fix this?
Thanks

This comment has been minimized.

Copy link Quote reply

quagliero commented Feb 26, 2018 •

@claudiablo – that’s just a warning, shouldn’t prevent it from running (I, and others, have the same warning). It’s likely fixable by passing in the full path to one of the libs it uses in the Makefile. But it should work without it.

This comment has been minimized.

Copy link Quote reply

quagliero commented Feb 26, 2018

This comment has been minimized.

Copy link Quote reply

quagliero commented Feb 26, 2018

@FGNBIRDFGKTZHJNV9JH45 @Andrewjamesk76 where abouts are you running the command from? Any errors when running through the build steps?

This comment has been minimized.

Copy link Quote reply

quagliero commented Feb 26, 2018

@tetreault You don’t need to wrap your password in quotes, it will mean your authentication is failing as your password is incorrect. -u Me.MyWorker -p mypassword

This comment has been minimized.

Copy link Quote reply

quagliero commented Feb 26, 2018

@losgatossuave what happens when you try and run the perl script? Any errors?

This comment has been minimized.

Copy link Quote reply

90III01 commented Feb 27, 2018

@quagliero can you please tell me how start literally from ZERO on osx?

This comment has been minimized.

Copy link Quote reply

quagliero commented Feb 27, 2018

@90III01 install brew and xcode, open up a terminal window, and then follow the Installation guide.

This comment has been minimized.

Copy link Quote reply

90III01 commented Feb 27, 2018

Okay, I’m downloading xCode and Brew, I’ll let you know! Thanks!

This comment has been minimized.

Copy link Quote reply

90III01 commented Feb 27, 2018 •

@quagliero I tried to run git clone git@github.com:tpruvot/cpuminer-multi.git

I got this error:
Permanently added the RSA host key for IP address ‘ *** . ** . *** . *** ‘ to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

This comment has been minimized.

Copy link Quote reply

quagliero commented Feb 27, 2018

@90III01 That’s a git issue, will be lots of solutions via Google search: facebookresearch/deepmask#23

This comment has been minimized.

Copy link Quote reply

shalom-ormsby commented Mar 1, 2018 •

@quagliero Thanks for these awesome instructions, which worked perfectly, and I’m mining away with Suprnova. Can you please add instruction for how to pause and resume the mining in Terminal? And any other useful commands? Thanks in advance!

Also, is anyone aware of instructions like this for setting up GPU mining on the Mac?

This comment has been minimized.

Copy link Quote reply

claudiablo commented Mar 1, 2018

for those who have trouble on running this code: git clone git@github.com:tpruvot/cpuminer-multi.git

try replacing with this one right here: git clone https://github.com/tpruvot/cpuminer-multi.git

This comment has been minimized.

Copy link Quote reply

quagliero commented Mar 1, 2018 •

@shalom-ormsby good to hear! To pause/resume I just kill the process with ctrl+c , then start it up again when required. As far as useful commands, -t is the thread count, or CPU cores, to use when mining. So -t 1 would just use 1 core (good for when you still want the machine to be usable!)

This comment has been minimized.

Copy link Quote reply

shalom-ormsby commented Mar 1, 2018

@quagliero Thanks! Really appreciate your help getting up and running with CPU mining on the Mac. Do you know if it’s possible to do GPU-based mining on the Mac? I’m only seeing instructions and resources for Win-based systems.

This comment has been minimized.

Copy link Quote reply

quagliero commented Mar 2, 2018 •

This comment has been minimized.

Copy link Quote reply

shalom-ormsby commented Mar 3, 2018

@quagliero Will do. Thanks again!

This comment has been minimized.

Copy link Quote reply

Serion717 commented Mar 4, 2018

Hi, after I type make, I get this error. Any ideas on what I can do?

make
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in compat
make[3]: Nothing to be done for all-am’. gcc -DHAVE_CONFIG_H -I. -Iyes/include -I/usr/local/opt/opensll/include -fno-strict-aliasing -I. -Iyes/include -I/usr/local/opt/opensll/include -Wno-pointer-sign -Wno-pointer-to-int-cast -march=native -Iyes/include -I/usr/local/opt/opensll/include -MT cpuminer-cpu-miner.o -MD -MP -MF .deps/cpuminer-cpu-miner.Tpo -c -o cpuminer-cpu-miner.o test -f ‘cpu-miner.c’ || echo ‘./’`cpu-miner.c
cpu-miner.c:28:10: fatal error: ‘openssl/sha.h’ file not found
#include
^

1 error generated.
make[2]: *** [cpuminer-cpu-miner.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

This comment has been minimized.

Copy link Quote reply

quagliero commented Mar 4, 2018

This comment has been minimized.

Copy link Quote reply

asheikhyusuf commented Mar 13, 2018


constantly get this. also it takes a long time for it to connect to worker. I started at 100% battery now I’m at 52% battery life and it hasn’t even cleared one yet. My worker stay inactive for some reason

This comment has been minimized.

Copy link Quote reply

Aidy100 commented Mar 13, 2018

Hi. I was running this and everything was fine until last night. Now if I try to run all I get is
./cpuminer: No such file or directory
I’ve gone back to the very first step (g++) and followed all the instructions but all I get is ‘no such file or directory’.
Any thoughts?

This comment has been minimized.

Copy link Quote reply

chabgood commented Mar 16, 2018

I run this same stratum and login and such on windows 10 and it works great, but on mac, 10.3.3, i get:
stratum_subscribe send failed
[2018-03-16 17:44:25] . retry after 10 seconds

This comment has been minimized.

Copy link Quote reply

rvaoms commented Mar 23, 2018

I have tried multiple times on my iMac and I keep getting this error:

-bash: /cpuminer: No such file or directory

This comment has been minimized.

Copy link Quote reply

avril-verhaeghen commented Mar 27, 2018

@rvaoms it’s ./cpuminer not /cpuminer, don’t forget the dot

This comment has been minimized.

Copy link Quote reply

cryptickt commented Mar 27, 2018 •

thanks so much for posting instructions however when I type in make, i get this message
ld: warning: directory not found for option ‘-Lyes/lib’
ld: warning: directory not found for option ‘-Lyes/lib’
Dont know what to do now, any help is appreciated thanks in advance

This comment has been minimized.

Copy link Quote reply

quagliero commented Mar 28, 2018

@cryptickt – those are just warnings, shouldn’t prevent it from running.

This comment has been minimized.

Copy link Quote reply

quagliero commented Mar 28, 2018

@asheikhyusuf & @chabgood – try it with a different pool and see if it still can’t connect. If it can’t, could be a port blocking/firewall issue, try turning them off temporarily and trying again.

This comment has been minimized.

Copy link Quote reply

DKLALA commented Apr 7, 2018

sadly the same problem. works all the way up until your “start mining” command and terminal returns “no such file or directory”. Anybody figure out a fix for this yet?

This comment has been minimized.

Copy link Quote reply

matt24ray commented Apr 10, 2018

I got it up and running on 10.12.6 as well.

This comment has been minimized.

Copy link Quote reply

quagliero commented Apr 23, 2018

@DKLALA Does the cpuminer file exist if you ls in that directory? No such file or directory usually means you’re missing the . at the start and it’s just looking for /cpuminer , which it can’t find: ./cpuminer .

This comment has been minimized.

Copy link Quote reply

dburlington commented May 7, 2018 •

Very cool – worked like a charm. Hard to believe that X16r can work on CPU. Although xmr-stak on Monero is going to give way better results (meaning a whopping .20c/day – lol). Running a 2017 MBP 13″ with i7 fully loaded. But really can’t get much hash on a CPU with RVN. I get about 100hz/s on XMR. Looks like I get about 20Khz on X16r. Really fun to play with though. Great instructions!! Dying to try it on my 15″ MBP – way more power but still suspect Cryptonight performs better on CPU. I can only get about 50Mhz out of my 6 card AMD rx580 rig so its a challenging algo all around. Great coin though.

This comment has been minimized.

Copy link Quote reply

superpilot21 commented May 9, 2018

When I type : ./autogen.sh

I get: ./autogen.sh: line 8: aclocal: command not found

This comment has been minimized.

Copy link Quote reply

Kezchenko commented May 11, 2018

I am running the mining but I am not getting accepted yes! to contribute to the pool. Any ideas

This comment has been minimized.

Copy link Quote reply

quagliero commented May 14, 2018

@Kezchenko Which coin? RVN? Could just be due to the sheer number of miners and hashrate on the network that your CPU isn’t submitting any valid shares in time.

@superpilot21 Strange. Did all of the brew dependencies install correctly? aclocal is part of automake so maybe try brew install automake ?

This comment has been minimized.

Copy link Quote reply

timogoosenwork commented May 18, 2018

This might help if you don’t know where openssl is installed:

This comment has been minimized.

Copy link Quote reply

msettecasse commented May 23, 2018 •

what username and worker and password should i set in the command line.

This comment has been minimized.

Copy link Quote reply

quagliero commented May 31, 2018

whatever the username and password is for your pool worker (a lot of times the password isn’t required and the username is your wallet address)

This comment has been minimized.

Copy link Quote reply

urugn commented Jun 15, 2018

I keep getting boooo
[2018-06-15 14:43:42] accepted: 0/2 (diff 0.000), 109.42 H/s booooo
in the mac but the same miner works fine under linux fedora 26 and centos. Am using coinfoundry.org for xmr mining in both machines. what could be wrong?

This comment has been minimized.

Copy link Quote reply

rorofernandez commented Oct 26, 2018

Just wondering if someone can help me of the error I’m getting when I execute the ‘make’ command. Thanks a lot in advance.

Источник

Популярные записи

Программа для просмотра видео для mac os
Acrobat reader adobe mac os
Imo for mac os
Mac os samsung q330
Mac os свойства папки защита
Flash tool mac os
Adblock
detector