# Build & Install OpenOCD ###### tags: `OpenOCD` OpenOCD's [README](https://sourceforge.net/p/openocd/code/ci/master/tree/README). ## Prepare ### Install packages * make * libtool * pkg-config * automake * automake * texinfo * libftdi * HIDAPI ### Get source ```shell= $ git clone https://git.code.sf.net/p/openocd/code openocd ``` ## Build & Install Another reference: [Arch Linux's package source](https://github.com/archlinux/svntogit-community/blob/packages/openocd/trunk/PKGBUILD) ```shell= $ cd openocd $ ./bootstrap $ ./configure --prefix=/usr $ make $ sudo make install ``` Also, install the udev rules for the interface devices. ```shell= install -Dm 644 contrib/60-openocd.rules /usr/lib/udev/rules.d/60-openocd.rules sudo udevadm control --reload-rules && sudo udevadm trigger ```