Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12368 Discussions

nios2-elf-gdb: error while loading shared libraries: libncursesw.so.5: cannot open shared object fil

SThor8
New Contributor I
420 Views

Hi

When I try to use "Debug configuration" in eclipse when trying to run my niios application, I get the error message

 

Error creating session
nios2-elf-gdb: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
nios2-elf-gdb: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
nios2-elf-gdb: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory

 

 

I do have libncursesw.so.5 but not in /usr/lib/x86_64-linux-gnu/ instead they are placed in /snap/core/10126/lib/x86_64-linux-gnu/

How do I get them from the /snap/core/10126/lib/x86_64-linux-gnu/ to /usr/lib/x86_64-linux-gnu/ ?

If they should be in /snap/core/10126/lib/x86_64-linux-gnu/, should I modify the LD_LIBRARY_PATH ?

LD_LIBRARY_PATH does not exist at the moment.

 

Regards

 

 

Plafrom

$ uname -a

Linux Frela 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

 

$ sudo apt-get install libncurses5 libncurses5:i386
[sudo] password for stefan:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libncurses5 is already the newest version (6.2-0ubuntu2).
libncurses5:i386 is already the newest version (6.2-0ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.

/$ sudo find . | grep "libncursesw.so"
find: ‘./proc/3388/task/3388/net’: Invalid argument
find: ‘./proc/3388/net’: Invalid argument
./usr/lib/x86_64-linux-gnu/libncursesw.so
./usr/lib/x86_64-linux-gnu/libncursesw.so.6.2
./usr/lib/x86_64-linux-gnu/libncursesw.so.6
find: ‘./run/user/1000/doc’: Permission denied
find: ‘./run/user/1000/gvfs’: Permission denied
./snap/core/10126/lib/x86_64-linux-gnu/libncursesw.so.5
./snap/core/10126/lib/x86_64-linux-gnu/libncursesw.so.5.9
./snap/core/10185/lib/x86_64-linux-gnu/libncursesw.so.5
./snap/core/10185/lib/x86_64-linux-gnu/libncursesw.so.5.9
./snap/core18/1885/lib/x86_64-linux-gnu/libncursesw.so.5
./snap/core18/1885/lib/x86_64-linux-gnu/libncursesw.so.5.9
./snap/core18/1932/lib/x86_64-linux-gnu/libncursesw.so.5
./snap/core18/1932/lib/x86_64-linux-gnu/libncursesw.so.5.9

$ ls -lsa snap/core/10126/lib/x86_64-linux-gnu/libncursesw.so.5
0 lrwxrwxrwx 1 root root 18 feb 19 2016 snap/core/10126/lib/x86_64-linux-gnu/libncursesw.so.5 -> libncursesw.so.5.9

$ ls -lsa snap/core/10126/lib/x86_64-linux-gnu/libncursesw.so.5.9
187 -rw-r--r-- 1 root root 191464 feb 19 2016 snap/core/10126/lib/x86_64-linux-gnu/libncursesw.so.5.9

 

 

0 Kudos
1 Solution
mwl2306
Beginner
402 Views

I'm using ubuntu 20.04. I ran:

 

sudo apt install -y libncursesw5

 

Worked like a charm after that.

 

View solution in original post

2 Replies
mwl2306
Beginner
403 Views

I'm using ubuntu 20.04. I ran:

 

sudo apt install -y libncursesw5

 

Worked like a charm after that.

 

View solution in original post

BoonBengT_Intel
Moderator
347 Views

Hi @SThor8,

Hope this message find you well and good to know that it is working now, we would be closing the thread. If you have further queries, Please do post a response in the next 15 days.

After 15 days, this thread will be transitioned to community support. The community users will be able to help you with your follow-up questions.

 

Warm Regards

Reply