11-04-2009
Quote:
Originally Posted by
mark54g
what did you to to create your symlink?
if you do an ll in /usr/lib do you see libncurses.so.5 as a link to libncurses.so or some other file?
Also, you do not need to use LD_LIBRARY_PATH as there is an ld.so.conf file as well as the fact that /lib and /usr/lib are default searched.
Hi Mark,
I did what you suggested earlier.
Create a symlink in /usr/lib directory and point to the 64-bit library libncurses.
# ls -l /usr/lib/libncurses*
lrwxrwxrwx 1 root root 28 Nov 10:50 libncurses.so.5 -> /usr/lib64/libncurses.so.5.4
I just check the /etc/ld.so.conf, it only had an include statement "include ld.so.conf.d/*.conf".
Inside this directory, there is only 2 files mysql-x86_64.conf and xorg-x11-x86_64.conf.
I think this should be the cause of not able to find the path to libncurses since no /lib and /usr/lib was mentioned?
Thanks in advance.
10 More Discussions You Might Find Interesting
1. AIX
Anyone ever experienced a core dump when running NMON. I am running AIX 5.3 on an 8 CPU LPAR (P570). This has only recently started to happen. (3 Replies)
Discussion started by: johnf
3 Replies
2. AIX
Can any one help where i can find articals about nomn
I need to know how to read this tools
┌─CPU-Utilisation-Small-View───────────────────────────────────────────────────┐
│ 0----------25-----------50----------75----------100│
│CPU User% Sys% Wait% Idle%| ... (3 Replies)
Discussion started by: habuzahra
3 Replies
3. AIX
HI Im new on this world.
Im working with nmon and I understand that this tool generates a files that later with excel I can see the graphcial of my server.
The problem is that this process is execute manualy and I need to meake automatic.
How can I do That.
Sorry for my english!! :o (3 Replies)
Discussion started by: jegtoro
3 Replies
4. AIX
How to analyze nmon output or is there any tool for analyzing. (2 Replies)
Discussion started by: vjm
2 Replies
5. AIX
Hi All,
I have a p550 server with 4 proc. But when i run nmon analyzer in cpu_sum it show 5 processors cpu0 cpu1 cpu2 cpu3 cpu4. Why it is showing 5 processors. (6 Replies)
Discussion started by: vjm
6 Replies
6. AIX
Hi,
I want to know how to use nmon in aix?
I have donwloaded nmon (2 Replies)
Discussion started by: manoj.solaris
2 Replies
7. AIX
HI,
I have downloaded nmon 3.3c nmon analyzer, and run the command on aix ./nmon -f
After that I have terminated the process and found .nmon file.
when i have tried to open that file in nmon analyzer i.e in excel I am getting the error "no valid input data nmon run may have failed"
... (8 Replies)
Discussion started by: manoj.solaris
8 Replies
8. AIX
Hi All,
First of all, I am a DBA and not an AIX admin. I am new at using this NMON tool.
In interactive mode, I can start nmon, push 't' to have the list of process with their statistic (ie cpu% etc.).
I would like to know if there is a way to redirect that screen output into a log... (1 Reply)
Discussion started by: Nayas
1 Replies
9. AIX
Hi guys, I am an Oracle DBA and I have an account with some databases on an AIX 5.3 server. I am trying to figure out if I really need to add memory to this box or not, the account team keeps pushing me to make a decision and I don't want to waste their money if I don't need to right now, we could... (4 Replies)
Discussion started by: nibbsbitt
4 Replies
10. Shell Programming and Scripting
Hi, my name is Steve Ngai from Malaysia. This is my first post. Hope to learn more about Unix from this forum.
My first question is can nmon be customized? When I run nmon, I need to manually type c to see CPU usage, then m for memory usage. Can I pass it some nmon option to automatically see... (2 Replies)
Discussion started by: ngaisteve1
2 Replies
LEARN ABOUT CENTOS
scsi_ch_swp
SCSI_CH_SWP(8) SDPARM SCSI_CH_SWP(8)
NAME
scsi_ch_swp - change SCSI Software WRITE Protect and block device settings
SYNOPSIS
scsi_ch_swp [--help] [--set 0|1] [--verbose] [--wr] BLK_DEVICE
DESCRIPTION
This bash shell script attempts to read or change the Software Write Protect (SWP) bit in the SCSI Control mode page using the sdparm util-
ity. If that change is successful then it uses the blockdev utility to change BLK_DEVICE's read-write or read-only setting in sympathy.
This script is only available in Linux since the blockdev utility is Linux specific.
If changing the SWP bit is supported, setting the SWP bit makes BLK_DEVICE read-only at the device (disk) itself. Clearing the SWP bit
makes BLK_DEVICE read-write which is usually the default setting at device (disk) power up.
If no options are given then the current state of the SWP bit is printed out (using sdparm) together with blockdev's RO bit. If they are
both 1 then BLK_DEVICE is in read-only mode; if they are both 0 then BLK_DEVICE is in read-write mode.
OPTIONS
Arguments to long options are mandatory for short options as well.
-h, --help
print out the usage message then exit.
-s, --set 0|1
when 0 is given then the SWP bit in the Control mode page is cleared (i.e. set that bit to 0) using sdparm; and blockdev is used to
set BLK_DEVICE to read-write mode. When 1 is given then the SWP bit in the Control mode page is set using sdparm; and blockdev is
used to set BLK_DEVICE to read-only mode. The default (i.e. when this option is not given) is to read the state of the SWP bit and
BLK_DEVICE's read-only mode and print those values out.
-v, --verbose
increase level or verbosity.
-w, --wr
when the BLK_DEVICE is in read-only mode, Linux will not typically allow BLK_DEVICE to be opened read-write by sdparm, so the
default action of this script is to use the sdparm --readonly option when --set 0 has been invoked. It is possible that BLK_DEVICE
could be a generic device (e.g. /dev/sg3) which has a different interpretation of the read-only open flag and may fail. For such
rare cases the --wr option makes sdparm open BLK_DEVICE read-write when --set 0 is invoked.
EXIT STATUS
The exit status of this script is 0 when it is successful. Otherwise the exit status is that of the sdparm or the blockdev utility, which-
ever is called last. See the sdparm(8) man page.
AUTHORS
Written by D. Gilbert
COPYRIGHT
Copyright (C) 2013 Douglas Gilbert
This software is distributed under a FreeBSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR-
POSE.
SEE ALSO
sdparm(sdparm), blockdev(8)
sdparm-1.08 May 2013 SCSI_CH_SWP(8)