分类:
2006-05-21 17:09:23
先去上下载
top-3.6.tar.gz gcc-
下载以后下要建立一个组
Groupadd tong
在此组里建立一个用户以及在此用户下的文件路径
Mkdir /export/zl
Useradd –g tong –d /export/zl –m zl
给用户建立密码
Passwd:zl
然后在/export/zl建立一个set的文件
ZL_HOME=/export/zl:$ZL_HOME
PATH=$ZL_HOME:/usr/local/bin:$ZL_HOME/gawk-
export ZL_HOME PATH
在把top-3.6.tar.gz gcc-
1、 gunzip top-3.6.tar.gz
2、 tar vxf top-3.6.tar
3、 tar vxf gcc-
4、 gunzip make-3.80.tar.gz
5、 tar vxf make-3.80.tar
6、 gunzip gzip-
7、 tar vxf gzip-
8、 pkgadd –d gcc-
全是默认
9、 pakadd –d make-3.80-sol9-sparc-local
全是默认
10、cd top*
11、./configure
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking target system type... sparc-sun-solaris2.9
checking for make... make
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gawk... no
checking for mawk... no……………………
这样是正常的,但是可能出现gcc或其他错误,可以根据错误去网上下载相应的包就可以了
12、Cd ../gawk-
13、./configure
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for egrep... egrep
checking for bison... no
checking for byacc... no
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for ranlib... :
checking for a BSD-compatible install... ./install-sh -c
checking whether make sets $(MAKE)... (cached) yes
checking for special development options... no
checking for AIX... no
checking for library containing strerror... none required…………
下边
15、cd
17、. Set 是环境变量生效
18、cd top-3.6
19、top
load averages: 0.04, 0.08, 0.05; up 22+06:13:19 15:51:16
95 processes: 94 sleeping, 1 on cpu
CPU states: 98.7% idle, 0.5% user, 0.5% kernel, 0.3% iowait, 0.0% swap
Memory:
PID USERNAME LWP PRI NICE SIZE
17305 root 1 59 0
17295 root 1 59 0
17297 root 4 59 0
17291 root 1 59 0 9856K 7144K sleep 0:00 0.20% metacity
99 root 6 59 0 1808K 1176K sleep 2:19 0.00% cpudiagd
107 root 1 59 0 2264K 1216K sleep 1:36 0.00% in.mpathd
5886 root 1 59 0
391 root 1 59 0 5176K 2312K sleep 0:01 0.00% dtlogin
221 root 18 59 0 2928K 2248K sleep 0:01 0.00% nscd
5137 zl 1 59 0 2200K 1496K cpu 0:00 0.00% top
6366 root 1 19 10 4520K 2440K sleep 0:00 0.00% dtscreen
5983 root 2 49 0
6003 root 1 49 0 9304K 6544K sleep 0:00 0.00% dtterm
6365 root 1 49 0 3296K 2456K sleep 0:00 0.00% dtexec
6026 tong 1 49 0 3144K 1448K sleep 0:00 0.00% ksh
现在top就安装好了 呵呵^^^^^^^