<div dir="ltr">こんにちは<div><br></div><div>佐藤です。<br><div><br></div><div>オフィシャルドキュメントにインストール手順が載っていますので、</div><div>こちらを試してみてはいかがでしょうか?</div><div><a href="http://pgroonga.github.io/ja/install/centos.html">http://pgroonga.github.io/ja/install/centos.html</a><br></div><div><br></div><div>今問題となっているところはPostgreSQLの初期設定の部分だと思います。</div><div>initdbを実行されていないようです。</div><div>こちらも参考になると思います。</div><div><a href="http://qiita.com/purini-to/items/702565733a03c202d98e">http://qiita.com/purini-to/items/702565733a03c202d98e</a><br></div><div><br></div><div>まずはPGroongaを一旦置いて、PostgreSQLが正常に動作するように設定してみてください。</div><div><br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">2017年6月6日(火) 18:30 &lt;<a href="mailto:s400t****@yahoo*****">s400t****@yahoo*****</a>&gt;:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div><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"><a href="http://engineer-milione.com/tips/pgroonga.html" target="_blank">http://engineer-milione.com/tips/pgroonga.html</a><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. 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  しかありません。</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">英語版サイト(<a href="https://pgroonga.github.io/install/centos.html" target="_blank">https://pgroonga.github.io/install/centos.html</a>)には</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></div>_______________________________________________<br>
groonga-dev mailing list<br>
<a href="mailto:groon****@lists*****" target="_blank">groon****@lists*****</a><br>
<a href="http://lists.osdn.me/mailman/listinfo/groonga-dev" rel="noreferrer" target="_blank">http://lists.osdn.me/mailman/listinfo/groonga-dev</a><br>
</blockquote></div>