[Shell] openocd: error while loading shared libraries: libusb-1.0.so.0: cannot open shared object

问题详情
WARNING: tool openocd-esp32 version v0.11.0-esp32-20221026 is installed, but returned non-zero exit code (127) with error message: /root/.espressif/tools/openocd-esp32/v0.11.0-esp32-20221026/openocd-esp32/bin/openocd: error while loading shared libraries: libusb-1.0.so.0: cannot open shared object file: No such file or directory

解决方法

apt-get install libusb-1.0-0
export LD_LIBRARY_PATH=/path/to/your/libusb-1.0.so.0:$LD_LIBRARY_PATH

你可能感兴趣的:(Shell,用法与编程,shell)