[Pgpool-hackers] [Pgpool-general] Some questions regarding pgpool-II
Yoshiyuki Asaba
y-asaba at sraoss.co.jp
Wed Sep 27 02:21:16 UTC 2006
From: Devrim GUNDUZ <devrim at commandprompt.com>
Subject: [Pgpool-general] Some questions regarding pgpool-II
Date: Tue, 26 Sep 2006 13:14:06 +0300
> - Also I have a problem running pgpoolAdmin. Here is the detail:
> pgmgt.conf has this line: define('_PGPOOL2_PCP_DIR', '/usr/bin');
> (I changed the default value to match RPM installations via a rpm
> patch)
>
> However, when I want to start pgpool from web interface, I get an
> error:
>
> ===================================================================
> Pgpool start failed. Pgpool.pid not found
>
> mkdir: cannot create directory `/usr/bin/.libs': Permission denied
> /usr/bin/ld: cannot open output file /usr/bin/.libs/4125-lt-pgpool:
> No such file or directory
> collect2: ld returned 1 exit status
> ===================================================================
>
> I want to assume that we will not want to create a directory (.libs)
> under /usr/bin with apache user :-) So, we may need to rethink about
> this: Define another directory (/tmp or pgpoolAdmin installation
> directory) in conf file and create .libs there.
Could you test the attached patch? I think /usr/bin/pgpool is a shell
script.
% file /usr/bin/pgpool
It is a wrapper script for libtools. Binary file is in
pgpool-II-1.0.x/.libs/ directory.
--
Yoshiyuki Asaba
y-asaba at sraoss.co.jp
-------------- next part --------------
Index: pgpool.spec
===================================================================
RCS file: /cvsroot/pgpool/pgpool-II/pgpool.spec,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 pgpool.spec
*** pgpool.spec 8 Sep 2006 03:36:04 -0000 1.1.1.1
--- pgpool.spec 27 Sep 2006 02:15:49 -0000
***************
*** 25,31 ****
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
- install -m 755 pgpool $RPM_BUILD_ROOT/usr/bin/
install -m 755 pgpool.conf.sample $RPM_BUILD_ROOT/etc
install -m 744 pgpool.8 %{_mandir}/man8/
--- 25,30 ----
More information about the Pgpool-hackers
mailing list