为什么要替换,你知道的啦,刚好最近有点时间,废话不说啦
查看下操作系统版本
bash-3.00# more /etc/release
Solaris 10 5/09 s10s_u7wos_08 SPARC
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 30 March 2009
然后去下载相对应得版本,VIM SPARC版本的
下载
vim-7.2-sol10-sparc-local.gz
提示依赖
gtk+-1.2.10,
glib-1.2.10,
ncurses, libgcc-3.4.6-sol10-sparc-local.gz
libiconv,
libintl,
都下载回来吧
pkginfo检查一下,没有的话都下载回来装上吧
额这个是新装的系统,这些包肯定都没有
bash-3.00# cd /tmp/vim/
bash-3.00# pwd
/tmp/vim
bash-3.00# ls -l
total 17552
-rw-r--r-- 1 root other 366521 May 18 09:25 glib-1.2.10-sol10-sparc-local.gz
-rw-r--r-- 1 root other 3371095 May 18 09:25 gtk+-1.2.10-sol10-sparc-local.gz
-rw-r--r-- 1 root other 527922 May 18 09:25 libgcc-3.4.6-sol10-sparc-local.gz
-rw-r--r-- 1 root other 1518894 May 18 09:25 libiconv-1.13.1-sol10-sparc-local.gz
-rw-r--r-- 1 root other 49051 May 18 09:25 libintl-3.4.0-sol10-sparc-local.gz
-rw-r--r-- 1 root other 3135763 May 18 09:25 ncurses-5.7-sol10-sparc-local.gz
bash-3.00# gunzip *
bash-3.00# ls -l
total 64224
-rw-r--r-- 1 root other 1446912 May 18 09:25 glib-1.2.10-sol10-sparc-local
-rw-r--r-- 1 root other 11554816 May 18 09:25 gtk+-1.2.10-sol10-sparc-local
-rw-r--r-- 1 root other 1921536 May 18 09:25 libgcc-3.4.6-sol10-sparc-local
-rw-r--r-- 1 root other 2574848 May 18 09:25 libiconv-1.13.1-sol10-sparc-local
-rw-r--r-- 1 root other 132096 May 18 09:25 libintl-3.4.0-sol10-sparc-local
-rw-r--r-- 1 root other 15221760 May 18 09:25 ncurses-5.7-sol10-sparc-local
bash-3.00# pkgadd -d libgcc-3.4.6-sol10-sparc-local
The following packages are available:
1 SMClgcc346 libgcc
(sparc) 3.4.6
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: all
Processing package instance from
libgcc(sparc) 3.4.6
FSF
The selected base directory must exist before
installation is attempted.
Do you want this directory created now [y,n,?,q] y
Using as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
Installing libgcc as
## Installing part 1 of 1.
/usr/local/lib/libg2c.so
/usr/local/lib/libg2c.so.0
/usr/local/lib/libg2c.so.0.0.0
/usr/local/lib/libgcc_s.so
/usr/local/lib/libgcc_s.so.1
/usr/local/lib/libstdc++.so.6
/usr/local/lib/libstdc++.so.6.0.3
[ verifying class ]
Installation of was successful.
依次安装所有的包
...................
忘了下载最关键的vim,晕,下载传到服务器上,pkgadd安装之
验证一下
bash-3.00# pkginfo |grep vim
application SMCvim vim
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00# pkgchk -v SMCvim
/usr/local/bin
/usr/local/bin/eview
/usr/local/bin/evim
/usr/local/bin/ex
/usr/local/bin/gview
/usr/local/bin/gvim
/usr/local/bin/gvimdiff
/usr/local/bin/rgview
/usr/local/bin/rgvim
/usr/local/bin/rview
/usr/local/bin/rvim
/usr/local/bin/view
/usr/local/bin/vim
/usr/local/bin/vimdiff
/usr/local/bin/vimtutor
/usr/local/bin/xxd
/usr/local/doc
/usr/local/doc/vim
/usr/local/doc/vim/README.txt
/usr/local/doc/vim/README_lang.txt
/usr/local/doc/vim/README_src.txt
/usr/local/doc/vim/README_unix.txt
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/man/man1/eview.1
/usr/local/share/man/man1/evim.1
....................略
/usr/local/share/vim/vim72/tutor/tutor.sk.utf-8
/usr/local/share/vim/vim72/tutor/tutor.sv
/usr/local/share/vim/vim72/tutor/tutor.sv.utf-8
/usr/local/share/vim/vim72/tutor/tutor.tr.iso9
/usr/local/share/vim/vim72/tutor/tutor.tr.utf-8
/usr/local/share/vim/vim72/tutor/tutor.utf-8
/usr/local/share/vim/vim72/tutor/tutor.vi.utf-8
/usr/local/share/vim/vim72/tutor/tutor.vim
/usr/local/share/vim/vim72/tutor/tutor.zh.big5
/usr/local/share/vim/vim72/tutor/tutor.zh.euc
/usr/local/share/vim/vim72/tutor/tutor.zh.utf-8
/usr/local/share/vim/vim72/vimrc_example.vim
bash-3.00# ls -l /usr/bin/vi
-r-xr-xr-x 5 root bin 239828 Sep 14 2007 /usr/bin/vi
bash-3.00# mv /usr/bin/vi /usr/bin/vi.orig
bash-3.00# ln -s /usr/local/bin/vi
view vim vimdiff vimtutor
bash-3.00# ln -s /usr/local/bin/vim /usr/bin/vi
bash-3.00# ls -l /usr/bin/vi
lrwxrwxrwx 1 root root 18 May 18 09:39 /usr/bin/vi -> /usr/local/bin/vim
vim就出来啦,看能不能支持颜色
echo "syntax on" >> /root/.vimrc
阅读(3340) | 评论(1) | 转发(0) |