Solaris

2006/1/23 06:54 PM 更新

GNUソフトウェア

『基本ソフトウェアのインストール』でインストールしたものだけでは使い勝手があまり良くないのでGNU系ツールを中心にインストールする。
  autoconf-2.59

$ wget ftp://ftp.ring.gr.jp/pub/GNU/autoconf/autoconf-2.59.tar.gz
$ tar xvzf autoconf-2.59.tar.gz
$ cd autoconf-2.59
$ ./configure
$ make
# make install

  automake-1.8.4

$ wget ftp://ftp.ring.gr.jp/pub/GNU/automake/automake-1.8.4.tar.gz
$ tar xvzf automake-1.8.4.tar.gz
$ cd automake-1.8.4
$ ./configure
$ make
# make install

  bash-2.05b

$ wget ftp://ftp.ring.gr.jp/pub/GNU/bash/bash-2.05b.tar.gz
$ wget ftp://ftp.ring.gr.jp/pub/GNU/bash/bash-2.05b-patches/bash205b-001
$ wget ftp://ftp.ring.gr.jp/pub/GNU/bash/bash-2.05b-patches/bash205b-002
$ wget ftp://ftp.ring.gr.jp/pub/GNU/bash/bash-2.05b-patches/bash205b-003
$ wget ftp://ftp.ring.gr.jp/pub/GNU/bash/bash-2.05b-patches/bash205b-004
$ wget ftp://ftp.ring.gr.jp/pub/GNU/bash/bash-2.05b-patches/bash205b-005
$ wget ftp://ftp.ring.gr.jp/pub/GNU/bash/bash-2.05b-patches/bash205b-006
$ wget ftp://ftp.ring.gr.jp/pub/GNU/bash/bash-2.05b-patches/bash205b-007
$ tar xvzf bash-2.05b.tar.gz
$ cd bash-2.05b
$ patch -p0 < ../bash205b-001
$ patch -p0 < ../bash205b-002
$ patch -p0 < ../bash205b-003
$ patch -p0 < ../bash205b-004
$ patch -p0 < ../bash205b-005
$ patch -p0 < ../bash205b-006
$ patch -p0 < ../bash205b-007
$ ./configure
$ make
# make install

bashでログインしたときのログインプロンプトを変更する。
  $HOME/.bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

if [ -n "$PS1" ]; then
PS1='[\u@\h \W]\$ '
fi

USER=`id -un`
LOGNAME=$USER
HOSTNAME=`/usr/bin/hostname`
HISTSIZE=1000
HISTFILESIZE=1000
alias ls='ls -p'
alias cp='cp -ip'
alias rm='rm -i'
alias mv='mv -i'
alias df='df -h'

  $HOME/.bash_profile

# Reading .profile
if [ -f ~/.profile ]; then
. ~/.profile
fi

# Reading .bashrc
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

  diffutils-2.8.1

$ wget ftp://ftp.ring.gr.jp/pub/GNU/diffutils/diffutils-2.8.1.tar.gz
$ tar xvzf diffutils-2.8.1.tar.gz
$ cd diffutils-2.8.1
$ ./configure
$ make
# make install

  fileutils-4.1

$ wget ftp://ftp.ring.gr.jp/pub/GNU/fileutils/fileutils-4.1.tar.gz
$ tar xvzf fileutils-4.1.tar.gz
$ cd fileutils-4.1
$ ./configure
$ make
# make install

  findutils-4.1

$ wget ftp://ftp.ring.gr.jp/pub/GNU/findutils/findutils-4.1.tar.gz
$ tar xvzf findutils-4.1.tar.gz
$ cd findutils-4.1
$ ./configure
$ make
# make install

  flex-2.5.4a

$ wget ftp://ftp.ring.gr.jp/pub/GNU/non-gnu/flex/flex-2.5.4a.tar.gz
$ tar xvzf flex-2.5.4a.tar.gz
$ cd flex-2.5.4
$ ./configure
$ make
# make install

  gawk-3.1.3

$ wget ftp://ftp.ring.gr.jp/pub/GNU/gawk/gawk-3.1.3.tar.gz
$ tar xvzf gawk-3.1.3.tar.gz
$ cd gawk-3.1.3
$ ./configure
$ make
# make install

  gdb-6.1

$ wget ftp://ftp.ring.gr.jp/pub/GNU/gdb/gdb-6.1.tar.gz
$ tar xvzf gdb-6.1.tar.gz
$ cd gdb-6.1
$ ./configure
$ make
# make install

  gperf-3.0.1

$ wget ftp://ftp.ring.gr.jp/pub/GNU/gperf/gperf-3.0.1.tar.gz
$ tar xvzf gperf-3.0.1.tar.gz
$ cd gperf-3.0.1
$ ./configure
$ make
# make install

バージョンを確認しようとするとライブラリエラーが発生。

# gperf --version
ld.so.1: gperf: fatal: libstdc++.so.5: open failed: No such file or directory
Killed

ライブラリへのパスを通す。

# ldd /usr/local/bin/gperf
libstdc++.so.5 => (file not found)
libm.so.1 => /usr/lib/libm.so.1
libgcc_s.so.1 => (file not found)
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1

# crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib

# ldd /usr/local/bin/gperf
libstdc++.so.5 => /usr/local/lib/libstdc++.so.5
libm.so.1 => /usr/lib/libm.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1

  grep-2.5.1

$ wget ftp://ftp.ring.gr.jp/pub/GNU/grep/grep-2.5.tar.gz
$ tar xvzf grep-2.5.tar.gz
$ cd grep-2.5
$ ./configure
$ make
# make install

  groff-1.19

$ wget ftp://ftp.ring.gr.jp/pub/GNU/groff/groff-1.19.tar.gz
$ tar xvzf groff-1.19.tar.gz
$ cd groff-1.19
$ ./configure
$ make
# make install

  less-358+日本語化

$ wget ftp://ftp.ring.gr.jp/pub/GNU/less/less-358.tar.gz
$ wget http://www.io.com/%7Ekazushi/less/less-358-iso254.patch.gz
$ tar xvzf less-358.tar.gz
$ gzip -d less-358-iso254.patch.gz
$ cd less-358
$ patch -p1 < ../less-358-iso254.patch
$ ./configure
$ make
# make install

  libiconv-1.9.2

$ wget ftp://sunsite.tus.ac.jp/archives/gnu/libiconv/libiconv-1.9.2.tar.gz
$ tar xvzf libiconv-1.9.2.tar.gz
$ cd libiconv-1.9.2
$ ./configure
$ make
# make install

  libtool-1.5.6

$ wget ftp://ftp.ring.gr.jp/pub/GNU/libtool/libtool-1.5.6.tar.gz
$ tar xvzf libtool-1.5.6.tar.gz
$ cd libtool-1.5.6
$ ./configure
$ make
# make install

  patch-2.5.4

$ wget ftp://ftp.ring.gr.jp/pub/GNU/patch/patch-2.5.4.tar.gz
$ tar xvzf patch-2.5.4.tar.gz
$ cd patch-2.5.4
$ ./configure
$ make
# make install

  sed-4.0.7

$ wget ftp://ftp.ring.gr.jp/pub/GNU/sed/sed-4.0.9.tar.gz
$ tar xvzf sed-4.0.7.tar.gz
$ cd sed-4.0.9
$ ./configure
$ make
# make install

  sh-utils-2.0

$ wget ftp://ftp.ring.gr.jp/pub/GNU/sh-utils/sh-utils-2.0.tar.gz
$ tar xvzf sh-utils-2.0.tar.gz
$ cd sh-utils-2.0
$ ./configure
$ make
# make install

  textutils-2.1

$ wget ftp://ftp.ring.gr.jp/pub/GNU/textutils/textutils-2.1.tar.gz
$ tar xvzf textutils-2.1.tar.gz
$ cd textutils-2.1
$ ./configure
$ make
# make install

  wget-1.9.1

$ wget ftp://ftp.ring.gr.jp/pub/GNU/wget/wget-1.9.1.tar.gz

パッケージ版のwgetをアンインストール
# pkgrm SMCwget

wgetをインストール
$ tar xvzf wget-1.9.1.tar.gz
$ cd wget-1.9.1
$ ./configure
$ make
# make install

  which-2.16

$ wget ftp://ftp.ring.gr.jp/pub/GNU/which/which-2.16.tar.gz
$ tar xvzf which-2.16.tar.gz
$ cd which-2.16
$ ./configure
$ make
# make install