$ tar zxf top-3.5beta12.tar.gz $ cd top-3.5beta12 $ ./Configure
Configuration for top, version 3.5 linux の場合 One moment.... You will be asked a series of questions. Each question will have a default answer enclosed in brackets, such as "[5.0]". In most cases, the default answer will work well. To use that value, merely press return. The following machine-dependent modules are available: 386bsd For a 386BSD system aix32 POWER and POWER2 running AIX 3.2.5.0 aix41 PowerPC running AIX 4.1.2.0 aix43 PowerPC running AIX 4.2 or higher aux3 a Mac running A/UX version 3.x bsd386 For a BSD/386 system bsd43 any generic 4.3BSD system bsd44 For a 4.4BSD system bsd44a For a pre-release 4.4BSD system bsdos2 For a BSD/OS 2.X system (based on the 4.4BSD Lite system) convex any C2XX running Convex OS 11.X. dcosx For Pyramid DC/OSX decosf1 OSF/1, Digital Unix 4.0, Compaq Tru64 5.0 dgux for DG AViiON with DG/UX 5.4+ dynix any Sequent Running Dynix 3.0.x dynix32 any Sequent Running Dynix 3.2.x freebsd20 For a FreeBSD-2.0 (4.4BSD) system ftx For FTX based System V Release 4 hpux10 any hp9000 running hpux version 10.x hpux7 any hp9000 running hpux version 7 or earlier hpux8 any hp9000 running hpux version 8 (may work with 9) hpux9 any hp9000 running hpux version 9 irix5 any uniprocessor, 32 bit SGI machine running IRIX 5.3 irix62 any uniprocessor, SGI machine running IRIX 6.2 irix62_64 any SGI machine running IRIX 6.2 with a 64-bit kernel irixsgi Any SGI machine running IRIX 6.2 and up linux Linux 1.2.x, 1.3.x 2.0.x, using the /proc filesystem macosx MacOS X Server (Rhapsody Developer Release 2) mtxinu any VAX Running Mt. Xinu MORE/bsd ncr3000 For NCR 3000 series systems Release 2.00.02 and above - netbsd08 For a NetBSD system netbsd10 For a NetBSD-1.0 (4.4BSD) system netbsd132 For a NetBSD-1.3.2 (4.4BSD) system next32 any m68k or intel NEXTSTEP v3.x system next40 any hppa or sparc NEXTSTEP v3.3 system osmp41a any Solbourne running OS/MP 4.1A sco SCO UNIX sco5 SCO UNIX OpenServer5 sunos4 any Sun running SunOS version 4.x sunos4mp any multi-processor Sun running SunOS versions 4.1.2 or later sunos5 Any Sun running SunOS 5.x (Solaris 2.x) svr4 Intel based System V Release 4 svr42 For Intel based System V Release 4.2 (DESTINY) svr42MP For Intel based SysVr4.2MP (UnixWare 2) svr5 For Intel based System V Release 5 (Unixware7) ultrix4 any DEC running ULTRIX V4.2 or later umax Encore Multimax running any release of UMAX 4.3 utek Tektronix 43xx running UTek 4.1 What module is appropriate for this machine? linux This is the machine-dependent module for Linux 1.2.x, 1.3.x or 2.0.x. Is this what you want to use? [yes]: [ENTER] First we need to find out a little bit about the executables needed to compile top. What is the full path name for the Bourne shell [/bin/sh]: [ENTER] Please supply the name of the appropriate command. It need not be a full path name, but the named command does need to exist somewhere on the current path. AWK Interpreter [awk]: [ENTER] C Compiler [cc]: gcc The installer command needs to understand Berkeley-esque arguments: "-o" for owner, "-g" for group, and "-m" for mode. A shell script called "install" is distributed with top and is suitable for use by top. You can specify a different program here if you like, or use the shell script (the default). Installer [./install]: [ENTER] What other options should be used with the gcc command (use "none" to specify no options)? Compiler options [-O]: [ENTER] Now you need to answer some questions concerning the configuration of top itself. The space command forces an immediate update. Sometimes, on loaded systems, this update will take a significant period of time (because all the output is buffered). So, if the short-term load average is above "LoadMax", then top will put the cursor home immediately after the space is pressed before the next update is attempted. This serves as a visual acknowledgement of the command. "LoadMax" should always be specified as a floating point number. LoadMax [5.0]: [ENTER] "Default TOPN" is the default number of processes to show. This is the number that will be used when the user does not specify the number of processes to show. If you want "all" (or infinity) as the default, use the value "-1". Default TOPN [15]: -1 "Nominal_TOPN" is used as the default TOPN when Default_TOPN is Infinity and the output is a dumb terminal. If we didn't do this, then installations who use a default TOPN of Infinity will get every process in the system when running top on a dumb terminal (or redirected to a file). Note that Nominal_TOPN is a default: it can still be overridden on the command line, even with the value "infinity". Nominal TOPN [18]: [ENTER] Default Delay is the default number of seconds to wait between screen updates. Default Delay [5]: [ENTER] It looks like you have a passwd file that can be accessed at random. Do you want top to take advantage of this? [yes]: [ENTER] Compiling prime.c I found 24 entries in your passwd file. Top hashes the username to uid mappings as it goes along and it needs a good guess on the size of that hash table. This number should be the next highest prime number after 48. I have calculated that to be 53. Enter the hash table size [53]: [ENTER] I see /proc out there. Many Unix variants provide the /proc file system as a mechanism to get to a process's address space. This directory is typically only accessible by root. However, there are a few systems (such as DG/UX) on which this directory exists, but isn't used. I'm going to assume that top needs to run setuid to root, but you should double check and use mode 2755 (set group id) if top doesn't really need root access. If you are running SunOS 5.0 through SunOS 5.5.1 (that's Solaris 2.0 through Solaris 2.5.1) then you will need to install top setuid root (owner root and mode 4711). In SunOS 5.6 and higher top only requires set group id sys permissions. Tell me how to set the following when top is installed: Owner [root]: [ENTER] Group owner [root]: [ENTER] Mode [4711]: [ENTER] Install the executable in this directory [/usr/local/bin]: [ENTER] Install the manual page in this directory [/usr/man/manl]: [ENTER] Install the manual page with this extension [l]: [ENTER] Install the manual page as 'man' or 'catman' [man]: [ENTER] We are done with the questions. Saving configuration... Building Makefile... Building top.local.h... Building top.1... Doing a "make clean". rm -f *.o top core core.* sigdesc.h To create the executable, type "make". To install the executable, type "make install". |
Configuration for top, version 3.5 Solaris 8 の場合 One moment.... You will be asked a series of questions. Each question will have a default answer enclosed in brackets, such as "[5.0]". In most cases, the default answer will work well. To use that value, merely press return. The following machine-dependent modules are available: 386bsd For a 386BSD system aix32 POWER and POWER2 running AIX 3.2.5.0 aix41 PowerPC running AIX 4.1.2.0 aix43 PowerPC running AIX 4.2 or higher aux3 a Mac running A/UX version 3.x bsd386 For a BSD/386 system bsd43 any generic 4.3BSD system bsd44 For a 4.4BSD system bsd44a For a pre-release 4.4BSD system bsdos2 For a BSD/OS 2.X system (based on the 4.4BSD Lite system) convex any C2XX running Convex OS 11.X. dcosx For Pyramid DC/OSX decosf1 OSF/1, Digital Unix 4.0, Compaq Tru64 5.0 dgux for DG AViiON with DG/UX 5.4+ dynix any Sequent Running Dynix 3.0.x dynix32 any Sequent Running Dynix 3.2.x freebsd20 For a FreeBSD-2.0 (4.4BSD) system ftx For FTX based System V Release 4 hpux10 any hp9000 running hpux version 10.x hpux7 any hp9000 running hpux version 7 or earlier hpux8 any hp9000 running hpux version 8 (may work with 9) hpux9 any hp9000 running hpux version 9 irix5 any uniprocessor, 32 bit SGI machine running IRIX 5.3 irix62 any uniprocessor, SGI machine running IRIX 6.2 irix62_64 any SGI machine running IRIX 6.2 with a 64-bit kernel irixsgi Any SGI machine running IRIX 6.2 and up linux Linux 1.2.x, 1.3.x 2.0.x, using the /proc filesystem macosx MacOS X Server (Rhapsody Developer Release 2) mtxinu any VAX Running Mt. Xinu MORE/bsd ncr3000 For NCR 3000 series systems Release 2.00.02 and above - netbsd08 For a NetBSD system netbsd10 For a NetBSD-1.0 (4.4BSD) system netbsd132 For a NetBSD-1.3.2 (4.4BSD) system next32 any m68k or intel NEXTSTEP v3.x system next40 any hppa or sparc NEXTSTEP v3.3 system osmp41a any Solbourne running OS/MP 4.1A sco SCO UNIX sco5 SCO UNIX OpenServer5 sunos4 any Sun running SunOS version 4.x sunos4mp any multi-processor Sun running SunOS versions 4.1.2 or later sunos5 Any Sun running SunOS 5.x (Solaris 2.x) svr4 Intel based System V Release 4 svr42 For Intel based System V Release 4.2 (DESTINY) svr42MP For Intel based SysVr4.2MP (UnixWare 2) svr5 For Intel based System V Release 5 (Unixware7) ultrix4 any DEC running ULTRIX V4.2 or later umax Encore Multimax running any release of UMAX 4.3 utek Tektronix 43xx running UTek 4.1 What module is appropriate for this machine? sunos5 This is the machine-dependent module for SunOS 5.x (Solaris 2). There is some support for MP architectures. This makes top work on the following systems: SunOS 5.0 (not tested) SunOS 5.1 SunOS 5.2 SunOS 5.3 SunOS 5.4 SunOS 5.5 SunOS 5.6 SunOS 5.7 Is this what you want to use? [yes]: [ENTER] First we need to find out a little bit about the executables needed to compile top. What is the full path name for the Bourne shell [/bin/sh]: [ENTER] Please supply the name of the appropriate command. It need not be a full path name, but the named command does need to exist somewhere on the current path. AWK Interpreter [awk]: [ENTER] C Compiler [cc]: gcc The installer command needs to understand Berkeley-esque arguments: "-o" for owner, "-g" for group, and "-m" for mode. A shell script called "install" is distributed with top and is suitable for use by top. You can specify a different program here if you like, or use the shell script (the default). Installer [./install]: [ENTER] What other options should be used with the gcc command (use "none" to specify no options)? Compiler options [-O]: [ENTER] Now you need to answer some questions concerning the configuration of top itself. The space command forces an immediate update. Sometimes, on loaded systems, this update will take a significant period of time (because all the output is buffered). So, if the short-term load average is above "LoadMax", then top will put the cursor home immediately after the space is pressed before the next update is attempted. This serves as a visual acknowledgement of the command. "LoadMax" should always be specified as a floating point number. LoadMax [5.0]: [ENTER] "Default TOPN" is the default number of processes to show. This is the number that will be used when the user does not specify the number of processes to show. If you want "all" (or infinity) as the default, use the value "-1". Default TOPN [15]: -1 "Nominal_TOPN" is used as the default TOPN when Default_TOPN is Infinity and the output is a dumb terminal. If we didn't do this, then installations who use a default TOPN of Infinity will get every process in the system when running top on a dumb terminal (or redirected to a file). Note that Nominal_TOPN is a default: it can still be overridden on the command line, even with the value "infinity". Nominal TOPN [18]: [ENTER] Default Delay is the default number of seconds to wait between screen updates. Default Delay [5]: [ENTER] It looks like you have conventional passwd file access. Top can take advantage of a random access passwd mechanism if such exists. Do you want top to assume that accesses to the file /etc/passwd are done with random access rather than sequential? [no]: [ENTER] Compiling prime.c I found 30 entries in your passwd file. Top hashes the username to uid mappings as it goes along and it needs a good guess on the size of that hash table. This number should be the next highest prime number after 60. I have calculated that to be 61. Enter the hash table size [61]: [ENTER] I see /proc out there. Many Unix variants provide the /proc file system as a mechanism to get to a process's address space. This directory is typically only accessible by root. However, there are a few systems (such as DG/UX) on which this directory exists, but isn't used. It looks like this system is running Solaris 2.6 or greater. If this is the case, then top can function just fine installed set group id to sys. It does not need to be installed set-uid to root. Tell me how to set the following when top is installed: Owner [root]: [ENTER] Group owner [sys]: [ENTER] Mode [2711]: [ENTER] Install the executable in this directory [/usr/local/bin]: [ENTER] Install the manual page in this directory [/usr/man/manl]: [ENTER] Install the manual page with this extension [l]: [ENTER] Install the manual page as 'man' or 'catman' [man]: [ENTER] We are done with the questions. Saving configuration... Building Makefile... Building top.local.h... Building top.1... Doing a "make clean". rm -f *.o top core core.* sigdesc.h To create the executable, type "make". To install the executable, type "make install". |