|
ChipGeek
|
 |
July 24, 2013, 03:46:40 PM |
|
I'm running Raspbian on my RPi and got this error when trying to compile the api-example.c. pi@raspberrypi /usr/src/cgminer $ gcc api-example.c -I compat/jansson -o cgminer-api In file included from api-example.c:26:0: miner.h:121:22: fatal error: libusb.h: No such file or directory compilation terminated. pi@raspberrypi /usr/src/cgminer $ I had previously done: pi@raspberrypi /usr/src/cgminer $ sudo apt-get install build-essential git dh-autoreconf libcurl4-gnutls-dev libusb-1.0-0-dev libusb-dev libncurses-dev libudev-dev yasm screen Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'libncurses5-dev' instead of 'libncurses-dev' build-essential is already the newest version. dh-autoreconf is already the newest version. git is already the newest version. libcurl4-gnutls-dev is already the newest version. libncurses5-dev is already the newest version. libudev-dev is already the newest version. libusb-1.0-0-dev is already the newest version. libusb-dev is already the newest version. screen is already the newest version. yasm is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
If anyone could help this linux noob, I'd appreciate it. BTW - I suspect the answer is: sudo apt-get install <something> but I have no idea what the something is.
|
Tip jar: 1ChipGeeK7PDxaAWG4VgsTi31SfJ6peKHw
|
|
|
chanson
Member

Offline
Activity: 84
Merit: 10
|
 |
July 24, 2013, 05:07:24 PM Last edit: July 24, 2013, 05:27:58 PM by chanson |
|
On debian-derived systems you can install the apt-file packages to allow search for packages that provide specific files. Your error message is about missing libusb.h. I'm not on a pi, but on my machine: $ apt-file search libusb.h apcupsd-doc: /usr/share/doc/apcupsd/examples/libusb.h libusb-1.0-0-dev: /usr/include/libusb-1.0/libusb.h
|
|
|
|
|
|
ChipGeek
|
 |
July 24, 2013, 05:59:11 PM |
|
On debian-derived systems you can install the apt-file packages to allow search for packages that provide specific files. Your error message is about missing libusb.h. I'm not on a pi, but on my machine: $ apt-file search libusb.h apcupsd-doc: /usr/share/doc/apcupsd/examples/libusb.h libusb-1.0-0-dev: /usr/include/libusb-1.0/libusb.h
Thank you for your help, but I'm still stuck. (Full detail included here to help other noobs reading this.) pi@raspberrypi /usr/src/cgminer $ sudo apt-get install apt-file [... lots of lines deleted here ...]
pi@raspberrypi /usr/src/cgminer $ apt-file search libusb.h E: The cache is empty. You need to run 'apt-file update' first.
pi@raspberrypi /usr/src/cgminer $ apt-file update apt-file is now using the user's cache directory. If you want to switch back to the system-wide cache directory, run 'apt-file purge' [... lots of lines deleted here ...]
pi@raspberrypi /usr/src/cgminer $ apt-file search libusb.h apcupsd-doc: /usr/share/doc/apcupsd/examples/libusb.h libusb-1.0-0-dev: /usr/include/libusb-1.0/libusb.h
pi@raspberrypi /usr/src/cgminer $ sudo apt-get install libusb-1.0-0-dev Reading package lists... Done [... lots of lines deleted here ...]
pi@raspberrypi /usr/src/cgminer $ gcc api-example.c -I compat/jansson -o cgminer-api In file included from api-example.c:26:0: miner.h:121:22: fatal error: libusb.h: No such file or directory compilation terminated.
|
Tip jar: 1ChipGeeK7PDxaAWG4VgsTi31SfJ6peKHw
|
|
|
|
Aurum
|
 |
July 24, 2013, 06:16:23 PM |
|
Is there anyway I can include a comment in my cgminer.conf file? I tried /* comment */ but it crashes.
|
ghghghfgh
|
|
|
chanson
Member

Offline
Activity: 84
Merit: 10
|
 |
July 24, 2013, 06:50:31 PM |
|
On debian-derived systems you can install the apt-file packages to allow search for packages that provide specific files. Your error message is about missing libusb.h. I'm not on a pi, but on my machine: $ apt-file search libusb.h apcupsd-doc: /usr/share/doc/apcupsd/examples/libusb.h libusb-1.0-0-dev: /usr/include/libusb-1.0/libusb.h
Thank you for your help, but I'm still stuck. (Full detail included here to help other noobs reading this.) pi@raspberrypi /usr/src/cgminer $ sudo apt-get install apt-file [... lots of lines deleted here ...]
pi@raspberrypi /usr/src/cgminer $ apt-file search libusb.h E: The cache is empty. You need to run 'apt-file update' first.
pi@raspberrypi /usr/src/cgminer $ apt-file update apt-file is now using the user's cache directory. If you want to switch back to the system-wide cache directory, run 'apt-file purge' [... lots of lines deleted here ...]
pi@raspberrypi /usr/src/cgminer $ apt-file search libusb.h apcupsd-doc: /usr/share/doc/apcupsd/examples/libusb.h libusb-1.0-0-dev: /usr/include/libusb-1.0/libusb.h
pi@raspberrypi /usr/src/cgminer $ sudo apt-get install libusb-1.0-0-dev Reading package lists... Done [... lots of lines deleted here ...]
pi@raspberrypi /usr/src/cgminer $ gcc api-example.c -I compat/jansson -o cgminer-api In file included from api-example.c:26:0: miner.h:121:22: fatal error: libusb.h: No such file or directory compilation terminated.
I would expect something like "-I /usr/include/libusb-1.0" in the compile command. Maybe you need to re-run ./configure?
|
|
|
|
|
kano
Legendary
Offline
Activity: 4788
Merit: 1910
Linux since 1997 RedHat 4
|
 |
July 24, 2013, 09:50:10 PM |
|
Is there anyway I can include a comment in my cgminer.conf file? I tried /* comment */ but it crashes.
No. You can put unused objects: "janssonsux" : "yes it does" However, they will be lost if you write the settings back to the file from cgminer.
|
|
|
|
|
Aurum
|
 |
July 25, 2013, 12:10:32 AM Last edit: July 25, 2013, 03:00:03 AM by Aurum |
|
Is there anyway I can include a comment in my cgminer.conf file? I tried /* comment */ but it crashes.
No. You can put unused objects: "janssonsux" : "yes it does" However, they will be lost if you write the settings back to the file from cgminer. I tried a few variations but they all failed, e.g. "url" : "stratum+tcp://pool1.us.multipool.in:3348" : " MegaCoin (MEC) ", cgminer.exe: -c: JSON decode of file 'MultiPool_Miner_Aurum.conf' failed '}' expected near ':'
|
ghghghfgh
|
|
|
kano
Legendary
Offline
Activity: 4788
Merit: 1910
Linux since 1997 RedHat 4
|
 |
July 25, 2013, 12:38:13 AM |
|
Is there anyway I can include a comment in my cgminer.conf file? I tried /* comment */ but it crashes.
No. You can put unused objects: "janssonsux" : "yes it does" However, they will be lost if you write the settings back to the file from cgminer. I tried a few variations but they all failed, e.g. "url" : "stratum+tcp://pool1.us.multipool.in:3348" : " MegaCoin (MEC) ", cgminer.exe: -c: JSON decode of file 'MultiPool_Miner_Ron.conf' failed '}' expected near ':' No, I mean you can put unused items in there: "url" : " http://sendyourcoinstome.cam:3334", "url_666" : "damn I hate json", You can't break the json rules.
|
|
|
|
|
Aurum
|
 |
July 25, 2013, 03:16:45 AM |
|
Is there anyway I can include a comment in my cgminer.conf file? I tried /* comment */ but it crashes.
No. You can put unused objects: "janssonsux" : "yes it does" However, they will be lost if you write the settings back to the file from cgminer. I tried a few variations but they all failed, e.g. "url" : "stratum+tcp://pool1.us.multipool.in:3348" : " MegaCoin (MEC) ", cgminer.exe: -c: JSON decode of file 'MultiPool_Miner_Aurum.conf' failed '}' expected near ':' No, I mean you can put unused items in there: "url" : " http://sendyourcoinstome.cam:3334", "url_666" : "damn I hate json", You can't break the json rules. Oh, json rules, I thought you meant Jason sucks  Works great, thanks.
|
ghghghfgh
|
|
|
|
twmz
|
 |
July 25, 2013, 04:13:08 AM |
|
Oh, json rules, I thought you meant Jason sucks  Works great, thanks. jannson is the c library cgminer uses for parsing json. And it is not wonderful 
|
Was I helpful? 1 TwmzX1wBxNF2qtAJRhdKmi2WyLZ5VHRs WoT, GPGBitrated user: ewal.
|
|
|
|
Foss
|
 |
July 25, 2013, 08:25:12 AM |
|
ckolivasHi, can you add into cgminer: 1) SHA 3 algorithm for mining CopperLark 2) time counter like in BFGMiner: 
|
BTC: 147kwy3LndX6jkwGC3mU9j6rZMWU8g1Amd DASH: XhR4V6ChnQp7LDWhpArwBMXARxU5LGiq8a ETH: 0xe4b10dff72b58a363a3c8b70e21cfb236e2697c9
|
|
|
|
flound1129
|
 |
July 26, 2013, 12:10:16 AM |
|
Why does this happen?  In cgminer I have queue="1", why is cgminer continuing to submit difficulty 16 shares after the pool diff changes to 32? This is in 3.3.1.
|
Multipool - Always mine the most profitable coin - Scrypt, X11 or SHA-256!
|
|
|
|
flound1129
|
 |
July 26, 2013, 12:15:28 AM |
|
Anyone have any clue why multiple people have noticed weird hashrate increases a few nights ago while using LTC in cgminer? See the posts here: https://asktom.cf/index.php?topic=260642.msg2789664#msg2789664Apparently over the night a few nights ago, while tinkering with my 7970 (which was not performing as well as it should be, but it never has), it just decided to work while I was sleeping. Upped the hashrate from 522KH/s to >700KH/s (which it should be getting) for no reason. I checked it's status the next morning, and it instantly decided to go back to it's slow 522KH/s. Havn't been able to get it back up to the faster speeds since. This wasn't just CGMiner mis-reporting the hashrate, either. The WU: rate was much higher than it had been. And other people have noticed similar issues. I'm not sure if their issue was the same night as mine, as I think our dates were 1 night off. Any help would be appreciated. Thanks! 
|
Multipool - Always mine the most profitable coin - Scrypt, X11 or SHA-256!
|
|
|
|
erk
|
 |
July 26, 2013, 12:27:30 AM |
|
|
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4648
Merit: 1701
Ruu \o/
|
 |
July 26, 2013, 12:49:02 AM |
|
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
kano
Legendary
Offline
Activity: 4788
Merit: 1910
Linux since 1997 RedHat 4
|
 |
July 26, 2013, 02:27:25 AM |
|
Why does this happen? https://i.imgur.com/BPqpMjU.pngIn cgminer I have queue="1", why is cgminer continuing to submit difficulty 16 shares after the pool diff changes to 32? This is in 3.3.1. Irrelevant of the value of queue, it is not ideal for cgminer to throw away work it is doing (or just done) when diff changes. Tell the pool to fix their code. ... an issue with stratum that was swept under the carpet with a hack.
|
|
|
|
|
Jcw188
|
 |
July 26, 2013, 02:54:10 AM |
|
I have finally gotten some mining going after a lot of fooling around with drivers. I'm running xp 32 bit, Radeon 6670s, sdk 2.5 and catalyst 11.7. I have two machines that I believe are almost identical. However one I have running fine at 94 khash/sec.
The big problem is the other machine that seems to be getting a lot of hardware errors (hw). Anyone hav any ideas what can cause this? I'm just running it standard with I 15 and have tried fooling around with the core Clock and memory. Thanks for help I just don't understand hat can cause hw errors.
|
|
|
|
|
|
flound1129
|
 |
July 26, 2013, 03:19:17 AM |
|
Why does this happen? https://i.imgur.com/BPqpMjU.pngIn cgminer I have queue="1", why is cgminer continuing to submit difficulty 16 shares after the pool diff changes to 32? This is in 3.3.1. Irrelevant of the value of queue, it is not ideal for cgminer to throw away work it is doing (or just done) when diff changes. Tell the pool to fix their code. ... an issue with stratum that was swept under the carpet with a hack. I am the pool, and this code isn't live yet. I'm trying to patch stratum to do it the correct way. What do you suggest?
|
Multipool - Always mine the most profitable coin - Scrypt, X11 or SHA-256!
|
|
|
|
Jcw188
|
 |
July 26, 2013, 03:24:33 AM |
|
I have finally gotten some mining going after a lot of fooling around with drivers. I'm running xp 32 bit, Radeon 6670s, sdk 2.5 and catalyst 11.7. I have two machines that I believe are almost identical. However one I have running fine at 94 khash/sec.
The big problem is the other machine that seems to be getting a lot of hardware errors (hw). Anyone hav any ideas what can cause this? I'm just running it standard with I 15 and have tried fooling around with the core Clock and memory. Thanks for help I just don't understand hat can cause hw errors.
Btw this is scrypt mining, coincidentally at flounds pool multipool.in. An yes this stratum issue is really annoying, hits both my miners to cause often disconnects which I can only assume are slowing my hashing.
|
|
|
|
|
|
Aurum
|
 |
July 26, 2013, 03:57:07 AM |
|
I have finally gotten some mining going after a lot of fooling around with drivers. I'm running xp 32 bit, Radeon 6670s, sdk 2.5 and catalyst 11.7. I have two machines that I believe are almost identical. However one I have running fine at 94 khash/sec.
The big problem is the other machine that seems to be getting a lot of hardware errors (hw). Anyone hav any ideas what can cause this? I'm just running it standard with I 15 and have tried fooling around with the core Clock and memory. Thanks for help I just don't understand hat can cause hw errors.
Btw this is scrypt mining, coincidentally at flounds pool multipool.in. An yes this stratum issue is really annoying, hits both my miners to cause often disconnects which I can only assume are slowing my hashing. I don't have any 6xxxs but my 5970s mine scrypt using Catalyst 12.8 and 7970s using the latest Catalyst 13.4. Don't install SDK separately, just let Catalyst install it. Are you using CGMiner 3.3.1? Sometimes when a miner is headless the card in slot 1 runs very slow. If I plug in a monitor or a dummy load it ramps up to full speed even if I unplug monitor later. If you go back a few pages ckolivas was discussing the stratum disconnect issue says there's a fix but it hasn't come out in a release yet. He described a way to pull the fix code out of the git library.
|
ghghghfgh
|
|
|
|