インストール時にネットワーク関係の設定を行う。ここでは、以下のようなネットワークを仮定。
192.168.0.10 Solaris8 #<== インストールするマシン 192.168.0.1 DNS Server 192.168.0.254 Gateway
GNU関係のソフトウェアもインストールすること。終わったら以下のファイルを編集。
# # /etc/defaultrouter # 192.168.0.254
# # /etc/hosts # 127.0.0.1 localhost 192.168.0.1 dns 192.168.0.10 solaris8 192.168.0.254 gateway
# # /etc/resolv.conf # domain home-net #<== 所属ドメイン名 nameserver 127.0.0.1 #<== ループバックIPアドレス nameserver 192.168.0.1 #<== ネームサーバのIPアドレス
# # /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 #<== 確認
$ gunzip -c readline-4.1.tar.gz | tar xf - $ cd readline-4.1
$ ./configure
$ make
$ su -l # make install
http://www.prel.org/
$ gunzip -c perl-5.6.0.tar.gz | tar xf - $ cd perl-5.6.0 $ CC=gcc; export CC $ ./configure.gnu $ make
$ make test ・・・ |All tests successful. |u=2.07 s=1.87 cu=110.01 cs=67.9 scripts=230 tests=11511
$ su -l # make install
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
http://www.scriptics.com/software/
$ gtar zxvf tcl8.3.2.tar.gz $ cd tcl8.3.2/unix/ $ ./configure --enable-gcc --enable-64bit --enable-threads $ make $ su # make install # ln /usr/local/bin/tclsh8.3 /usr/local/bin/tclsh
$ gtar zxvf tk8.3.2.tar.gz
$ ls -al
$ cd tk8.3.2/unix
$ ./configure --enable-gcc --enable-threads \
--with-tcl=/usr/local/lib --enable-64bit --with-x
(実際には一行に)
$ make
$ su
# make install
# ln /usr/local/bin/wish8.3 /usr/local/bin/wish
http://www.postgresql.org
$ su # groupadd postgres # useradd -g postgres -d /usr/local/pgsql -s /bin/sh postgres # mkdir /usr/local/pgsql # chown postgres:postgres /usr/local/pgsql
(シェルが違う場合は変更すること。cshの場合は./cshrcとsetenvを使用)
~/.shrc ------------------------------------------- LD_LIBRARY_PATH=/usr/local/pgsql/lib PGLIB=/usr/local/pgsql/lib PGDATA=/usr/local/pgsql/data -------------------------------------------
$ ./configure --enable-multibyte=EUC_JP \ --with-includes=/opt/sfw/include --with-libraries=/opt/sfw/lib $ vi include/config.h $ vi 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
# mkdir /usr/local/pgsql/data # chown -R postgres:postgres /usr/local/pgsql/data # exit $ initdb $ su # vi /etc/system
---------------------------------------- set shmsys:shminfo_shmmax = 131072000 ---------------------------------------- # reboot
$ /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 (確認)
$ createdb $ cd src/test/regress $ gmake clean $ gmake all runtest (failedメッセージが出てもほとんどは無視しても構わない)
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フォントが表示されれば成功
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
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
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
SPARC版のSolaris8でディスク障害が起きた場合の対処
コンソールモードに落ちた場合は、ファイルシステムのチェックを実行。
/usr/sbin/fsck /dev/rdsk/c0t1d0s7 ^^^^^^^^ <--障害が発生したディスク
終了後、再起動。
ok boot -vr
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
で再起動。