Bitcoin Forum
April 23, 2024, 08:14:54 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: CGMINER v2.11.3 Mac binary compiled for OS X 10.8.3 Mountain Lion  (Read 23346 times)
toffoo (OP)
Sr. Member
****
Offline Offline

Activity: 408
Merit: 261



View Profile
April 04, 2013, 09:02:07 AM
 #1

I've seen numerous requests for this so I decided to post this, as it was a major pain to get working and probably far beyond the patience and skill level of the average Mac user.  Perhaps I'll earn some positive karma or bit tips if it works for you.


DISCLAIMERS:

* I am NOT A PROGRAMMER

* I have no idea what I am doing

* This is not claimed or guaranteed to work for anyone anywhere

* Do not ask me any questions if it does not work for you.  I will not be able to answer them.

* I am not smart enough to know how to virus/trojan/walletsnatch your system, but assume that I could have before you download this binary.

* I was baked when I finally got this to compile


I downloaded the source last week to mess around with GPU mining Litecoins.  I can confirm that (eventually) I got this to compile on MY SYSTEM with no errors and am successfully able to GPU mine Bitcoins and Litecoins, both locally with *coin-qt running and to mining pools.  I was unsuccessful getting Reaper to compile.

I got about 24 Kh/s mining Litecoins on my MacBook Retina with Nvidia GeForce GT 650M with this command line:

Code:
./cgminer --scrypt -o http://newlc.ozco.in:9332 -u NAME -p PASSWORD --worksize 256 --lookup-gap 2 --thread-concurrency 2047 -g 1 --intensity 11 

I will most likely not continue mining or using/updating/maintaining this binary.


INSTALL:

Code:
unzip cgminermac.zip


DOWNLOAD LINK:

https://www.dropbox.com/s/0bbzyp9bffau1me/cgminermac.zip


TIPS ACCEPTED here:

Bitcoin:  129ZbPYoUB7os4t8oWuSqjFLATwkmqzXYm
Litecoin: LQ3GLdYa8q1oXrov1PHvpvLmNekdQzF8ve

May you strike it rich in your digital gold mine,
--toffoo

If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
ZPK
Legendary
*
Offline Offline

Activity: 1302
Merit: 1021



View Profile
April 04, 2013, 11:48:15 AM
Last edit: April 04, 2013, 12:04:03 PM by ZPK
 #2

dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib
  Referenced from: /Users/xxx/Downloads/cgminermac/cgminer
  Reason: Incompatible library version: cgminer requires version 8.0.0 or later, but libcurl.4.dylib provides version 7.0.0
Trace/BPT trap: 5

need install macports ?

Novacoin POS mining only now
Nightmare
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
April 04, 2013, 01:20:56 PM
 #3

Thank You!

unfortunately I have snow leopard and I get "illegal instruction".

I tried to compile by myself but when I run it I get "Segmentation Fault" Sad

halp
toffoo (OP)
Sr. Member
****
Offline Offline

Activity: 408
Merit: 261



View Profile
April 04, 2013, 05:25:56 PM
 #4

dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib
  Referenced from: /Users/xxx/Downloads/cgminermac/cgminer
  Reason: Incompatible library version: cgminer requires version 8.0.0 or later, but libcurl.4.dylib provides version 7.0.0
Trace/BPT trap: 5

Doh!  Perhaps this idea isn't as straightforward as I had hoped.

Does any UNIX guru know if I make a new .zip with my copy of this library file (and any others?) if someone could run this without installing macports?

lbr
Sr. Member
****
Offline Offline

Activity: 423
Merit: 254


View Profile
April 04, 2013, 10:28:48 PM
 #5

dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib
  Referenced from: /Users/xxx/Downloads/cgminermac/cgminer
  Reason: Incompatible library version: cgminer requires version 8.0.0 or later, but libcurl.4.dylib provides version 7.0.0
Trace/BPT trap: 5

Doh!  Perhaps this idea isn't as straightforward as I had hoped.

Does any UNIX guru know if I make a new .zip with my copy of this library file (and any others?) if someone could run this without installing macports?

1) use
otool -L /usr/local/bin/cgminer
f.e. cgminer is your compiled binary
otool will output all dylds required to start your binary and their expected paths

2) Install libraries there
3) Use
DYLD_LIBRARY_PATH="/usr/local/Cellar/curl/7.29.0/lib"
export it or add it to your .bash_profile located at \your_user_name\, f.e. open terminal type vi ~\.bash_profile press "a" write it down, press ESC, press "SHIFT + :", type "wq!", press neter



Or you can jsut copy that libs in your local source folder, then when compiling supply that folder as the library path, then distribute themm all in archive.

BTC: 18ozhbkfHneX8tnPgHJuTizyBmspM5Vgpa  LTC: LgVc7KdedPGZyDXHXEH9G7z6AoTmTvDdWb
cgminer 2.11.13 x64 portable for Mac OS X 10.6.8
6+ GPUs driver mod for Windows
lbr
Sr. Member
****
Offline Offline

Activity: 423
Merit: 254


View Profile
April 04, 2013, 10:31:05 PM
 #6

Thank You!

unfortunately I have snow leopard and I get "illegal instruction".

I tried to compile by myself but when I run it I get "Segmentation Fault" Sad

halp
Wrong arch type probably, look for crash log in Apps -> Utilities -> Console

BTC: 18ozhbkfHneX8tnPgHJuTizyBmspM5Vgpa  LTC: LgVc7KdedPGZyDXHXEH9G7z6AoTmTvDdWb
cgminer 2.11.13 x64 portable for Mac OS X 10.6.8
6+ GPUs driver mod for Windows
toffoo (OP)
Sr. Member
****
Offline Offline

Activity: 408
Merit: 261



View Profile
April 10, 2013, 12:37:07 AM
 #7

Let's try this again...

Thank you lbr, seems like you've certainly earned your "UNIX guru" chops here.

otool returned the following for me:

Code:
otool -L ./cgminer 
./cgminer:
/opt/local/lib/libcurl.4.dylib (compatibility version 8.0.0, current version 8.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
/System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL (compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0)

I believe the OpenCL and libSystem.B libraries are already included with your Mountain Lion.

For ZPK and others, I've zipped up a new version of cgminer with my copies of the libcurl and libncurses libraries here:

https://www.dropbox.com/s/uh2mcyg30206hkh/cgminermac2.zip

I believe you'll need to create a directory and move the library files there, something like this

Code:
sudo mkdir /opt
sudo mkdir /opt/local
sudo mkdir /opt/local/lib
mv libcurl.4.dylib /opt/local/lib/
mv libncurses.5.dylib /opt/local/lib/

I still can't be sure this will work on your system without missing some other dependency but let me know if it works for you and I can update the opening post.

BigBitz
Hero Member
*****
Offline Offline

Activity: 672
Merit: 501



View Profile
April 14, 2013, 08:56:32 PM
 #8

I just wrote a guide for CPUMiner which seems to work fine Smiley I've not tried CGMiner.

https://bitcointalk.org/index.php?topic=176611.0

Tips BTC --> 1BS2sYvy3T1cpNhie6CVFMcUrHa84a8mPa <-- Thanks! || Tips [LTC] --> LaytYJNCha7z7zcws5a2o2GWWjvWfDCGkr <--
MrNoSox
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
April 29, 2013, 11:23:34 AM
 #9

Let's try this again...

Thank you lbr, seems like you've certainly earned your "UNIX guru" chops here.

otool returned the following for me:

Code:
otool -L ./cgminer 
./cgminer:
/opt/local/lib/libcurl.4.dylib (compatibility version 8.0.0, current version 8.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
/System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL (compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0)

I believe the OpenCL and libSystem.B libraries are already included with your Mountain Lion.

For ZPK and others, I've zipped up a new version of cgminer with my copies of the libcurl and libncurses libraries here:

https://www.dropbox.com/s/uh2mcyg30206hkh/cgminermac2.zip

I believe you'll need to create a directory and move the library files there, something like this

Code:
sudo mkdir /opt
sudo mkdir /opt/local
sudo mkdir /opt/local/lib
mv libcurl.4.dylib /opt/local/lib/
mv libncurses.5.dylib /opt/local/lib/

I still can't be sure this will work on your system without missing some other dependency but let me know if it works for you and I can update the opening post.

Here is what I get, I'm probably dong something wrong. I'm using two Radeon 5870s
Code:
[2013-04-29 07:22:31] Unable to open scrypt130302.cl or ./scrypt130302.cl for r
eading
 [2013-04-29 07:22:31] Failed to init GPU thread 0, disabling device 0
 [2013-04-29 07:22:31] Restarting the GPU from the menu will not fix this.
 [2013-04-29 07:22:31] Try restarting cgminer.
Press enter to continue:

 [2013-04-29 07:22:35] Unable to open scrypt130302.cl or ./scrypt130302.cl for r
eading
 [2013-04-29 07:22:35] Failed to init GPU thread 1, disabling device 1Segmentati
MrNoSox
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
April 29, 2013, 12:02:47 PM
 #10

I found the scrypt file packaged with a linux binary. Of course, it may not be the right one but it had the same name Smiley Anyway, after putting that in the dir with cgminer and running again, this is what I get:

Code:
 [2013-04-29 08:00:32] Started cgminer 2.11.3

 [2013-04-29 08:00:32] Started cgminer 2.11.3
 [2013-04-29 08:00:32] Probing for an alive pool
 [2013-04-29 08:00:33] Long-polling activated for http://mining.pool-x.eu:8000/L
PTrace/BPT trap: 5

I've gotten that "PTrace/BPT trap:5" error with Reaper also. Looked it up and it isn't really clear why that happens.
bobsin
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
May 17, 2013, 03:27:16 AM
 #11

Anyone figure this out yet? This is what I get when I use the --debug argument

[2013-05-16 23:25:52] Started cgminer 2.11.3

 [2013-05-16 23:25:52] Started cgminer 2.11.3
 [2013-05-16 23:25:52] CL Platform 0 vendor: Apple
 [2013-05-16 23:25:52] CL Platform 0 name: Apple
 [2013-05-16 23:25:52] CL Platform 0 version: OpenCL 1.2 (Dec  4 2012 18:26:30)
 [2013-05-16 23:25:52] Platform 0 devices: 2
 [2013-05-16 23:25:52]  0       GeForce 9800 GT
 [2013-05-16 23:25:52]  1       AMD Radeon HD Verde XT Prototype Compute Engine
 [2013-05-16 23:25:52] Probing for an alive pool
 [2013-05-16 23:25:52] Popping work to stage thread
 [2013-05-16 23:25:52] Testing pool http://mining.usa.hypernova.pw:9332
 [2013-05-16 23:25:52] Probing for GBT support
 [2013-05-16 23:25:52] X-Roll-Ntime expiry set to 60
 [2013-05-16 23:25:52] JSON-RPC call failed: {
   "code": -1,
   "message": "Unsupported method 'getblocktemplate'"
}
 [2013-05-16 23:25:52] Failed to connect in json_rpc_call
 [2013-05-16 23:25:52] No GBT coinbase + append support found, using getwork protocol
 [2013-05-16 23:25:52] X-Roll-Ntime expiry set to 60
 [2013-05-16 23:25:52] Calculating midstate locally
 [2013-05-16 23:25:52] Successfully retrieved and deciphered work from pool 0 http://mining.us
a.hypernova.pw:9332
 [2013-05-16 23:25:52] Pushing pooltest work to base pool
 [2013-05-16 23:25:52] New block: 7c1d61447fbec759... diff 39.7M
 [2013-05-16 23:25:52] Pushing work to getwork queue
 [2013-05-16 23:25:52] Popping work to stage thread
 [2013-05-16 23:25:52] Long-polling activated for http://mining.usa.hypernova.pw:9332/lpTrace/BPT trap: 5


MattFoster42
Newbie
*
Offline Offline

Activity: 40
Merit: 0


View Profile
June 11, 2013, 12:25:25 PM
 #12

Hi,

I've built 3.1.1 on OS X (can't get the libusb stuff working for 3.2.X yet)

You can get it at

https://dl.dropboxusercontent.com/u/151327099/cgminer.tar

Normal caveats apply that if you don't have libjansson.4.dylib or libncurses.5.dylib installed through macports, then you can use the versions provided in the tar ball.

It is compiled with support for icarus so you can use block erupted USB devices with it.

If you find this useful, you can always leave a small donation Wink

196AH1HuPk7W8LscmWozByHLFv4ChVToEP

emunebtk
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
June 16, 2013, 09:51:25 PM
 #13

any idea how to upgrade from 3.1.1 to 3.2.1 in OSX Lion?
MattFoster42
Newbie
*
Offline Offline

Activity: 40
Merit: 0


View Profile
June 17, 2013, 10:28:03 PM
 #14

Without the libusb stuff it's going to be tricky. I suspect the #defs will need playing with, and the auto detection of USB Deva isn't going to work.

I can take a bash at it, but might not be for a couple of days.
I did manage to get the driver for the USB eruptors installed, but not working with 3.1.1

Work to be done yet, but if you don't need USB support it can't be that hard.

Anonymailer
aka BitBacco
Hero Member
*****
Offline Offline

Activity: 662
Merit: 500



View Profile WWW
June 17, 2013, 11:45:25 PM
 #15

If you need the latest ASICs to work on a Mac you can use the bfgminer 3.1 binary in MacMiner

MacMiner - The first, best and easiest to use native Mac coin mining app: https://bitcointalk.org/index.php?topic=197110.0

BTC: 12vZf8mjaXvHorXWVWfv7nZspHa8L8kfoG LTC: LLRqwo3YcLqoRyfZRVmUevtd2Y35Vvnt4w
lbr
Sr. Member
****
Offline Offline

Activity: 423
Merit: 254


View Profile
June 18, 2013, 10:47:39 AM
 #16

If you need the latest ASICs to work on a Mac you can use the bfgminer 3.1 binary in MacMiner

also afaik bfgminer does not use libusb.

BTC: 18ozhbkfHneX8tnPgHJuTizyBmspM5Vgpa  LTC: LgVc7KdedPGZyDXHXEH9G7z6AoTmTvDdWb
cgminer 2.11.13 x64 portable for Mac OS X 10.6.8
6+ GPUs driver mod for Windows
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1630


Ruu \o/


View Profile WWW
June 18, 2013, 10:53:14 AM
 #17

cgminer 3.2.2 is the latest with direct USB and note the following message:
Weird, I got cgminer3.2.1 to compile the first time in OS X 10.8. Plugged in my USB2 hub with 7 Block erupters and they are mining a way with 0 issues, even without adding --hotplug 0. Rejects are gone that I was seeing with 3.1.1 on Ubuntu as well.

So, it seems whatever was causing my devices to disconnect and become "SICK" on Ubuntu isn't an issue on my mac. Strange.

Glad it's working now though Cheesy

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Anonymailer
aka BitBacco
Hero Member
*****
Offline Offline

Activity: 662
Merit: 500



View Profile WWW
June 18, 2013, 07:33:03 PM
 #18

If you need the latest ASICs to work on a Mac you can use the bfgminer 3.1 binary in MacMiner

also afaik bfgminer does not use libusb.
It does use libusb but it requires you to install the USB serial drivers specific to the device you're using

cgminer 3.2.2 is the latest with direct USB and note the following message:
Weird, I got cgminer3.2.1 to compile the first time in OS X 10.8. Plugged in my USB2 hub with 7 Block erupters and they are mining a way with 0 issues, even without adding --hotplug 0. Rejects are gone that I was seeing with 3.1.1 on Ubuntu as well.

So, it seems whatever was causing my devices to disconnect and become "SICK" on Ubuntu isn't an issue on my mac. Strange.

Glad it's working now though Cheesy
That sounds good, if you have indeed rendered usb-serial drivers redundant I'll get this included in MacMiner, thanks!

MacMiner - The first, best and easiest to use native Mac coin mining app: https://bitcointalk.org/index.php?topic=197110.0

BTC: 12vZf8mjaXvHorXWVWfv7nZspHa8L8kfoG LTC: LLRqwo3YcLqoRyfZRVmUevtd2Y35Vvnt4w
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!