Operating System - HP-UX
1751974 Members
5036 Online
108784 Solutions
New Discussion юеВ

Error when opening vi editor

 
HP UNIX Professionals
Frequent Advisor

Error when opening vi editor

Hi Guis,
We have B.10.20 A 9000/820 HP UX box.
When is i am creating the new file in HPUX Box through vi editor, it showing some error "Invalid shared library file: /usr/lib/libcurses.1". In this system /tmp is 100% also.

Anybody tell me why it happen and how to solve this issue.

Thanks
vinay
4 REPLIES 4
TTr
Honored Contributor

Re: Error when opening vi editor

> /tmp is 100% also.
And this doesn't bother you?

vi uses /var/tmp to create a buffer file for the newly crated file. If your /var/tmp is a link to /tmp, the problem is /tmp being at 100%.
V. Nyga
Honored Contributor

Re: Error when opening vi editor

Hi,

check that file - at my side (11.11 ws) it's:
lrwxr-xr-x 1 root root 13 Jan 23 2007 /usr/lib/libcurses.0 -> ./libcurses.1
-r-xr-xr-x 1 bin bin 233472 Nov 14 2000 /usr/lib/libcurses.1
lrwxr-xr-x 1 root root 14 Jan 23 2007 /usr/lib/libcurses.sl -> ./libxcurses.1

For your /tmp directory - almost everything there can be deleted, it's a 'temporary' directory.
Check for any user files, old files, big files.

Volkmar
*** Say 'Thanks' with Kudos ***
Dennis Handly
Acclaimed Contributor

Re: Error when opening vi editor

Having /tmp full is never a good thing. But I wouldn't think it would cause your "Invalid shared library file:".

You could try doing "chatr /usr/lib/libcurses.1" to see if there is anything obviously wrong with it.
Bill Hassell
Honored Contributor

Re: Error when opening vi editor

> In this system /tmp is 100% also.

This is a BIG problem. /tmp is used by a lot of system utilities as well as applications. When it is full, a lot of things will fail. I would not blindly remove every file in /tmp though. Start by finding the largest directories in /tmp:

# du -kx | sort -rn | head -20

If the directories below /tmp are small, then concentrate on the files in /tmp:

# ll /tmp | sort -rnk6

There may hundreds of temporary files that can be removed. /tmp and /var MUST be managed, that is, actively watch so that they do not fill up. If this is production, these checks should be done daily.


Bill Hassell, sysadmin