##解开压缩包
-bash-3.2# bunzip2 vim-7.4.tar.bz2
-bash-3.2# tar xvf vim-7.4.tar
## 安装make,gcc
pkgadd -d /cdrom/sol_10_113_x86/Solaris_10/Product SUNWgmake
pkgadd -d /cdrom/sol_10_113_x86/Solaris_10/Product SUNWgcc
pkgadd -d /cdrom/sol_10_113_x86/Solaris_10/Product SUNWgccruntime
bash-3.2# pkginfo |grep gcc
system SUNWgcc gcc - The GNU C compiler
system SUNWgccruntime GCC Runtime libraries
##设置环境参数
-bash-3.2# echo "export LD_LIBRARY_PATH=/usr/local/lib/" >> /.profile
-bash-3.2# echo "export PATH=/usr/ccs/bin:/usr/local/bin:$PATH" >>/.profile
-bash-3.2# source /.profile
##进入vim/src目录安装
-bash-3.2# cd vim74/src
-bash-3.2# make && make install
##配置vim
cp /usr/local/share/vim/vim74/vimrc_example.vim /.vimrc