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.
2022-02-06 08:46 AM
You can add local toolchain in Windows->preferences-> toolchain manager
,but it`s hard. For Arch i just use: https://aur.archlinux.org/packages/ncurses5-compat-libs
I believe you will find a way for yourself by combining this knowledge.
2022-03-12 11:49 AM
I just encountered the same problem. CubeIDE was unable to determine the version of arm-none-eabi-gdb. I went ahead and installed ncurses5-compat-libs from the aur and now i get the following error when debugging/launching code in CubeIDE:
Could not determine GDB version using command: arm-none-eabi-gdb --version
arm-none-eabi-gdb: /usr/lib/libncurses.so.5: version `NCURSES_5.3.20021019' not found (required by arm-none-eabi-gdb)
arm-none-eabi-gdb: /usr/lib/libncurses.so.5: version `NCURSES_5.1.20000708' not found (required by arm-none-eabi-gdb)
arm-none-eabi-gdb: /usr/lib/libncurses.so.5: version `NCURSES_5.6.20061217' not found (required by arm-none-eabi-gdb)
arm-none-eabi-gdb: /usr/lib/libncurses.so.5: version `NCURSES_5.0.19991023' not found (required by arm-none-eabi-gdb)
2022-07-07 12:34 AM
For anyone using Manjaro or Arch linux, installing this package from the AUR solves the problem:
http://aur.archlinux.org/packages/tnt-ncurses5-compat-libs
Note that the default ncurses5-compat-libs package is too new, the one above will force its removal.
2023-12-13 03:03 AM
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/n/ncurses/libtinfo6_6.2-0ubuntu2.1_amd64.deb Temporary failure resolving 'in.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
2024-02-04 11:52 PM
Same problem here, could you fix the problem somehow?
2024-03-21 06:58 AM
I have the same problem.
Issue: The libncurses5 library was deprecated in previous Ubuntu versions and was removed from the recent version. ST should have dealt with this issue right when the library version became deprecated and not let it come to this point.
Workaround:
sudo add-apt-repository deb http://security.ubuntu.com/ubuntu lunar-security main universe
sudo apt-get update
sudo apt-get install libncurses5
2024-03-21 07:28 AM
Ok. I got an other workaround :D
Just downgrade your Ubuntu... I downgraded to 20.04 and after that it was working just fine.
I will try out your solution when I run in the same problem again. Thanks!
2024-03-26 09:09 AM - edited 2024-03-26 11:05 AM
On Ubuntu 23.10 I encountered the same problem, but `libncurses5` cannot be installed anymore.
New Solution:
`sudo apt install gdb-multiarch`
And then, like shown some posts ago, go to "Window" -> "Preferences" -> "STM32Cube" -> "Toolchain Manager" -> "Add Local" and set it up like this:
Then "Set Default" on this new entry.
2024-03-26 09:57 AM - edited 2024-03-26 11:06 AM
My solution doesn't survive a program restart. Any idea, why and how to fix? And it doesn't build anymore.
2024-03-26 10:35 AM - edited 2024-03-26 02:24 PM
So, I made a quick, ugly workaround:
sudo -i
apt install gdb-multiarch # as mentioned before
cd /opt/st/stm32cubeide_1.15.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.linux64_1.0.100.202403111256/tools/bin # or wherever you installation is
mv arm-none-eabi-gdb arm-none-eabi-gdb.bak
ln -s /usr/bin/gdb arm-none-eabi-gdb
With this, building AND debugging works again on Ubuntu 23.10.