Page 1 of 1

Linux Mint 22 debug issues

Posted: Fri Jan 03, 2025 4:59 pm
by wolf
Hi all!

I installed Linux Mint 22 and have it up to date.
After installing ChibiStudio_Linux_2023_02.7z evrything works fiine until it comes to debugging an STM32 project.

OpenOCD on STLink (prompts for .cfg target configuration) works ok,
but executing RT-STM32F411RE-NUCLEO64 (build-ch.elf)(OpenOCD, Flash and Run) gives an error message related to the GDB.

Here is what it says:

Could not determine GDB version using command: arm-none-eabi-gdb --version
arm-none-eabi-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory


Searching the net for a solution, it seems that libnurses.so.5 is not available on Linux Mint 22 for security reasons.

Any idea on how to get this working?

Thanks ansd regards,
Wolf

Re: Linux Mint 22 debug issues

Posted: Fri Jan 03, 2025 5:10 pm
by Giovanni
Hi,

Open a shell then:

cd /lib/x86_64-linux-gnu
sudo ln -s ./libncursesw.so.6 ./libncursesw.so.5
sudo ln -s ./libncurses.so.6 ./libncurses.so.5

I am redoing the ChibiOS Mint VM right now and just did that.

Giovanni

Re: Linux Mint 22 debug issues

Posted: Fri Jan 03, 2025 5:38 pm
by wolf
Wow, that was fast!

I did as suggested and I got following error after:

Could not determine GDB version using command: arm-none-eabi-gdb --version
arm-none-eabi-gdb: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory


So i did:

sudo ln -s ./libtinfo.so.6 ./libtinfo.so.5

And debugging works!

Many thanks,

Wolf

Re: Linux Mint 22 debug issues

Posted: Fri Jan 03, 2025 5:39 pm
by Giovanni
Ah, forgot that one, thanks.

Giovanni

Re: Linux Mint 22 debug issues

Posted: Fri Jan 03, 2025 5:45 pm
by wolf
Perfect,

looking forward to this ChibiOS Mint VM

Regards, Wolf