Bitcoin Forum

Bitcoin => Mining => Topic started by: fifthmanstanding on May 17, 2011, 01:10:08 AM



Title: Help setting up miner for OS X.
Post by: fifthmanstanding on May 17, 2011, 01:10:08 AM
Hi All,

Lets first assume I know nothing about anything.
I run a mac pro on Snow Leopard 10.6.6 and have an Nvidia GeForce 8800GT card.
I am attempting to get DiabloMiner up and running, join a mining pool and mine.

At this point in time I have attempted to run the DiabloMiner-OSX.sh file in terminal. And I am met with this message:

fifths-mac-pro:~ Fifth$ /DiabloMiner-OSX.sh
Exception in thread "main" java.lang.NoClassDefFoundError: com/diablominer/DiabloMiner/DiabloMiner
Caused by: java.lang.ClassNotFoundException: com.diablominer.DiabloMiner.DiabloMiner
   at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
fifths-mac-pro:~ Fifth$

From what I can see (googled the error message) this is a fairly common error message. Yet I can only find it displayed here:
http://bitcointalk.org/index.php?topic=1721.0

The question of 'what the heck is this and why is it doing it' is dignified a few times but the process to fix it is not explained in a method or using language I personally am familiar with. Would anyone help me out here?


Title: Re: Help setting up miner for OS X.
Post by: bulanula on May 17, 2011, 01:14:52 AM
Forget it man get a real PC that can be upgraded + run Linux and dump nvidia for ati.


Title: Re: Help setting up miner for OS X.
Post by: fifthmanstanding on May 17, 2011, 01:24:58 AM
yeah......not here to play fanboy. Just want an answer to a question.


Title: Re: Help setting up miner for OS X.
Post by: 1bitc0inplz on May 17, 2011, 01:28:47 AM
Make sure you download the compiled version of the miner from the official diablo thread.

That error message is essentially telling you that it cannot find the compiled app. I assume you downloaded this from github directly, and didn't run it through a compiler?

If you get it from the official thread it should "just work".


Title: Re: Help setting up miner for OS X.
Post by: fifthmanstanding on May 17, 2011, 01:32:44 AM
went here:
https://github.com/Diablo-D3/DiabloMiner

downloaded the link 'DiabloMiner-OSX.sh" opened it up. dragged into a terminal. and I get that error message.



Title: Re: Help setting up miner for OS X.
Post by: 1bitc0inplz on May 17, 2011, 01:38:09 AM
went here:
https://github.com/Diablo-D3/DiabloMiner

downloaded the link 'DiabloMiner-OSX.sh" opened it up. dragged into a terminal. and I get that error message.



Yeah, that's the problem.

Go here, http://bitcointalk.org/index.php?topic=1721.0

That's the "official" diablo miner thread. The first post is from it's creator (the same guy who has it at GitHub). However, unlike GitHub, in his first post he updates the "Newest Binary" link to have a version already compiled for you. If you download it from that first post you shouldn't have any problems running it with the DiabloMiner-OSX.sh script from Terminal.

However, don't drag it to Terminal. Instead, open Terminal up and cd into the directory you extracted DiabloMiner in. Then run it... here is an example of my settings:

Quote
./DiabloMiner-OSX.sh -u myusernamehere -p youwish -o mining.bitcoin.cz -r 8332 -v 2 -f 2 -w 129

Of course you'll need to change you're username, password, and which pool (and port) you use. And those -v, -f, and -w flags will need to be tweaked depending on which card you have... but those values should get you started.


Title: Re: Help setting up miner for OS X.
Post by: fifthmanstanding on May 17, 2011, 03:08:58 AM
Worked like a charm. You're a lifesaver man. Thanks. The only thing I'm unclear on is the login. Would I use my login to the mining pool site? to this site? which login?


Title: Re: Help setting up miner for OS X.
Post by: 1bitc0inplz on May 17, 2011, 03:22:48 AM
Worked like a charm. You're a lifesaver man. Thanks. The only thing I'm unclear on is the login. Would I use my login to the mining pool site? to this site? which login?

Glad to hear it worked.

It certainly will not be the login to this site.

Which pool did you sign up for? I mine on Slush's pool, and he lets me register my miner's individually. So, each of my miners has it's own user and password, which is different from what I log into Slush's website with. Checkout http://bitcointalk.org/index.php?topic=1976.0 (http://bitcointalk.org/index.php?topic=1976.0)


Title: Re: Help setting up miner for OS X.
Post by: fifthmanstanding on May 17, 2011, 03:26:22 AM
As far as pools go, are some better than others? Is success and speed determined by the number of users?


Title: Re: Help setting up miner for OS X.
Post by: kcgreene on December 04, 2012, 06:28:44 AM
old thread but just in case anyone every comes across it like I did and cant get their miner setup for OS X..

The above parameters got me close but it was still throwing errors for me. In the end what worked was "-r 8332 -v2 -w128 -na".

For your reference this machine is a Mac Pro running 10.8.2 with two GeForce GT 120s in it but I can only get one of the cards to spool up with Diablo..



Title: Re: Help setting up miner for OS X.
Post by: DobZombie on December 04, 2012, 11:45:08 AM
The only thing I'm unclear on is the login. Would I use my login to the mining pool site? to this site? which login?

http://lachroniquefaciledumercredi.files.wordpress.com/2012/04/lurkmoar.jpg

?


Title: Re: Help setting up miner for OS X.
Post by: kcgreene on December 04, 2012, 03:56:52 PM
additional notes. Just tried the same parameters as above on my 10.8 imac with a ATI Radeon HD 6770M in it and it works as well but at about 10x the mhash.