<div dir="ltr"><div><div><div><div><div>I know it is referencing to the /etc/pgpool.conf because if i delete the file, pgpool will complain:<br>[root@se032c-94-30 ~]# mv /etc/pgpool.conf /etc/pgpool.conf.bkp<br>mv: overwrite `/etc/pgpool.conf.bkp&#39;? y<br>
[root@se032c-94-30 ~]# pgpool<br>pool_config: could not open configuration file (pgpool.conf)<br>pool_config: using default values...<br><br></div>I have the same sysconfdir and prefix as my configure argument.<br><br></div>
Side question, do i need to have the postgresql lib and include folder available in order to &#39;make&#39; pgpool? <br><br></div>Here is my configure cmd:<br>--with-pgsql-libdir=/usr/pgsql-9.2/lib --prefix=/usr<br><br></div>
while /usr/pgsql-9.2/lib is not available during the compile time.  Will that be an issue? <br><br></div>Thanks~<br>Ning<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 16, 2013 at 11:59 PM, Nozomi Anzai <span dir="ltr">&lt;<a href="mailto:anzai@sraoss.co.jp" target="_blank">anzai@sraoss.co.jp</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
# I resend because I didn&#39;t reply to ML.<br>
<div class="im HOEnZb"><br>
&gt; Hi Nozomi,<br>
&gt; Sorry for the late reply.<br>
&gt; I did not use your spec file directly but I referenced to it and it is<br>
&gt; working perfectly.<br>
&gt; One thing I would like to mention is that, i use the --prefix and<br>
&gt; --sysconfdir, the prefix works, without problem but the syscondir does not.<br>
&gt; I set --sysconfdir=/etc/pgpool, but it still reference to /etc/pgpool.conf<br>
&gt; and I guess that is the default location?<br>
&gt; I also verify that it did not reference to /usr/bin/etc which my<br>
&gt; prefix=/usr/<br>
<br>
</div><div class="im HOEnZb">Is configure in your spec file like this?<br>
<br>
%configure --with-pgsql-includedir=%{_includedir}/pgsql \<br>
           --with-pgsql-lib=%{_libdir}/pgsql \<br>
           --disable-static --with-pam --disable-rpath \<br>
           --sysconfdir=/etc/pgpool/ \<br>
           --prefix=/usr/<br>
<br>
I tried rpmbuild with this, and confirmed that /etc/pgpool was created and<br>
that pgpool.conf was as /etc/pgpool/pgpool.conf. It seems fine.<br>
So, could you tell me in detail about that &quot;it still reference<br>
to /etc/pgpool.conf&quot;? How did you see it?<br>
# The default is /etc/pgpool-II/pgpool.conf in my spec file.<br>
<br>
</div><div class="HOEnZb"><div class="h5">&gt; Is this expected?<br>
&gt;<br>
&gt; Thanks~<br>
&gt; Ning<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Apr 7, 2013 at 8:19 PM, Nozomi Anzai &lt;<a href="mailto:anzai@sraoss.co.jp">anzai@sraoss.co.jp</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; &gt; Hi all,<br>
&gt; &gt; &gt; Does anyone has a good rpm build process and spec file for pgpool to<br>
&gt; &gt; share?<br>
&gt; &gt;<br>
&gt; &gt; Recently I&#39;m updating pgpool.spec for 3.2.<br>
&gt; &gt; Could you try this attached spec file?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; Thanks~<br>
&gt; &gt; &gt; Ning<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Nozomi Anzai<br>
&gt; &gt; SRA OSS, Inc. Japan<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; pgpool-general mailing list<br>
&gt; &gt; <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
&gt; &gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
<br>
<br>
--<br>
Nozomi Anzai<br>
SRA OSS, Inc. Japan<br>
_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
</div></div></blockquote></div><br></div>