免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1522 | 回复: 0
打印 上一主题 下一主题

top安装 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-21 17:09 |只看该作者 |倒序浏览

先去
www.sunfreeware.com
上下载
top-3.6.tar.gz                gcc-3.3.2.tar.gz    make-3.80.tar.gz  gzip-1.3.5.tar.gz
下载以后下要建立一个组
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-3.1.4:$ZL_HOME/top-3.6:$PATH
export ZL_HOME PATH
在把top-3.6.tar.gz                gcc-3.3.2.tar.gz    make-3.80.tar.gz  gzip-1.3.5.tar.gz拷贝到/export/zl下,然后解压
1、   gunzip  top-3.6.tar.gz  
2、   tar  vxf  top-3.6.tar
3、   tar  vxf   gcc-3.3.2.tar
4、   gunzip  make-3.80.tar.gz
5、   tar  vxf   make-3.80.tar
6、   gunzip  gzip-1.3.5.tar.gz
7、   tar  vxf   gzip-1.3.5.tar
8、   pkgadd –d gcc-3.3.2-sol9-sparc-local
     全是默认
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-3.1.4
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: 2048M phys mem, 1158M free mem, 16G swap, 16G free swap

   PID USERNAME LWP PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND
17305 root       1  59    0   15M   11M sleep    0:14  0.40% gnome-terminal
17295 root       1  59    0   15M   11M sleep    0:00  0.40% gnome-panel
17297 root       4  59    0   24M   20M sleep    0:01  0.20% nautilus
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   83M   15M sleep    0:01  0.00% Xsun
   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   11M 8016K sleep    0:00  0.00% dtsession
  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就安装好了  呵呵^^^^^^^


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/16743/showart_115837.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP