UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 2nd, 2005, 02:19 PM
chrs0302 chrs0302 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 43 chrs0302 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 30 sec
Reputation Power: 4
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.

Reply With Quote
  #2  
Old August 2nd, 2005, 02:39 PM
stdunbar stdunbar is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2004
Location: Superior, CO, USA
Posts: 1,709 stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 18 h 11 m
Reputation Power: 338
Send a message via ICQ to stdunbar Send a message via Yahoo to stdunbar
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.
Comments on this post
M.Hirsch agrees: just thought you'd deserve some rep++ ...

Reply With Quote
  #3  
Old August 3rd, 2005, 09:03 AM
chrs0302 chrs0302 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 43 chrs0302 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 30 sec
Reputation Power: 4
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

Reply With Quote
  #4  
Old August 3rd, 2005, 09:36 AM
stdunbar stdunbar is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2004
Location: Superior, CO, USA
Posts: 1,709 stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 18 h 11 m
Reputation Power: 338
Send a message via ICQ to stdunbar Send a message via Yahoo to stdunbar
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.

Reply With Quote
  #5  
Old August 5th, 2005, 09:48 AM
chrs0302 chrs0302 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 43 chrs0302 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 30 sec
Reputation Power: 4
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > libncurses.so.5


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway