Diablo-D3 / DiabloMiner

OpenCL miner for Bitcoin
https://bitcointalk.org/index.php?topic=1721.0
GNU General Public License v3.0
538 stars 217 forks source link

entering the command line argument for the OSX error 54 #79

Closed ghost closed 11 years ago

ghost commented 11 years ago

I fully understand the issue surrounding the error 54 on OSX, however its the solution the I don't quite comprehend. I'm running and nvidia 570 with a max worksize of 960. I know I need too tell the program to run on a lower max worksize by entering w-, but where do I enter the argument and what size should I set. will 960 work?

Thanks!

Diablo-D3 commented 11 years ago

I don't think 960 is the correct number for you. All nvidia is either 256 or 512. When you get the "worksize is too large" error, you do -w 64. You enter this on the command line with the rest of your arguments.

ghost commented 11 years ago

Thats the bit I don't understand. I'm not a coder nor have I ever used a terminal based program, so I don't actually know what or where my other "arguments" are. Its that final bit that I'm struggling with. Also, you say that all nvidia cards have a work size of 256 or 512, but my 650Ti was running successfully at 1024 as suggested by the drivers, I just started it up and it ran. Thanks anyway! Jake

Diablo-D3 commented 11 years ago

I don't understand your question then, DiabloMiner is a command line program and it needs arguments to run at all. Arguments are the stuff thats after the command itself. DiabloMiner has a README that explains this all.

ghost commented 11 years ago

The version I downloaded came from the 50BTC website. When downloaded I was greeted with a program icon of a bitcoin with a little ball baring like thing at the bottom, when I opened it, I was launched into terminal where I was prompted to input the pool address, then the pool code, then my user ID, then my password, pressing enter after each of them to bring up the next field. After pressing enter on the last field, it just started running, it was closer to a terminal based GUI than any form of coding type input. Is this what I should be seeing?

Diablo-D3 commented 11 years ago

Ahh. I don't support that version, they added some weird menu thing on top.

ghost commented 11 years ago

that'll be it then! personally I liked it, but not having used yours I can't compare> have you got a like to your version for OSX?

Thanks. Jake

Diablo-D3 commented 11 years ago

Its Java, it runs on any OS that has Java installed. Check the README for download URL.

ghost commented 11 years ago

Perfect, thank you. I'll shall come back with my results!

ghost commented 11 years ago

Apparently I don't have a program that can read .md files... Have you got any solutions for this? thanks, Jake

TimSchumann commented 11 years ago

Any text editor can open .md files, it will just be in Markdown syntax.

On Wed, Aug 28, 2013 at 1:11 AM, soulguitarist notifications@github.comwrote:

Apparently I don't have a program that can read .md files... Have you got any solutions for this? thanks, Jake

— Reply to this email directly or view it on GitHubhttps://github.com/Diablo-D3/DiabloMiner/issues/79#issuecomment-23397916 .

ghost commented 11 years ago

thanks. Right, i've added all the required arguments to the shell and saved it, so hopefully last stupid question, how do I run the damn thing?!?

ghost commented 11 years ago

OK, i'm getting errors. I am adding this "./DiabloMiner-OSX.sh -u jakebennettyoung@gmail.com -p ****** -o pool.50btc.com -r 8332" to the OSX shell (both with and without "./DiabloMiner-OSX.sh" and having the arguments on different lines) and I get this error. "Jake-Bennett-Youngs-Mac-Pro:~ jakebennettyoung$ #!/bin/sh Jake-Bennett-Youngs-Mac-Pro:~ jakebennettyoung$ export GPU_USE_SYNC_OBJECTS=1 Jake-Bennett-Youngs-Mac-Pro:~ jakebennettyoung$ cd $(dirname ${0}) dirname: illegal option -- b usage: dirname path Jake-Bennett-Youngs-Mac-Pro:~ jakebennettyoung$ exec java -Xmx32m -cp target/libs/*:target/DiabloMiner.jar -Djava.awt.headless=true -Djava.library.path=target/libs/natives com.diablominer.DiabloMiner.DiabloMiner $@ 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:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

[Process completed]" All this is completely beyond me :(

Diablo-D3 commented 11 years ago

Wow, you really don't know how to use the command line.

cd into the Diablominer dir, and do ./DiabloMiner-OSX.sh your-args

ghost commented 11 years ago

No, I haven't got an effing clue! And should it be like this

"cd $(./DiabloMiner-OSX.sh -u jakebennettyoung@gmail.com -p ****** -o localhost r- 8332 w- 64 ${0})"? and if I'm mining in the 50btc pool soundn't the host be pool.50btc.com, not localhost?

Thanks, Jake

Diablo-D3 commented 11 years ago

No, it should be exactly as how I written. And yes, your -u -p -o and -r all need to be set correctly for your pool. And you're not cd-ing into the DiabloMiner dir, write "cd thedirectory" and then press enter then type the DiabloMiner command.

ghost commented 11 years ago

I feel like a 4 year old again, although that was only 11 years ago. If i understand you correctly (which I probably don't), this "#!/bin/sh export GPU_USE_SYNCOBJECTS=1 cd $(dirname ${0}) exec java -Xmx32m -cp target/libs/:target/DiabloMiner.jar -Djava.awt.headless=true -Djava.library.path=target/libs/natives com.diablominer.DiabloMiner.DiabloMiner $@ cd thedirectory ./DiabloMiner-OSX.sh -u jakebennettyoung@gmail.com -p *_**** o-pool.50btc.com -r 8332 w- 64" should work, but it doesn't. I feel like I'm really pissing you off right now, but this is literally the first time I've done any command line.

Diablo-D3 commented 11 years ago

I don't know why you're typing the contents of a .sh file out. I didn't tell you to do this.

You should be typing in exactly two commands, "cd the-directory-for-DiabloMiner" and "./DiabloMiner-OSX.sh your-arguments" and thats it. If it says DiabloMiner-OSX.sh isn't a command, you haven't cd'ed into the right directory.

ghost commented 11 years ago

Right, I did some goggling, and if that cd isn't right, then what directory should I be cding, because I can't work out why this is right. "#!/bin/sh export GPU_USE_SYNCOBJECTS=1 cd $(dirname ${0}) exec java -Xmx32m -cp target/libs/:target/DiabloMiner.jar -Djava.awt.headless=true -Djava.library.path=target/libs/natives com.diablominer.DiabloMiner.DiabloMiner $@ cd dir DiabloMiner ./DiabloMiner-OSX.sh -u jakebennettyoung@gmail.com -p *_**** -o pool.50btc.com -r 8332 -w 64"

Also, every time, the error isn't even talking about cding the wrong directory, its talking about this line here. "com.diablominer.DiabloMiner.DiabloMiner" I really appreciate all the help you've given, but I'm not going to get it, and therefor keep on bugging you, until you explain it in a way that a 15 year old brit who's never done ANY command line can understand, because thats who I am. Thanks, Jake

ghost commented 11 years ago

Ok, just to let you guys know, I got it working. Turns out, I've got 0 knlowege on what I was supposed to be doing. Instead of just runing the shell by cding into it via terminal, I was copying the context of shell file into terminal with the cd and arguments. So yea, noob level infinity. My new problem is that I'm getting incredibly low hashrates on my gtx 570 (between 8 and 18 mh/s)

Diablo-D3 commented 11 years ago

Nvidia cards are exceptionally slow at mining, to the point its not even really worth using, although 18 mhash/sec sounds rather low.