Read more
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Issue with "less" command
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
Issue with "less" command
SOLVED- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-22-2009 12:20 PM
05-22-2009 12:20 PM
I'm running into an issue w/one of my servers while trying to run the less command.
#less
/usr/lib/hpux32/dld.so: Unable to find library 'libtermcap.so'.
Killed
This a new server and I don't think the less command has been compiled correctly. So I downloaded the tar file and attempted to install it.... Here's what i ran into
#sh configure // everything runs well here
..................
........
checking for regcmp... yes
using regcmp
updating cache ./config.cache
creating ./config.status
creating Makefile
creating defines.h
#he4 #make install // I get errors, go down
test ! -f stamp-h || CONFIG_FILES= CONFIG_HEADERS=defines.h ./config.status
touch stamp-h
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 main.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 screen.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 brac.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 ch.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 charset.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 cmdbuf.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 command.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 decode.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 edit.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 filename.c
In file included from /usr/include/sys/stat.h:36,
from filename.c:41:
/usr/include/sys/_stat_body.h:63: error: parse error before "blksize_t"
/usr/include/sys/_stat_body.h:66: error: parse error before ':' token
/usr/include/sys/_stat_body.h:68: error: parse error before ':' token
/usr/include/sys/_stat_body.h:69: error: parse error before ':' token
/usr/include/sys/_stat_body.h:70: error: parse error before ':' token
/usr/include/sys/_stat_body.h:88: error: parse error before '}' token
filename.c: In function `is_dir':
filename.c:925: error: storage size of 'statbuf' isn't known
filename.c: In function `bad_file':
filename.c:970: error: storage size of 'statbuf' isn't known
filename.c: In function `filesize':
filename.c:1002: error: storage size of 'statbuf' isn't known
*** Error exit code 1
What do you think??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-22-2009 12:48 PM
05-22-2009 12:48 PM
SolutionThe HP-UX Porting and Archive Centre, has ready-made .depots for supported HP-UX versions and pre-modified source code for compiling on older, unsupported versions:
http://hpux.connect.org.uk/
When installing depots from the Porting Archive, you should pay attention to the "Run-Time Dependencies" field on the package page. Before installing the package, you should make sure that all the run-time dependency packages are also installed, or the program most likely won't run. Note that the dependency packages themselves may have their own dependencies, and so on...
By the way, your original error message (Unable to find library 'libtermcap.so') looks exactly like what happens if run-time dependencies are ignored.
If you have to compile from the Porting Archive's sources, pay attention to "Build-time Dependencies", respectively.
If you get the original source from the author's website (in this case, http://www.greenwoodsoftware.com/less/download.html ), this does not free you from build-time dependencies: instead, you must read the READMEs and other documentation files included in the source package to find out what the dependencies are, and then figure out yourself how to fulfill them.
MK
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-22-2009 12:51 PM
05-22-2009 12:51 PM
Re: Issue with "less" command
Re: Issue with "less" command
> less command has been compiled correctly.
The same may be true about GCC. It's not
unusual for a defective GCC installation to
cause complaints about the system header
files (like, say,
"/usr/include/sys/_stat_body.h").
Potentially useful info (as always):
uname -a
gcc --version (or -V?)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-22-2009 02:17 PM
05-22-2009 02:17 PM
Re: Issue with "less" command
Re: Issue with "less" command
Right. You also might want to look at the lines in error for some evil macro.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-02-2009 12:45 PM
06-02-2009 12:45 PM
Re: Issue with "less" command
Re: Issue with "less" command
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-02-2009 04:06 PM
06-02-2009 04:06 PM
Re: Issue with "less" command
Re: Issue with "less" command
This output my machine:
#ldd `which less`
=>
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libgen.2 => /usr/lib/libgen.2
#
Regards,
Michael Schon
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP