Author

Topic: CGMINER v2.11.3 Mac binary compiled for OS X 10.8.3 Mountain Lion (Read 23348 times)

hero member
Activity: 662
Merit: 500
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!
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
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
lbr
sr. member
Activity: 423
Merit: 254
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.
hero member
Activity: 662
Merit: 500
If you need the latest ASICs to work on a Mac you can use the bfgminer 3.1 binary in MacMiner
newbie
Activity: 40
Merit: 0
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.

sr. member
Activity: 252
Merit: 250
any idea how to upgrade from 3.1.1 to 3.2.1 in OSX Lion?
newbie
Activity: 40
Merit: 0
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

newbie
Activity: 8
Merit: 0
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


newbie
Activity: 28
Merit: 0
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.
newbie
Activity: 28
Merit: 0
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
hero member
Activity: 672
Merit: 501
I just wrote a guide for CPUMiner which seems to work fine Smiley I've not tried CGMiner.

https://bitcointalksearch.org/topic/osx-litecoin-miner-guide-mountain-lion-176611
sr. member
Activity: 408
Merit: 261
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.
lbr
sr. member
Activity: 423
Merit: 254
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
lbr
sr. member
Activity: 423
Merit: 254
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.
sr. member
Activity: 408
Merit: 261
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?
newbie
Activity: 9
Merit: 0
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
ZPK
legendary
Activity: 1302
Merit: 1021
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 ?
sr. member
Activity: 408
Merit: 261
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
Jump to: