cancel
Showing results for 
Search instead for 
Did you mean: 

I'm working with ubuntu and it gives me the following error doing debug

DQuir.1
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
mattias norlander
ST Employee

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...

View solution in original post

26 REPLIES 26
mattias norlander
ST Employee

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...

I had the same problem and it was very useful, thank you so much @mattias norlander​ 

Javier_Leyva08
Associate II

it has resolved my issue too.!! thank you @mattias norlander​ :D

Thank you, this worked for me as well.

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

FAres.1
Associate

I'm facing the same problem, and now, in the Linux distro I use, there's only libncurses.so.6.

What can I do?

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...

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.

So amazing. I've used Linux for my work and encountered this GDB problem. Thank Sir!