忍者ブログ
出来損ないのカメレオン

PHP 4.3.11
PostgreSQL 7.4.13
EUC_JP

8.1.5
----------------------------
(zlib)
readline
-----------------------------
gzip -d ./*

postgres グループを作成する。
# groupadd postgres
postgres ユーザーを作成する。
# useradd -d /usr/local/pgsql -g postgres postgres

pkgadd -d ./postgre~

# cd /usr/local
# chown -R postgres:postgres pgsql

postgresユーザーにsuする。
# su - postgres

$ vi~/.profile
PATH=/usr/local/pgsql/bin:$PATH
export PATH

$ cd /usr/local/pgsql/
$ mkdir /usr/local/pgsql/data

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

$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
------
$ /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
$ /usr/local/pgsql/bin/createdb test
$ /usr/local/pgsql/bin/psql test
------
# cp /usr/local/pgsql/doc/pgsql/contrib/start-scripts/linux /etc/init.d/pgsql.server
# cd /etc/init.d
# chmod +x pgsql.server
# cd /etc/rc2.d
# ln -s ../init.d/pgsql.server ./S99pgsql.server
# /etc/rc2.d/S99pgsql.server start
------------------------------
passwd postgres
postgres

------------------------------
これは、LD_LIBRARY_PATH や LD_LIBRARY_PATH_64 変数をきちんと設定(ライブラリーの含まれるパスをセットする)することで解決することが出来ます。

Solaris 8 からは、Linux の ld.conf のような機能があります。直接ファイルを編集するのではなく、crle コマンドを利用します。新規登録の場合、以下のように設定ファイル(/var/ld/ld.config)を指定して基本的なライブラリーのパスを -l オプションで指定し登録します。

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

ここで、/usr/lib を入れ忘れるとダイナミックライブラリを使用しているコマンド(ls, more, などほとんどすべて)が利用できなくなります。しかし、crle コマンドは利用できるので慌てずに /usr/lib を追加します。

別のパスを追加するには、-u オプションを使用します。

    # crle -u -l /usr/local/lib

上記の二つの操作でそれぞれのコマンドは、/usr/lib, /usr/local/lib に含まれるダイナミックライブラリーを参照します。上記の操作を一度で行うには以下のように実行します。

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

PR
ブログ内検索
Counter


カレンダー
02 2025/03 04
S M T W T F S
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
忍者ブログ [PR]