Openocd error "Can't find interface/stlink.cfg"

Hello,
I also ran into this problem, apt still includes 0.10.0, i found that building openocd from source worked for me. I thought it might be useful to write out some instructions of what i did. I’m a Linux newbie so i presume there are others too and hope this helps a bit even if it’s slightly incomplete or what-not.

// well i started by removing the version that sudo apt-get install openocd gave me, which was 0.10.0
$ sudo apt-get remove openocd

// Website https://openocd.org/pages/documentation.html
// clone repo
$ git clone https://git.code.sf.net/p/openocd/code openocd-code
$ cd openocd-code

// read the "README" :)

// from the README
// check/gather dependencies
$ libtool -v
$ pkg-config --version
$ libtool --version
$ autoconf --version
$ automake --version
$ texinfo --version


// install missing dependencies
$ sudo apt install autoconf
$ sudo apt install automake
$ sudo apt-get install libtool

// make openocd, i went for 0.11.0
$ git checkout v0.11.0
$ git submodule init
$ git submodule update --init --recursive
$ ./bootstrap
$ ./configure
$ make
$ sudo make install

//verify installation/version
$ which openocd
$ openocd --version
2 Likes