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.
2025-03-25 2:18 PM - edited 2025-03-25 2:18 PM
This solution also doesn't work for me.I'm having same behavior as Richard.
My question would be what linux distribution is proven to work for STM32 tools?
2025-03-25 2:45 PM
Hi,
i have latest MxLinux , MX 23.5 Libretto;
STM32CubeIDE 1.18.0 : installed 1.18. amd64_deb_bundle , working all fine - except : no debug, because still needs this 20 y old libs, libncurses.so5 or so, but after install gdb-multiarch (and making symlink) now fine.
And (until now) never crash or suddenly cannot open ioc /Cube file and hang up then, what happened with (my last) version 1.13.
Some days ago needed CubeProgrammer, download en.stm32cubeprg-lin-v2-19-0, unzip, start install - ok. working.
Here seems from install to running it all ok, no problems at all.
2025-03-30 8:21 AM - edited 2025-03-30 8:22 AM
OS: 24.04.2 LTS (Noble Numbat)
STM32CubeIDE Version: 1.18.0
Steps:
1. arm-none-eabi-... installation:
- Download the Latest Release
x86_64 Linux hosted cross toolchains
AArch32 bare-metal target (arm-none-eabi)
arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz
https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
- Extract the Archive
tar -xf arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz
- Move It to /opt
sudo mv arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi /opt/arm-toolchain
- Add It to Your PATH
echo 'export PATH=/opt/arm-toolchain/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
2. libncurses5 installation - Solution from here:
https://askubuntu.com/questions/1531398/how-to-install-libncurses-so-5-for-ubuntu-24-04
https://stackoverflow.com/a/39840595
Add to source list and then install:
deb http://security.ubuntu.com/ubuntu focal-security main universe
echo "deb http://security.ubuntu.com/ubuntu focal-security main universe" > /etc/apt/sources.list.d/ubuntu-focal-sources.list
sudo apt-get update
sudo apt-get install libncurses5
3. Nothing else done in preferences
2025-04-01 12:20 PM
My configuration : Ubuntu 24.10 / STM32CubeIDE : 1.18.0.
After installing all the necessary packages for gdb and libncurses.so.6 (since libncurses.so.5 is not available with this version of Ubuntu), the workaround I found is to create a symbolic link for arm-none-eabi-gdb pointing to my local gdb: /usr/bin/arm-none-eabi-gdb.
you can follow this steps :
remove or just change the name of arm-none-eabi-gdb
sudo mv /opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/arm-none-eabi-gdb /opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/arm-none-eabi-gdb.org
create the Symbolic Link
sudo ln -s /usr/bin/arm-none-eabi-gdb /opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/arm-none-eabi-gdb
2025-04-09 12:01 AM
For people using ubuntu 24.04, I am on ubuntu 24.04 x64. And I met same problem, following steps works for me.
step 1:
wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb
step 2:
wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.1_amd64.deb
step3:
sudo dpkg -i libtinfo5_6.3-2ubuntu0.1_amd64.deb libncurses5_6.3-2ubuntu0.1_amd64.deb
step4:
ls -l /lib/x86_64-linux-gnu/libncurses.so.5
You should see the output be like:
lrwxrwxrwx 1 root root 17 May 17 2023 /lib/x86_64-linux-gnu/libncurses.so.5 -> libncurses.so.5.9
2025-04-09 9:24 AM
Please tell us step by step for this process
2025-04-09 9:27 AM
after this what can i do?
2025-04-09 4:56 PM
Hi, the problem should be solved, you can try debug with your chip.
2025-04-11 5:27 PM - edited 2025-04-11 5:46 PM
Hi !
I have solve the problem in another way.And it wasn't working before. You can see my previous post, that I had problems also. I was frustrated and complettely removed STM32CubeIDE but I after saw post from Zhe-WANG, decided to try again.
Then I remembered that I have read about below descibed trick with pausing somewhere, but before I was only install package with jlink rules, but didn't relized that I have libncurses5 and libtinfo5 there. :)
I'm using latest Linux Mint Linux Mint 22.1 Cinnamon which is based on Ububtu 24.04.
Download latest CubeIde script installation file. Mine was stm32cubeide_1.18.0_24413_20250227_1633_amd64.deb_bundle.sh
Start installation in command line bt sudo sh ./stm32cubeide_1.18.0_24413_20250227_1633_amd64.deb_bundle.sh
During the installation of STM32Cube, when prompted for installing JLink rules, STOP and go to your installation folder.
There would be new folder (locked by installation) which contain all installation files including
libncurses5_6.4-2_amd64.deb
libtinfo5_6.4-2_amd64.deb, which are version 5 what we need.
and segger-jlink-udev-rules-8.12c_final-linux-all.deb
For some reason installation script is not installing them.
You need to get into that folder by getting it as root, and to save all files somewhere else. Very important since installation will remove it.
Since you have this files saved, continue installation as normal.
When all is finished, install this deb files mentioned above with dpgk -i command.
When I installed this, STM32CubeIDE is not complaing about "Can't find GDB" and debugging is working.
Hope this help.
2025-04-17 5:23 AM
saved my day!
Thanks.
(Linux Mint 22.1 / st-stm32cubeide_1.18.1_24813_20250409_2138_amd64.deb_bundle)