LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   fatal: libncurses.so.5: open failed: No such file or directory (http://www.linuxquestions.org/questions/solaris-opensolaris-20/fatal-libncurses-so-5-open-failed-no-such-file-or-directory-520852/)

xpucto 01-19-2007 07:16 AM

fatal: libncurses.so.5: open failed: No such file or directory
 
Hi!
I have solaris 10 and installed screen (screen-4.0.2-sol10-sparc-local.gz). I didnīt get any problem during the installation
Quote:

Installation of <SMCscreen> was successful
.
but when I try to start screen, I get the error
Quote:

$ screen
ld.so.1: screen-4.0.2: fatal: libncurses.so.5: open failed: No such file or directory
Killed
the file is there to be found:
Quote:

/opt/csw/lib/sparcv9/libncurses.so.5
/opt/csw/lib/libncurses.so.5
what should I do to solve this problem?

w3bd3vil 01-19-2007 07:39 AM

you probably dont have the permission to access it.
try becoming root and test it.

xpucto 01-19-2007 07:50 AM

Quote:

Originally Posted by w3bd3vil
you probably dont have the permission to access it.
try becoming root and test it.

Quote:

sudo screen
ld.so.1: screen-4.0.2: fatal: libncurses.so.5: open failed: No such file or directory
Killed
it doesnīt change anything.

jlliagre 01-19-2007 09:01 AM

Post the results of these commands (run with bash or ksh):
Code:

type screen
sudo /opt/csw/bin/screen
ldd /opt/csw/bin/screen


xpucto 01-20-2007 03:48 PM

Quote:

Originally Posted by jlliagre
Post the results of these commands (run with bash or ksh):
Code:

type screen
sudo /opt/csw/bin/screen
ldd /opt/csw/bin/screen


Quote:

bash-3.00$ type screen
screen is /usr/local/bin/screen
bash-3.00$ sudo /opt/csw/bin/screen
sudo: /opt/csw/bin/screen: command not found
bash-3.00$ ldd /opt/csw/bin/screen
ldd: /opt/csw/bin/screen: cannot open file: No such file or directory
ok, it looks like a few things are at the trong place:
Quote:

bash-3.00$ ldd /usr/local/bin/screen
libncurses.so.5 => (file not found)
libelf.so.1 => /usr/lib/libelf.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libkstat.so.1 => /usr/lib/libkstat.so.1
libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1
libsec.so.1 => /usr/lib/libsec.so.1
libc.so.1 => /usr/lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libmd5.so.1 => /lib/libmd5.so.1
libscf.so.1 => /lib/libscf.so.1
libgen.so.1 => /lib/libgen.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-V240/lib/libmd5_psr.so.1
should screen be installed under
Quote:

/opt/csw/bin
?
what am I supposed to do: make screen look in the right directory? have libncurses.so.5 under /usr/local/bin/? or reinstall screen in /opt/csw/bin ?
Thanks for helping.

jlliagre 01-20-2007 04:29 PM

You have to either install ncurses from sunfreeware, or install screen from blastwave.

xpucto 01-22-2007 09:52 AM

Quote:

Originally Posted by jlliagre
You have to either install ncurses from sunfreeware, or install screen from blastwave.

I installed ncurses and it works now! Thanks a lot!

wiliweld 09-08-2007 12:50 AM

screen-4.0.2: fatal: libncurses.so.5: open failed:
 
Regarding the "screen" issue. I copied the libncurses.so.5 files to /lib/ and all worked well with Solaris-10 08/2007

jlliagre 09-08-2007 01:26 AM

It works for you but it's a hack. It shouldn't be promoted as a reliable solution because curses based programs may be broken after you patch or update your system.


All times are GMT -5. The time now is 02:28 PM.