<html><body><div style="color:; background-color:; font-family:MS PGothic, sans-serif;font-size:12pt"><div style=""><div><font face="MS PGothic, sans-serif">リストのみなさん、こんにちは。</font></div><div><font face="MS PGothic, sans-serif">初めての投稿です。</font></div><div><font face="MS PGothic, sans-serif"><br></font></div><div><font face="MS PGothic, sans-serif">PGRoongaを使いたくてインストールし始めています。どっちかというとLinuxの知識がたりないのが問題かもしれませんが、よろしくお願いします。</font></div><div><font face="MS PGothic, sans-serif"><br></font></div><div><font face="MS PGothic, sans-serif">以下のサイトを見ながらインストールしようと思っています。</font></div><div><font face="MS PGothic, sans-serif">http://engineer-milione.com/tips/pgroonga.html<br></font></div><div><font face="MS PGothic,
 sans-serif"><br></font></div><div><font face="MS PGothic, sans-serif">そのサイトの前提は、ソースからコンパイルしてインストールする。</font></div><div><font face="MS PGothic, sans-serif">PostgreSQLのインストール先は「/home/test_user/postgres」です。</font></div><div><font face="MS PGothic, sans-serif">執筆者は、環境変数の設定(.bash_profileに変数をセット)のこと書いています。</font></div><div><font face="MS PGothic, sans-serif">例)</font></div><div><font face="MS PGothic, sans-serif"><div>1. PATH=$PATH:/home/test_user/postgres/bin</div><div>2. export POSTGRES_HOME=/home/test_user/postgres</div></font></div><div><font face="MS PGothic, sans-serif">3. export PGLIB=$POSTGRES_HOME/lib</font></div><div><font face="MS PGothic, sans-serif">4.&nbsp;export LD_LIBRARY_PATH=$POSTGRES_HOME/lib:/home/test_user/groonga/lib ← これは後で必要になります。</font></div><div><font
 face="MS PGothic, sans-serif"><br></font></div><div><font face="MS PGothic, sans-serif">ここから、私がかかっている問題です。</font></div><div><font face="MS PGothic, sans-serif">私は上記サイトを見る前に、別のサイトを見て、yum install で</font><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">PostgreSQLはすでにインストールしていました。(開発環境:CentOS 6.9)</span></div><div><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">(yum install postgresql96-server postgresql96-contribでインストールしました。)<br></span></div><div><font face="MS PGothic, sans-serif"><br></font></div><div><font face="MS PGothic, sans-serif">上記のように</font><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">環境変数の設定したいのですが、インストール先フォルダー内、/libありません。</span><br></div><div><span
 style="font-family: &quot;MS PGothic&quot;, sans-serif;">インストール先は、「</span><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">/var/lib/pgsql/9.6/」です。</span></div><div><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">そこには、backups/、data/、pgstartup.log &nbsp;しかありません。</span></div><div><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">/binもありません。</span><br></div><div><font face="MS PGothic, sans-serif"><br></font></div><div><font face="MS PGothic, sans-serif">上記の三つ変数をどのように設定すればよいでしょうか?ご存知の方、教えてください。</font></div><div><font face="MS PGothic, sans-serif">(特に、/binとは、どこ見ればよいのか。)</font></div><div><font face="MS PGothic, sans-serif">よろしくお願いします。</font></div><div><font face="MS PGothic,
 sans-serif"><br></font></div><div><font face="MS PGothic, sans-serif">追加質問/コメント:</font></div><div><font face="MS PGothic, sans-serif">英語版サイト(https://pgroonga.github.io/install/centos.html)には</font><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">環境変数のこと書いていないです。</span></div><div><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">でも、上記日本語サイトでは「</span><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">これは後で必要になります」と書いています。英語サイトの通りすればやりたいこと(GRoonga/PGRoonga/PostgreSQLで全文検索エンジンの試験作成)できるのであれば</span><span style="font-family: &quot;MS PGothic&quot;,
 sans-serif;">環境変数設定しなくてもいいのですが、なにが必須、なにがオプションよくわからないのでリストに聞くことにしました。</span></div><div><span style="font-family: &quot;MS PGothic&quot;, sans-serif;"><br></span></div><div><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">ちなみに、「which postgres」コマンドを実行すると、</span></div><div><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">/usr/bin/postgres<br></span></div><div><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">表示されます。(これは、</span><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">環境変数の設定</span><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">#1のPATHに追加するものでしょうか。)</span></div><div><span style="font-family: &quot;MS PGothic&quot;, sans-serif;"><br></span></div><div><font face="MS
 PGothic, sans-serif">使っているパソコンにほかのソフトもあるので知らない道に進むや再インストールなどはできれば避けたいです。</font></div><div><span style="font-family: &quot;MS PGothic&quot;, sans-serif;"><br></span></div><div><span style="font-family: &quot;MS PGothic&quot;, sans-serif;">長くなってすみません。</span></div></div></div></body></html>