2020-02-25 12:47 PM
Could not determine GDB version using command: /opt/st/stm32cubeide_1.2.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.linux64_1.0.0.201904181610/tools/bin/arm-none-eabi-gdb --version
/opt/st/stm32cubeide_1.2.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.linux64_1.0.0.201904181610/tools/bin/arm-none-eabi-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
Solved! Go to Solution.
2020-02-26 04:24 AM
The error message suggests that your Ubuntu system is lacking libncurses. Try:
sudo apt-get install libncurses5
If that does not help. Let us know which Ubuntu version...
2020-02-26 04:24 AM
The error message suggests that your Ubuntu system is lacking libncurses. Try:
sudo apt-get install libncurses5
If that does not help. Let us know which Ubuntu version...
2020-04-18 12:13 PM
I had the same problem and it was very useful, thank you so much @mattias norlander
2020-07-11 12:50 AM
it has resolved my issue too.!! thank you @mattias norlander :D
2020-09-23 08:27 AM
Thank you, this worked for me as well.
2021-08-25 04:57 AM
Thank you.
It resolved my issue,
STM32CubeIDE Version: 1.7.0 Build: 10852_20210715_0634
STM32CubeProgrammer v2.8.0
ST-LINK GDB server. Version 5.9.1
Board : STM32L562E-DK
Ubuntu 20.04.3 LTS , x64
Compiler toolchain: com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.linux64_2.0.0.202105311346 & com.st.stm32cube.ide.mcu.externaltools.make.linux64_2.0.0.202105311346
2021-11-07 07:59 AM
I'm facing the same problem, and now, in the Linux distro I use, there's only libncurses.so.6.
What can I do?
2021-11-08 02:32 AM
Hi,
The toolchain was built depending on libncurses5. The 5 --> 6 step implies that they are not binary compatible. Hence you have to rely on libncurses5.
Wich distro are you using?
You should be able to install them side-by-side. But in some distros the package name including libncurses5 may be different...
2021-11-08 07:20 AM
Thanks for your reply. I'm using the Gentoo distro, and it doesn't supply libncurses 5 anymore. Fiddling a bit, I've noticed that, after solving libncurses issue, there will be some more libraries with newer versions to handle. For now, I'll be using an Ubuntu 18 virtual machine, but that's quite awful.
2021-12-28 07:18 PM
So amazing. I've used Linux for my work and encountered this GDB problem. Thank Sir!