Libncurses.so.5 symlink not working

Hi to all, I tried to use ISE 14.6 Xilinx on tumbleweed but Im having problems running the SDK debugger. I found that running this command I will know if the gdb is working “/opt/Xilinx/14.6/ISE_DS/EDK/gnu/microblaze/lin/bin/mb-gdb”
But, when I tried to check i got this error:“/opt/Xilinx/14.6/ISE_DS/EDK/gnu/microblaze/lin/bin/mb-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or director”
This means that libncurses.so.5 is not found.
I check for libncurses installed on the OS by:
“ls -l /usr/lib64/libncurses*” and then create a symlink between libncurses.so.5 and libncurses.so.6.4 like this

Then I tried again to check by running this command and got the same result:
“/opt/Xilinx/14.6/ISE_DS/EDK/gnu/microblaze/lin/bin/mb-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or director”

Why? I already creted the symlink? how do I know which libncurses is being used?
Gaston

@gaston Hi and welcome to the Forum :smile:
You can install libncurses5 (default is now 6) on Tumbleweed, so remove the link and zypper in libncurses5

You can always check the libraries needed by a binary (not a script) with the ldd command, eg ldd <some binary file>

Your file list looks suspicious…entries are missing…others seems modified…
On a untinkerd system it looks like this:

ich@laptop:~> ls -l /usr/lib64/libncurses*
lrwxrwxrwx 1 root root     19 17. Jun 22:26 /usr/lib64/libncurses++.so.5 -> libncurses++.so.5.9
lrwxrwxrwx 1 root root     17 17. Jun 22:26 /usr/lib64/libncurses.so.5 -> libncurses.so.5.9
-rwxr-xr-x 1 root root  80024 17. Jun 22:30 /usr/lib64/libncurses++.so.5.9
-rwxr-xr-x 1 root root 165928 17. Jun 22:30 /usr/lib64/libncurses.so.5.9
lrwxrwxrwx 1 root root     19 17. Jun 22:27 /usr/lib64/libncurses++.so.6 -> libncurses++.so.6.4
lrwxrwxrwx 1 root root     17 17. Jun 22:27 /usr/lib64/libncurses.so.6 -> libncurses.so.6.4
-rwxr-xr-x 1 root root  80024 17. Jun 22:30 /usr/lib64/libncurses++.so.6.4
-rwxr-xr-x 1 root root 174120 17. Jun 22:30 /usr/lib64/libncurses.so.6.4
lrwxrwxrwx 1 root root     20 17. Jun 22:29 /usr/lib64/libncurses++w.so.5 -> libncurses++w.so.5.9
lrwxrwxrwx 1 root root     18 17. Jun 22:29 /usr/lib64/libncursesw.so.5 -> libncursesw.so.5.9
-rwxr-xr-x 1 root root  80024 17. Jun 22:30 /usr/lib64/libncurses++w.so.5.9
-rwxr-xr-x 1 root root 215088 17. Jun 22:30 /usr/lib64/libncursesw.so.5.9
lrwxrwxrwx 1 root root     20 17. Jun 22:24 /usr/lib64/libncurses++w.so.6 -> libncurses++w.so.6.4
lrwxrwxrwx 1 root root     18 17. Jun 22:24 /usr/lib64/libncursesw.so.6 -> libncursesw.so.6.4
-rwxr-xr-x 1 root root  80024 17. Jun 22:30 /usr/lib64/libncurses++w.so.6.4
-rwxr-xr-x 1 root root 256040 17. Jun 22:30 /usr/lib64/libncursesw.so.6.4
ich@laptop:~> 

ich@laptop:~> ls -l /usr/lib/libncurses*
lrwxrwxrwx 1 root root     19 17. Jun 22:27 /usr/lib/libncurses++.so.5 -> libncurses++.so.5.9
lrwxrwxrwx 1 root root     17 17. Jun 22:27 /usr/lib/libncurses.so.5 -> libncurses.so.5.9
-rwxr-xr-x 1 root root  71116 17. Jun 22:27 /usr/lib/libncurses++.so.5.9
-rwxr-xr-x 1 root root 173444 17. Jun 22:27 /usr/lib/libncurses.so.5.9
lrwxrwxrwx 1 root root     19 17. Jun 22:27 /usr/lib/libncurses++.so.6 -> libncurses++.so.6.4
lrwxrwxrwx 1 root root     17 17. Jun 22:27 /usr/lib/libncurses.so.6 -> libncurses.so.6.4
-rwxr-xr-x 1 root root  79308 17. Jun 22:27 /usr/lib/libncurses++.so.6.4
-rwxr-xr-x 1 root root 181632 17. Jun 22:27 /usr/lib/libncurses.so.6.4
lrwxrwxrwx 1 root root     20 17. Jun 22:27 /usr/lib/libncurses++w.so.5 -> libncurses++w.so.5.9
lrwxrwxrwx 1 root root     18 17. Jun 22:27 /usr/lib/libncursesw.so.5 -> libncursesw.so.5.9
-rwxr-xr-x 1 root root  71116 17. Jun 22:27 /usr/lib/libncurses++w.so.5.9
-rwxr-xr-x 1 root root 238984 17. Jun 22:27 /usr/lib/libncursesw.so.5.9
lrwxrwxrwx 1 root root     20 17. Jun 22:27 /usr/lib/libncurses++w.so.6 -> libncurses++w.so.6.4
lrwxrwxrwx 1 root root     18 17. Jun 22:27 /usr/lib/libncursesw.so.6 -> libncursesw.so.6.4
-rwxr-xr-x 1 root root  79308 17. Jun 22:27 /usr/lib/libncurses++w.so.6.4
-rwxr-xr-x 1 root root 284036 17. Jun 22:27 /usr/lib/libncursesw.so.6.4
ich@laptop:~> 

hi malcolmlewis (I already had another user but for some reason I can login with that account so i was force to create another one)
I already had this library according to yast


I tried already to install using “sudo zypper in libncurses5” but it says “libncurses5-6.4.20230615-14.1.x86_64 last version”.
using the symlink is not working, Why libncurses5 is not found? its there

Are you sure that your program is using the 64bit library? Install libncurses5-32bit and test again…

hi Busy Penguin, I installed libncurse5 for 32 bits but still the same error I upload screenshoot of lib64 and lib


is there a way to know which libncurses is being used?

Hey!! I reboot and now I have this error
/opt/Xilinx/14.6/ISE_DS/EDK/gnu/microblaze/lin/bin/mb-gdb: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory

is an upgrade

I found this libraries
libexpat
How do I solve this?

You could try:

sudo ln -s /usr/lib/libexpat.so.1 /usr/lib/libexpat.so.0
sudo ln -s /usr/lib64/libexpat.so.1 /usr/lib64/libexpat.so.0

P.S.: To paste terminal output here in the forum, please use the preformatted text </> button in the editor…

thanks to both of you!! Its working!! this is great man!!
thanks