Works great, thanks.
jannson is the c library cgminer uses for parsing json. And it is not wonderful
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
$ 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 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.
$ 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 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.
$ 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 $ 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 $
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.