libncurses.so.5


 
Thread Tools Search this Thread
Operating Systems Solaris libncurses.so.5
# 1  
Old 08-02-2005
libncurses.so.5

I have a small sctipt called dict under my /usr/local/bin.

# cat dict
#!/usr/bin/ksh -f

set word=$1

# lynx is a text-based browser
# available free on the web/net.
lynx -cfg=/dev/null -dump " http://www.dictionary.com/cgi-bin/dict.pl?term=${word}" | more

The PATH and LD_LIBRARY_PATH variables are as follows:

# echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/local/ssl/bin:/usr/local/mysql/bin:/usr/ccs/bin
#
# echo $LD_LIBRARY_PATH
/usr/lib:/usr/local/lib:/usr/local/ssl/lib:/usr/local/bin

When I try to run this script (/usr/local/bin/dict), the following error is returned.

# /usr/local/bin/dict
ld.so.1: lynx: fatal: libncurses.so.5: open failed: No such file or directory

In fact I have downloaded and installed libncurses.so.5 from http://www.autistici.org/bolic1/tools/packets/

Your help is appreciated and thanks in advance.
# 2  
Old 08-02-2005
what does your $LD_LIBRARY_PATH read ?

you have to set this in order to find the lib files.. so if you do

LD_LIBRARY_PATH=<PATH TO WHERE libncurses.so.5 IS>

doh clearly never read that rite.. but looks like that what the problem is LD_LIBRARY_PATH doesn't have this lib in it..

p
# 3  
Old 08-03-2005
I guess the question is .. where did you install libcurses.so.5? :-)
# 4  
Old 08-05-2005
libncurses

Thanks for your interest.

I have set libncurses on my system as desired which is evident from the following output.

# find / -name libncurses* -print
/usr/lib/libncurses.so.5
/usr/lib/libncurses.so.5.0

libncurses on my system is in the scope of PATH and LD_LIBRARY_PATH variables.
# echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/local/ssl/bin:/usr/local/mysql/bin:/usr/ccs/bin
# echo $LD_LIBRARY_PATH
/usr/lib:/usr/local/lib:/usr/local/ssl/lib:/usr/local/bin


The problem is with ELF data format as shown below.
# /usr/local/bin/dict
ld.so.1: lynx: fatal: /usr/lib/libncurses.so.5: wrong ELF data format: ELFDATA2LSB

By the by 'dict' is a small script I am trying to run.
# cat /usr/local/bin/dict
#!/usr/bin/ksh -f
set word=$1
# lynx is a text-based browser
# available free on the web/net.
lynx -cfg=/dev/null -dump " http://www.dictionary.com/cgi-bin/dict.pl?term=${word}" | more

Once again thanks in advance for your help.
# 5  
Old 08-05-2005
Looks like you've got the wrong version of libncurses installed ... I've no idea what architecture its supposed to be for from the site you've downloaded it from.

I would get the package from www.sunfreeware.com which has solaris packages for most common versions of solaris for many many free packages.
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. HP-UX

Unable to find library libncurses.so.

I'm trying to run a file name remote build which is to build a package on a target server. My target server is HP-UX-itanium 64 bit. When I run the remote build, somehow it cannot find `libncurses.so` or maybe it looks for the `libncurses.so` at some other location. This only happens on HP-UX... (3 Replies)
Discussion started by: fikriemuthafa
3 Replies

2. HP-UX

need libncurses.so

I'm trying to run a program called screen. When I try to execute it, I get this message: (root@megas)/home/root# screen /usr/lib/hpux32/dld.so: Unable to find library 'libncurses.so'. Killed This is an Itanium machine running 11.23. I've done some hunting around, but can't seem to... (3 Replies)
Discussion started by: jim97gst
3 Replies
Login or Register to Ask a Question