LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-19-2007, 07:16 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
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?
 
Old 01-19-2007, 07:39 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
you probably dont have the permission to access it.
try becoming root and test it.
 
Old 01-19-2007, 07:50 AM   #3
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
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.
 
Old 01-19-2007, 09:01 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Post the results of these commands (run with bash or ksh):
Code:
type screen
sudo /opt/csw/bin/screen
ldd /opt/csw/bin/screen
 
Old 01-20-2007, 03:48 PM   #5
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
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.

Last edited by xpucto; 01-20-2007 at 03:49 PM.
 
Old 01-20-2007, 04:29 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You have to either install ncurses from sunfreeware, or install screen from blastwave.
 
Old 01-22-2007, 09:52 AM   #7
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
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!
 
Old 09-08-2007, 12:50 AM   #8
wiliweld
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Rep: Reputation: 0
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
 
Old 09-08-2007, 01:26 AM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VSFTPD Directory Failed to open dwpondscum Linux - Wireless Networking 1 08-18-2005 06:28 PM
Cannot open libncurses jrdioko Linux - Newbie 5 07-26-2005 08:20 PM
awk: fatal:cannot open file for reading (no such file or Directory) in Linux sangati vishwanath Linux - Software 4 07-06-2005 12:59 AM
libawt.so: libXp.so.6: cannot open shared object file: No such file or directory man26 *BSD 0 09-10-2004 08:34 AM
postfix: fatal: gethostbyname: No such file or directory cellist Linux - Networking 2 04-16-2004 09:21 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration