Solaris8インストールメモ

- CONTENTS -

初期設定

インストール時にネットワーク関係の設定を行う。ここでは、以下のようなネットワークを仮定。

192.168.0.10  Solaris8  #<== インストールするマシン
192.168.0.1   DNS Server
192.168.0.254 Gateway

GNU関係のソフトウェアもインストールすること。終わったら以下のファイルを編集。

  1. /etc/defaultrouter
    #
    # /etc/defaultrouter
    #
    192.168.0.254
    
  2. /etc/hosts
    #
    # /etc/hosts
    #
    127.0.0.1     localhost
    192.168.0.1   dns
    192.168.0.10  solaris8
    192.168.0.254 gateway
    
  3. /etc/resolv.conf
    #
    # /etc/resolv.conf
    #
    domain home-net         #<== 所属ドメイン名
    nameserver 127.0.0.1    #<== ループバックIPアドレス
    nameserver 192.168.0.1  #<== ネームサーバのIPアドレス
    
  4. /etc/netmasks
    #
    # /etc/netmasks
    #
    192.168.0.0   255.255.255.0  #<== ネットマスク
    
目次に戻る

修正パッチ

以下の場所から修正パッチのダウンロード

http://sunsolve.sun.co.jp/pub-cgi/show.pl?target=patches/patch-access

rootでパッチを当てる。

# unzip 8_Recommended.zip
# cd 8_Recommended
# ./install_cluster   #<== パッチインストール
# /usr/bin/showrev -p  #<== 確認
目次に戻る

readline-4.1

  1. tar+gzipで圧縮されているファイルを展開
    $ gunzip -c readline-4.1.tar.gz | tar xf -
    $ cd readline-4.1
    
  2. configureを実行
    $ ./configure
    
  3. makefileが作成されたら、コンパイルを行う
    $ make
    
  4. makeが終了したら、rootになってインストール
    $ su -l
    # make install
    
目次に戻る

perl-5.6.0

http://www.prel.org/

  1. 展開とコンパイル
    $ gunzip -c perl-5.6.0.tar.gz | tar xf -
    $ cd perl-5.6.0
    $ CC=gcc; export CC
    $ ./configure.gnu
    $ make
    
  2. テスト
    $ make test
    ・・・
    |All tests successful.
    |u=2.07  s=1.87  cu=110.01  cs=67.9  scripts=230  tests=11511
    
  3. インストール
    $ su -l
    # make install
    
目次に戻る

nkf-1.9.2

ftp://ftp.ie.u-ryukyu.ac.jp/pub/software/kono/nkf192.shar

$ mkdir nkf-1.9.2
$ mkdir nkf-1.9.2/NKF
$ cd nkf-1.9.2/
$ /bin/sh ../nkf192.shar
$ vi Makefile

PERL = perl5 → PERL = perl

$ make CC=gcc
$ make test
$ su
# cp -p nkf /usr/local/bin/
# cp -p nkf.1 /usr/local/man/man1/
# exit
$ cd NKF/
$ perl Makefile.PL
$ make
$ make test
$ su
# make install
目次に戻る

tcl/tk

http://www.scriptics.com/software/

目次に戻る

PostgreSQL-7.0.3

http://www.postgresql.org

  1. postgres ユーザ作成
    $ su
    # groupadd postgres
    # useradd -g postgres -d /usr/local/pgsql -s /bin/sh postgres
    # mkdir /usr/local/pgsql
    # chown postgres:postgres /usr/local/pgsql
    
  2. postgresユーザの環境変数

    (シェルが違う場合は変更すること。cshの場合は./cshrcとsetenvを使用)

    ~/.shrc
    -------------------------------------------
    LD_LIBRARY_PATH=/usr/local/pgsql/lib
    PGLIB=/usr/local/pgsql/lib
    PGDATA=/usr/local/pgsql/data
    -------------------------------------------
    
  3. 展開・コンパイル
    $ ./configure --enable-multibyte=EUC_JP \
        --with-includes=/opt/sfw/include --with-libraries=/opt/sfw/lib
    $ vi include/config.h
    $ vi Makefile.global
    
  4. include/config.h と Makefile.global の修正
    include/config.h
    ----------------------------------------
    /* #undef STDC_HEADERS */
    
    -> #define STDV_HEADERS 1
    ----------------------------------------
    Makefile.global
    --------------------------------------------------------------------
    LIBPQ= -L$(LIBPQDIR) -lpq
    LIBPGTCL= -L$(LIBPGTCLDIR) -lpgtcl
    
    ->LIBPQ= -R$(LIBDIR) -L$(LIBPQDIR) -lpq
    ->LIBPGTCL= -R$(LIBDIR) -L$(LIBPGTCLDIR) -lpgtcl
    --------------------------------------------------------------------
    CFLAGS= -I$(SRCDIR)/include -I$(SRCDIR)/backend -I/opt/sfw/include
    
    ->CFLAGS= -I$(SRCDIR)/include -I$(SRCDIR)/backend \
            -I/opt/sfw/include -I/usr/local/include
    --------------------------------------------------------------------
    LDFLAGS= -L/opt/sfw/lib $(LIBS)
    
    ->LDFLAGS= -R/opt/sfw/lib -R/usr/local/lib -L/opt/sfw/lib $(LIBS) \
            -L/usr/local/lib $(LIBS)
    --------------------------------------------------------------------
    
    $ gmake
    $ su
    # gmake install
    
  5. データベースの初期化
    # mkdir /usr/local/pgsql/data
    # chown -R postgres:postgres /usr/local/pgsql/data
    # exit
    $ initdb
    $ su
    # vi /etc/system
    
  6. 以下の行を追加
    ----------------------------------------
    set shmsys:shminfo_shmmax = 131072000
    ----------------------------------------
    # reboot
    
  7. 起動
    $ /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data
    または、
    $ /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data start
    $ ps -ef | grep postmaster
    (確認)
    
  8. データベース作成・テスト
    $ createdb
    $ cd src/test/regress
    $ gmake clean
    $ gmake all runtest
    (failedメッセージが出てもほとんどは無視しても構わない)
    
目次に戻る

freetype-1.3.1

ftp://ftp.freetype.org/pub/

$ gtar zxvf freetype-1.3.1.tar.gz
$ cd freetype-1.3.1
$ ./configure
$ make
$ su
# make install

テスト(X Windowsが起動していないとエラー)

$ /usr/local/bin/ftview 20 \
        /usr/openwin/lib/locale/ja/X11/fonts/TT/HG-MinchoL.ttf

ウインドウが開いてTrueTypeフォントが表示されれば成功

目次に戻る

apache-1.3.14

http://www.apache.org/

$ gtar zxvf apache_1.3.14.tar.gz
$ cd apache_1.3.14
$ ./configure --enable-shared=max
$ make
$ su
# make install

/usr/local/apacheにインストールされる

# cd /usr/local/apache/conf
# vi httpd.conf

Port 80
ServerName www

# /usr/local/apache/bin/apachectl configtest
# /usr/local/apache/bin/apachectl start
目次に戻る

php-4.0.4

http://www.php.net/

$ gunzip -c php-4.0.4.tar.gz | tar xf -
$ cd php-4.0.4
$ ./configure --with-apxs=/usr/local/apache/bin/apxs \
              --enable-versioning --enable-i18n \
              --enable-mbregex --with-pgsql \ 
              --enable-track-vars --with-ttf \
              --with-zlib --with-readline --with-xml

libncurses.so.4が・・・というエラーが出たが、以下のようにシンボリックリンクを張ることで回避することができた。

# ln -s /opt/sfw/lib/libncurses.so.4.2 \
        /usr/local/lib/libncurses.so.4

$ make
$ su
# make install

apacheでphpを有効にする

vi /usr/local/apache/conf/httpd.conf
--------------------------------------------------------------
#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

->AddType application/x-httpd-php .php
->AddType application/x-httpd-php-source .phps
--------------------------------------------------------------

apache再起動

# /usr/local/apache/bin/apachectl restart
目次に戻る

openssl と openssh

Open-ssl-0.9.6

$ gtar zxvf openssl-0.9.6.tar.gz
$ cd openssl-0.9.6
$ ./config
$ make
$ make test
$ su
# make install

Open-ssh-2.4.0p1

$ gtar zxvf openssh-2.3.0p1.tar.gz
$ cd openssh-2.3.0p1
$ ./configure
$ gmake
$ gmake test
$ su
# gmake install 
目次に戻る

Solaris8ディスク障害復旧

SPARC版のSolaris8でディスク障害が起きた場合の対処

コンソールモードに落ちた場合は、ファイルシステムのチェックを実行。

/usr/sbin/fsck /dev/rdsk/c0t1d0s7
                         ^^^^^^^^ <--障害が発生したディスク

終了後、再起動。

ok boot -vr
目次に戻る

Fujitsu-S-4/20L

FujitsuのS-4/20シリーズでは、Solaris8とサウンドデバイスの相性に問題があるらしい。Fujitsuは非サポートらしいのだが。一応、解決方法があるらしい。詳しくは以下参照。

http://moon.hanya-n.org/comp/sun/20L-sol8.html

SOLARIS8 SOFTWARE 1 OF 2 のCDROMをCDROMドライブに入れる。

ok boot cdrom

ウィンドウシステムが立ち上がった所で、背景の部分でマウスを右クリックし、ユーティリティの中から コマンドツールを選択。

# fsck /dev/rdsk/c0t3d0s0 (panicで落ちた場合のみ必要)
# mount /dev/dsk/c0t3d0s0 /a
# vi /a/etc/driver_aliases

以下の行を削除

audiocs SUNW,CS4231
# cd /
# umount /a
# halt

モニタに落ちたら、

ok boot -vr

で再起動。

目次に戻る

戻る
LastUpdate 2000/09/10