On ubuntu; debug says "Could not determine GDB version"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-25 12:47 PM - last edited on ‎2025-02-11 3:24 PM by Andrew Neil
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.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-26 4: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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-26 4: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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-18 12:13 PM
I had the same problem and it was very useful, thank you so much @mattias norlander​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-11 12:50 AM
it has resolved my issue too.!! thank you @mattias norlander​ :D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-23 8:27 AM
Thank you, this worked for me as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-25 4: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-07 7: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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-08 2: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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-08 7: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-28 7:18 PM
So amazing. I've used Linux for my work and encountered this GDB problem. Thank Sir!
