1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
june 11, 2000
libproc issues
I have included the procps source from http://www.cs.uml.edu/~acahalan/linux and the if u type 'make' the Makefile script first compiles libproc.a from its source, then compiles ncps. I have not tested this on redhat. If redhat have trouble building libproc.a (which it prolly might, since I can't think of a reason why the redhat folks decide to use a different function call from the original procps source. namely read_total_main() instead of meminfo() in sysinfo.h). Where was I?... ah yes, if u use redhat or its sibblings like linux mandrake and libproc.a doesn't build then do this:
i) Grab and install the rpm that include libproc.a (probably under procps-blah.rpm or libproc-blah.rpm)
ii) at the top of base.h set #define READHAT 1
iii) edit Makefile (in the ncps dir, not the ncps/proc subdir) so that the varaibles LIBPROC and LIBPROC_INC point to the directories that your rpm uses.
iv) do 'make ncps'
v) if that doesn't work, please fix it and send me a patch, and convince me not to explode in a fit of frustration.
<--separator-->
misc. library issues
some people do not have ncurses installed in the standard directories, in which case edit the NCURSES and NCURSES_INC variables in the main Makefile so that they pointto the right directories
Good luck
------------------------------------------------------------
Umm... I am too lazy to read the whole damn GPL license, so I don't really
know all its details, but uh... anyway, i'm gonna give out this piece of
program under the GPL license (it sounds cool). It is very similar to
gitps, and I wasn't aware of gitps's existence until after i've written
the program. The only justification I can come up with for my program is
that it can sort according certain criteria. gitps can prolly sort too,
but i don't know how, so there.
options:
'ncps --help' will show you the list of options (thanx to spyq)
press 'h' to see help screen, press any key to exit help screen.
This is my first serious program.
orginal source of procps can be acquired from:
http://www.cs.uml.edu/~acahalan/linux
Enjoy, customize, and good luck.
Mao
pc171@columbia.edu
feb 29, 2000
|