|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
What O/S are you on? My libncurses.so.5 is in /usr/lib on my FC3 machine. I don't have one on my Solaris 10 machine - that is the "new" curses library and it would have to be installed.
|
|
#3
|
|||
|
|||
|
libncurses.so.5
The OS details are:
SunOS zeus 5.9 Generic_112233-10 sun4u sparc SUNW,Ultra-5_10 The libncurses.so.5 was not there on my system by default. I have installed this from the below mentioned site. http://www.autistici.org/bolic1/tools/packets/ At first I have installed this program under my home directory and then moved it to /usr/local/bin to make it compatible with PATH and LD_PATH_LIBRARY variables. The installation of this program looks little different. Once I unzipped and untar the package there was a directory by name 'usr' under which one more directory by name 'lib'. The libncurses.so.5 file was under that lib directory.In fact there are two simialr files which I have moved to /usr/lib. They are: # ls -la /usr/lib | grep libncurses.so.5.0 lrwxrwxrwx 1 root root 17 Aug 2 14:57 libncurses.so.5 -> libncurses.so.5.0 -rwxr--r-- 1 root root 233816 Nov 21 2000 libncurses.so.5.0 Now the problem is when I attempt to run the script # /usr/local/bin/dict ld.so.1: lynx: fatal: /usr/lib/libncurses.so.5: wrong ELF data format: ELFDATA2LSB Any ideas? I want to run this script and check the functioning of the dictionary. Thanks in advance |
|
#4
|
|||
|
|||
|
I'm not so sure about the link you provided - it looks like that is for Linux.
I would suggest getting ncurses 5.4 for Solaris 9 / Sparc from Sun Freeware. It doesn't look like there is a precompiled "dict" program but you can at least get ncurses installed. |
|
#5
|
|||
|
|||
|
libncurses
Now I have libncurses on my system wiht in the scope of PATH.
# find / -name libncurses* -print /usr/lib/libncurses.so.5 /usr/lib/libncurses.so.5.0 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 Thanks in advance. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > libncurses.so.5 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|