Here is my system:
> uname -a
SunOS myserver 5.10 Generic_144488-04 sun4u sparc SUNW,SPARC-Enterprise
> gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with: /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
0. Compiling Gnu Coreutils
> wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.19.tar.xz
> xz -d coreutils-8.19.tar.xz
> tar -xf coreutils-8.19.tar
> cd coreutils-8.19
> .configure --prefix=$HOME/local
> make
> make install
Add following lines in ~/.bashrc or ~/.bash_profile:
export LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:"
alias ls='ls --color=auto --group-directories-first'
Make sure $HOME/local/bin is in first order in PATH variable.
> wget ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2
> bzip -d vim-7.3.tar.bz2
> tar -xf vim-7.3.tar
> cd vim73/src
> ./configure --prefix=$HOME/local
> make
> make install
> vi .vimrc
set term=xtermc
syntax on
colorscheme elflord
set number
set nocompatible
set expandtab sw=4 ts=4 sts=4
set backspace=2 " make backspace work like most other apps
set backspace=indent,eol,start
Add $HOME/local/bin to PATH variable.
> wget http://ftp.midnight-commander.org/mc-4.6.1.tar.gz
> gzip -d mc-4.6.1.tar.gz
> tar -xf mc-4.6.1.tar
> cd mc-4.6.1
> ./configure --prefix=$HOME/local
> make
> make install
> vi .bash_profile
alias mc='/usr/bin/env TERM=xtermc mc'
alias mcedit='/usr/bin/env TERM=xtermc mcedit'
If arrow key not works. F9 > Options > learn Keys... then set all arrow key until OK
For everyone who got "configure: error: cannot compute sizeof (off_t)", run "./configure --prefix=$HOME/local --without-local-dir".
ReplyDeletethanks for the tips 👍
Delete