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
安裝全部完畢。