$ sudo apt-get update$ sudo apt-get install git autoconf libtool make pkg-config libusb-1.0-0 libusb-1.0-0-dev$ git clone http://openocd.zylin.com/openocd && cd openocd && ./bootstrap$ ./configure --enable-sysfsgpio --enable-bcm2835gpio$ make$ sudo make install