Обсуждение: pgaccess for 6.5.3
Still problems with pgaccess. While the new Makefile I made properly copies pgaccess to the bin directory, it does not deal with PGACCESS_HOME properly, and I believe configure should be table to set PATH_TO_WISH. Please hold 6.5.3 until someone comes up with a good solution to this. Do we want to copy the entire pgaccess tree to the pgsql install directory? Can someone suggest a line for PATH_TO_WISH that can be set by configure? -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
Bruce Momjian wrote:
>
> Still problems with pgaccess.
>
> While the new Makefile I made properly copies pgaccess to the bin
> directory, it does not deal with PGACCESS_HOME properly, and I believe
> configure should be table to set PATH_TO_WISH.
>
> Please hold 6.5.3 until someone comes up with a good solution to this.
>
> Do we want to copy the entire pgaccess tree to the pgsql install
> directory?
>
> Can someone suggest a line for PATH_TO_WISH that can be set by configure?
Hmmm.... Under the RPM installation, there is installed, by the build
script in the spec file, a shell script into /usr/bin called pgaccess --
this script is as follows:
-----------
#!/bin/sh
PATH_TO_WISH=/usr/bin/wish
PGACCESS_HOME=/usr/lib/pgsql/pgaccess
export PATH_TO_WISH
export PGACCESS_HOME
exec ${PATH_TO_WISH} ${PGACCESS_HOME}/main.tcl "$@"
----------
PGACCESS_HOME should, under the standard installation, be set to
something more inline with the standard installation's idea of where
pgaccess/main.tcl is located.
PATH_TO_WISH should likely be /usr/bin/wish on most systems.
The RPM packages have not relied upon the tarball's inclusion of
pgaccess -- rather, a separate tarball of just the latest pgaccess is
grafted in -- so there may be some other differences that I am not aware
of.
--
Lamar Owen
WGCR Internet Radio
>> Can someone suggest a line for PATH_TO_WISH that can be set by configure?
You should use autoconf's standard mechanism for testing for a
program's existence and location. To wit,AC_PATH_PROG(PATH_TO_WISH, wish)
or one of its variants.
regards, tom lane
> >> Can someone suggest a line for PATH_TO_WISH that can be set by configure? > > You should use autoconf's standard mechanism for testing for a > program's existence and location. To wit, > AC_PATH_PROG(PATH_TO_WISH, wish) > or one of its variants. Thanks. That's what I used. See my other message outlining my changes to get this working. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026