Chinaunix首页 | 论坛 | 博客
  • 博客访问: 537349
  • 博文数量: 154
  • 博客积分: 4055
  • 博客等级: 上校
  • 技术积分: 1381
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-01 14:26
文章分类

全部博文(154)

文章存档

2014年(2)

2013年(2)

2011年(2)

2010年(11)

2009年(9)

2008年(35)

2007年(22)

2006年(71)

我的朋友

分类:

2006-05-21 17:09:23

先去上下载

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

      全是默认

10cd 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或其他错误,可以根据错误去网上下载相应的包就可以了

12Cd ../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…………

下边

15cd

17. Set    是环境变量生效

18cd top-3.6

19top

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就安装好了  呵呵^^^^^^^

阅读(1294) | 评论(0) | 转发(0) |
0

上一篇:apache编译与安装

下一篇:imp导入困难重重

给主人留下些什么吧!~~