红联Linux门户
Linux帮助

在solaris10上安装top

发布时间:2006-11-30 01:04:50来源:红联作者:hlMiracle
gcc-3.3.2-sol10-intel-local.gz
make-3.81-sol10-x86-local.gz
top-3.6-sol10-x86-local.gz

2、把这3个包解压,得到3个文件
gcc-3.3.2-sol10-intel-local
make-3.81-sol10-x86-local
top-3.6-sol10-x86-local

3、用pkgadd安装
1) # pkgadd -d gcc-3.3.2-sol10-intel-local(全部默认就行了)

The following packages are available:
1 SMCgcc gcc
(intel) 3.3.2

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

处理软件包范例来自

gcc(intel) 3.3.2
FSF

所选择的基本目录必须存在于开始安装之前

您要现在就创建这个目录吗 [y,n,?,q] y
使用作为包的基本目录
## 正在处理软件包信息.
## 正在处理系统信息.
## 检查磁盘空间需求
## 检查同已经安装的软件包之间的冲突.
## 检查setuid/setgid程序。

安装gcc成为

##正在安装1部分- 1.
/usr/local/bin/c++
/usr/local/bin/cpp
/usr/local/bin/g77
/usr/local/bin/gcc
/*中间省略……*/
/usr/local/man/man7/fsf-funding.7
/usr/local/man/man7/gfdl.7
/usr/local/man/man7/gpl.7
[ 确认类别 ]
/usr/local/bin/g++ <链接的路径名>
/usr/local/bin/i386-pc-solaris2.10-c++ <链接的路径名>
/usr/local/bin/i386-pc-solaris2.10-g++ <链接的路径名>
/usr/local/bin/i386-pc-solaris2.10-gcc <链接的路径名>
/usr/local/bin/i386-pc-solaris2.10-gcc-3.3.2 <链接的路径名>
/usr/local/bin/i386-pc-solaris2.10-gcj <链接的路径名>

安装成功

pkgadd: ERROR: attempt to process datastream failed
# pkgadd -d make-3.81-sol10-x86-local

The following packages are available:
1 SMCmake make
(x86) 3.81

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

处理软件包范例来自

make(x86) 3.81
FSF
使用作为包的基本目录
## 正在处理软件包信息.
## 正在处理系统信息.
5软件包路径名已经正确地安装
## 检查磁盘空间需求
## 检查同已经安装的软件包之间的冲突.
## 检查setuid/setgid程序。

安装make成为

##正在安装1部分- 1.
/usr/local/bin/make
/usr/local/doc/make/ABOUT-NLS
/usr/local/doc/make/AUTHORS
/usr/local/doc/make/COPYING
/usr/local/doc/make/ChangeLog
/usr/local/doc/make/INSTALL
/usr/local/doc/make/NEWS
/usr/local/doc/make/README
/usr/local/doc/make/README.Amiga
/usr/local/doc/make/README.DOS
/usr/local/doc/make/README.OS2
/usr/local/doc/make/README.W32
/usr/local/doc/make/README.customs
/usr/local/doc/make/doc/Makefile
/usr/local/doc/make/doc/Makefile.am
/usr/local/doc/make/doc/Makefile.in
/usr/local/doc/make/doc/fdl.texi
/usr/local/doc/make/doc/make-stds.texi
/usr/local/doc/make/doc/make.texi
/usr/local/doc/make/doc/stamp-vti
/usr/local/doc/make/doc/version.texi
/usr/local/man/man1/make.1
[ 确认类别 ]

安装成功

3)# pkgadd -d top-3.6-sol10-x86-local

The following packages are available:
1 SMCtop top
(x86) 3.6

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

处理软件包范例来自

top(x86) 3.6
LeFebvre et al
使用作为包的基本目录
## 正在处理软件包信息.
## 正在处理系统信息.
4软件包路径名已经正确地安装
## 检查磁盘空间需求
## 检查同已经安装的软件包之间的冲突.
## 检查setuid/setgid程序。

安装top成为

##正在安装1部分- 1.
/usr/local/bin/amd64/top
/usr/local/bin/i386/top
/usr/local/bin/top
/usr/local/doc/top/Changes
/usr/local/doc/top/FAQ
/usr/local/doc/top/INSTALL
/usr/local/doc/top/LICENSE
/usr/local/doc/top/README
/usr/local/doc/top/Y2K
/usr/local/man/man1/top.1/top.1
[ 确认类别 ]

安装成功

4、OK,软件已经安装完毕,设置环境变量
# cd /
# vi .prifile
MANPATH=/usr/local/man
LD_LIBRARY_PATH=/usr/local/lib:$ LD_LIBRARY_PATH
PATH=/usr/local/bin:$PATH
Export MANPATH LD_LIBRARY_PATH PATH

5、重启系统生效

# gcc -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/l d --disable-nls
Thread model: posix
gcc version 3.3.2
# make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-pc-solaris2.10
# top -v
top: version 3.6

# top

last pid: 3256; load avg: 0.30, 0.52, 0.29; up 0+00:07:43 10:20:04
104 processes: 102 sleeping, 1 running, 1 on cpu
CPU states: 94.4% idle, 3.6% user, 2.0% kernel, 0.0% iowait, 0.0% swap
Memory: 1015M phys mem, 26M free mem, 1540M swap, 1510M free swap

PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
2289 oracle 1 60 0 394M 298M sleep 0:00 1.86% oracle
2116 root 20 59 0 94M 28M sleep 0:08 1.72% java
2765 root 1 59 0 47M 10M sleep 0:00 0.25% mixer_applet2
2130 root 1 59 0 38M 32M sleep 0:01 0.15% Xorg
2768 root 14 59 0 85M 22M sleep 0:01 0.14% java
2925 root 2 59 0 107M 14M sleep 0:00 0.12% gnome-terminal
3148 oracle 11 29 10 94M 38M sleep 0:04 0.12% java
3256 root 1 59 0 2840K 1648K cpu 0:00 0.10% top
2908 oracle 22 29 10 217M 95M sleep 0:25 0.08% java
2341 root 1 59 0 12M 9612K sleep 0:01 0.07% gconfd-2
2376 root 1 59 0 112M 21M sleep 0:01 0.05% gnome-panel
2979 oracle 1 59 0 396M 307M sleep 0:00 0.04% oracle
1809 noaccess 26 59 0 124M 32M sleep 0:09 0.04% java
2259 oracle 1 59 0 395M 293M sleep 0:00 0.03% oracle
2285 oracle 11 59 0 395M 298M sleep 0:00 0.03% oracle

安装全部完毕。
文章评论

共有 0 条评论