nwoolls (OP)
|
|
April 24, 2013, 09:12:45 PM Last edit: January 14, 2018, 04:52:01 AM by nwoolls |
|
I've put together a couple of packages (formulas) for Homebrew that make it easier to install BFGMiner, CGMiner, SGMiner, Vertminer and other *GMiner forks on Mac OS X. I've tested these on macOS High Sierra and they seem to work well, plus I've had positive reports from others. Once you have Xcode Command Line Tools and Homebrew installed, you can run the following commands to install bfgminer: brew tap nwoolls/xgminer && brew install bfgminer In addition you can find source code and instructions for these Homebrew formulas here: https://github.com/nwoolls/homebrew-xgminerIf you'd like to download precompiled binaries for OS X, or would prefer to compile the binaries yourself without installing Homebrew, there are both shell here: https://github.com/nwoolls/xgminer-osxand binaries here: https://github.com/nwoolls/xgminer-osx/releasesArticlesHopefully this helps folks get up-and-going with BFGMiner a little more easily on OS X. DevelopersIf you are an OS X user or developer and interested in contributing to BFGMiner, I've put together a repository with an Xcode project and scripts that allow you to compile and debug bfgminer in Xcode. You can view the instructions and get started here: https://github.com/nwoolls/xgminer-osx-dev
|
MultiMiner: Any Miner, Any Where, on Any Device | Xgminer: Mine with popular miners on Mac OS X
|
|
|
furax
Newbie
Offline
Activity: 10
Merit: 0
|
|
April 24, 2013, 09:52:07 PM |
|
Whoops: dyld: Library not loaded: /usr/local/lib/libcurl.4.dylib Referenced from: /usr/local/bin/bfgminer Reason: Incompatible library version: bfgminer requires version 8.0.0 or later, but libcurl.4.dylib provides version 7.0.0 Trace/BPT trap: 5
|
|
|
|
nwoolls (OP)
|
|
April 25, 2013, 12:13:48 AM |
|
Whoops: dyld: Library not loaded: /usr/local/lib/libcurl.4.dylib Referenced from: /usr/local/bin/bfgminer Reason: Incompatible library version: bfgminer requires version 8.0.0 or later, but libcurl.4.dylib provides version 7.0.0 Trace/BPT trap: 5 Thanks for the feedback. I'll look into this some more tomorrow. There are reports of similar errors with other packages and Homebrew here: https://github.com/josegonzalez/homebrew-php/issues/419https://github.com/josegonzalez/homebrew-php/issues/428There are some potential suggestions and fixes in there. If there's anything that helps please let me know. For instance, you could try downloading the .rb file yourself, modifying the curl requirement as shown below, and then trying again: depends_on 'curl' unless MacOS.version >= :lion Any information and details you can give the better.
|
MultiMiner: Any Miner, Any Where, on Any Device | Xgminer: Mine with popular miners on Mac OS X
|
|
|
JonSnow
Member
Offline
Activity: 112
Merit: 10
|
|
April 25, 2013, 02:57:47 AM |
|
I've had luck getting it running on my MacBook Pro ... but does anyone know how I would go about getting it to use my modminer fpga cards, instead of the gpu or cpu?
|
|
|
|
furax
Newbie
Offline
Activity: 10
Merit: 0
|
|
April 25, 2013, 09:13:57 AM |
|
Hi, thank you for your reply. I had another install of curl that got in the way, so I removed it which leaves me with both the system and the homebrew version. However, I could start the miner by exporting DYLD_LIBRARY_PATH="/usr/local/Cellar/curl/7.29.0/lib" All is fine now, thanks a lot for your help
|
|
|
|
Anonymailer
|
|
April 25, 2013, 11:45:43 AM |
|
I've had luck getting it running on my MacBook Pro ... but does anyone know how I would go about getting it to use my modminer fpga cards, instead of the gpu or cpu?
When installing replace --enable-scrypt with --enable-modminer
|
|
|
|
JonSnow
Member
Offline
Activity: 112
Merit: 10
|
|
April 25, 2013, 09:11:18 PM |
|
I've had luck getting it running on my MacBook Pro ... but does anyone know how I would go about getting it to use my modminer fpga cards, instead of the gpu or cpu?
When installing replace --enable-scrypt with --enable-modminer There doesn't seem to be much of an option to tell it to install with --enable-modminer ... using homebrew, it all seems pretty automated and whereas in Linux I'd type "./configure --enable-modminer" it doesn't recognize the command in mac.
|
|
|
|
Anonymailer
|
|
April 25, 2013, 11:34:13 PM |
|
I've had luck getting it running on my MacBook Pro ... but does anyone know how I would go about getting it to use my modminer fpga cards, instead of the gpu or cpu?
When installing replace --enable-scrypt with --enable-modminer There doesn't seem to be much of an option to tell it to install with --enable-modminer ... using homebrew, it all seems pretty automated and whereas in Linux I'd type "./configure --enable-modminer" it doesn't recognize the command in mac. you need to download the cgminer.rb file - right click this link and choose download https://dl.dropboxusercontent.com/s/qq8t51otgry14p3/cgminer.rb- that's where it has the enable option. change it as above if you're familiar with the options on the command line you can see the autogen, make and install are in there too so you can set it up how you like. then (if it's on your desktop): brew install ~/Desktop/cgminer.rb I'm looking at distributing binaries for both with MacMiner soon though, so if you prefer not to have to keep track of homebrew etc. you can always cross your fingers I'll get that done this weekend
|
|
|
|
nwoolls (OP)
|
|
April 26, 2013, 12:53:33 AM |
|
I've had luck getting it running on my MacBook Pro ... but does anyone know how I would go about getting it to use my modminer fpga cards, instead of the gpu or cpu?
When installing replace --enable-scrypt with --enable-modminer Is there any drawback if I include all of the optional support parameters, enabling bitforce, icarus, etc? If not I'll update both .rb packages to compile these in along with scrypt support.
|
MultiMiner: Any Miner, Any Where, on Any Device | Xgminer: Mine with popular miners on Mac OS X
|
|
|
nwoolls (OP)
|
|
April 26, 2013, 12:55:15 AM |
|
I'm looking at distributing binaries for both with MacMiner soon though, so if you prefer not to have to keep track of homebrew etc.
How are you doing this? I'm very curious. I wanted to go this route but my knowledge of the *nix toolchain kept me from going very far. Getting all of the libraries and binaries statically linked seemed tricky.
|
MultiMiner: Any Miner, Any Where, on Any Device | Xgminer: Mine with popular miners on Mac OS X
|
|
|
JonSnow
Member
Offline
Activity: 112
Merit: 10
|
|
April 26, 2013, 12:59:44 AM |
|
I've had luck getting it running on my MacBook Pro ... but does anyone know how I would go about getting it to use my modminer fpga cards, instead of the gpu or cpu?
When installing replace --enable-scrypt with --enable-modminer There doesn't seem to be much of an option to tell it to install with --enable-modminer ... using homebrew, it all seems pretty automated and whereas in Linux I'd type "./configure --enable-modminer" it doesn't recognize the command in mac. you need to download the cgminer.rb file - right click this link and choose download https://dl.dropboxusercontent.com/s/qq8t51otgry14p3/cgminer.rb- that's where it has the enable option. change it as above if you're familiar with the options on the command line you can see the autogen, make and install are in there too so you can set it up how you like. then (if it's on your desktop): brew install ~/Desktop/cgminer.rb I'm looking at distributing binaries for both with MacMiner soon though, so if you prefer not to have to keep track of homebrew etc. you can always cross your fingers I'll get that done this weekend awesome! when i brew install though, it fails to find libusb-1.0 even. so then i brew install libusb, and it tells me libusb-1.0.9 is already installed. still can't get it to "see" that libusb is already installed when i attempt to brew cgminer. any ideas?
|
|
|
|
nwoolls (OP)
|
|
April 26, 2013, 01:15:36 AM |
|
awesome! when i brew install though, it fails to find libusb-1.0 even. so then i brew install libusb, and it tells me libusb-1.0.9 is already installed. still can't get it to "see" that libusb is already installed when i attempt to brew cgminer.
Try running "brew doctor" and seeing if there are any errors or warnings. Fix any you can. Also, make sure that "/usr/local/sbin" is on your PATH. I had to add the following to ~/.bash_profile: export PATH="$PATH:/usr/local/sbin" I just tested and I am able to build with --enable-modminer using the libusb installed by Homebrew (1.0.9).
|
MultiMiner: Any Miner, Any Where, on Any Device | Xgminer: Mine with popular miners on Mac OS X
|
|
|
JonSnow
Member
Offline
Activity: 112
Merit: 10
|
|
April 26, 2013, 03:07:16 AM |
|
I've added that to PATH, but it's still telling me that I don't have libusb.
|
|
|
|
furax
Newbie
Offline
Activity: 10
Merit: 0
|
|
April 26, 2013, 06:05:26 AM |
|
I've had luck getting it running on my MacBook Pro ... but does anyone know how I would go about getting it to use my modminer fpga cards, instead of the gpu or cpu?
When installing replace --enable-scrypt with --enable-modminer There doesn't seem to be much of an option to tell it to install with --enable-modminer ... using homebrew, it all seems pretty automated and whereas in Linux I'd type "./configure --enable-modminer" it doesn't recognize the command in mac. you need to download the cgminer.rb file - right click this link and choose download https://dl.dropboxusercontent.com/s/qq8t51otgry14p3/cgminer.rb- that's where it has the enable option. change it as above if you're familiar with the options on the command line you can see the autogen, make and install are in there too so you can set it up how you like. then (if it's on your desktop): brew install ~/Desktop/cgminer.rb I'm looking at distributing binaries for both with MacMiner soon though, so if you prefer not to have to keep track of homebrew etc. you can always cross your fingers I'll get that done this weekend Note that you can also do That will open the .rb file in a text editor
|
|
|
|
Anonymailer
|
|
April 28, 2013, 07:49:13 PM |
|
Hi everyone, I've worked bfgminer in to MacMiner now, although it's required me to use an installer to get around the missing libusb/jansson problems people are having. Check out the announcement thread (and read the instructions!) https://bitcointalk.org/index.php?topic=189947.0
|
|
|
|
CobaltBlueD
Newbie
Offline
Activity: 19
Merit: 0
|
|
August 21, 2013, 11:36:09 PM |
|
Interestingly, I put a few erupters on a 10.7 mac mini with MacMiner. Slow rates. Spent an absurd amount of time. Found that the Mac USB libraries involved in cgminer were the problem. It took some digging.
When I did a clean install of bfgminer, I had to install the Silicon driver. It cleaned up my little USB driver mess probably by simply cutting them out of the equation. Now it's rock solid. Something to consider. Picked up more than 20% on the units/min. I did use bfgminer 3.3.4 withnn -G -S erupter:all
I've noticed my new mac air with 10.8.4 doesn't have openCL but they are saying it is in 10.9. We shall see.
|
|
|
|
|
|
|
|
|