Search Postgresql Archives

Re: Misplaced pg_upgrade_support.so ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/7/10 6:59 PM, Bruce Momjian wrote:
Glen Barber wrote:
exception of "--prefix=/usr/local/pgsql-beta2"; pg_upgrade_support.so
ended up in /usr/local/pgsql-beta2/lib.

Here is what I saw when running pg_upgrade initially:

%pg_upgrade -d /var/db/pgsql/data \
    -D /var/db/pgsql/data2 \
    -b /usr/local/pgsql-beta1/bin \
    -B /usr/local/pgsql-beta2/bin
Performing Consistency Checks
-----------------------------
Checking old data directory (/var/db/pgsql/data)            ok
Checking new data directory (/var/db/pgsql/data2)           ok


pg_upgrade_support.so must be created and installed in \
/usr/local/pgsql-beta2/lib/postgresql/pg_upgrade_support.so


	pg_config --pkglibdir

Thanks.


Sure thing:

    %pg_config --pkglibdir
    /usr/local/pgsql-beta2/lib/postgresql

Let me know if I can provide any additional information.

That is interesting.  I ran configure --prefix=/usr/local/pgsql-beta2
using CVS HEAD (which should match 9.0 beta2), and my output is
different:

	$ ./pg_config --pkglibdir
	/usr/var/local/pgsql-beta2/lib

Notice the "/postgresql" is missing.  This is before running pg_upgrade.

I am attaching my entire pg_config output.  Can I see yours?  Thanks.


Interestingly, I apparently would have had this issue with beta1:

   %pwd
   /usr/local/pgsql-beta1/bin
   %./pg_config --pkglibdir
   /usr/local/pgsql-beta1/lib/postgresql
   %cd ../../pgsql-beta2/bin/
   %./pg_config --pkglibdir
   /usr/local/pgsql-beta2/lib/postgresql

I've attached pg_config output for both. To rule out something off with my environment, I'm currently setting up a test environment on a different machine, where I'll check out HEAD as well as beta1 and beta2. Unless, of course, I'm missing something very obvious in the attached output.

Regards,

--
Glen Barber
BINDIR = /usr/local/pgsql-beta1/bin
DOCDIR = /usr/local/pgsql-beta1/share/doc/postgresql
HTMLDIR = /usr/local/pgsql-beta1/share/doc/postgresql
INCLUDEDIR = /usr/local/pgsql-beta1/include
PKGINCLUDEDIR = /usr/local/pgsql-beta1/include/postgresql
INCLUDEDIR-SERVER = /usr/local/pgsql-beta1/include/postgresql/server
LIBDIR = /usr/local/pgsql-beta1/lib
PKGLIBDIR = /usr/local/pgsql-beta1/lib/postgresql
LOCALEDIR = /usr/local/pgsql-beta1/share/locale
MANDIR = /usr/local/pgsql-beta1/share/man
SHAREDIR = /usr/local/pgsql-beta1/share/postgresql
SYSCONFDIR = /usr/local/pgsql-beta1/etc/postgresql
PGXS = /usr/local/pgsql-beta1/lib/postgresql/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--prefix=/usr/local'
CC = gcc
CPPFLAGS = 
CFLAGS = -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
CFLAGS_SL = -fPIC -DPIC
LDFLAGS = -Wl,--as-needed -Wl,-R'/usr/local/lib'
LDFLAGS_SL = 
LIBS = -lpgport -lz -lreadline -lcrypt -lm 
VERSION = PostgreSQL 9.0beta1
BINDIR = /usr/local/pgsql-beta2/bin
DOCDIR = /usr/local/pgsql-beta2/share/doc/postgresql
HTMLDIR = /usr/local/pgsql-beta2/share/doc/postgresql
INCLUDEDIR = /usr/local/pgsql-beta2/include
PKGINCLUDEDIR = /usr/local/pgsql-beta2/include/postgresql
INCLUDEDIR-SERVER = /usr/local/pgsql-beta2/include/postgresql/server
LIBDIR = /usr/local/pgsql-beta2/lib
PKGLIBDIR = /usr/local/pgsql-beta2/lib/postgresql
LOCALEDIR = /usr/local/pgsql-beta2/share/locale
MANDIR = /usr/local/pgsql-beta2/share/man
SHAREDIR = /usr/local/pgsql-beta2/share/postgresql
SYSCONFDIR = /usr/local/pgsql-beta2/etc/postgresql
PGXS = /usr/local/pgsql-beta2/lib/postgresql/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--prefix=/usr/local'
CC = gcc
CPPFLAGS = 
CFLAGS = -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
CFLAGS_SL = -fPIC -DPIC
LDFLAGS = -Wl,--as-needed -Wl,-R'/usr/local/lib'
LDFLAGS_SL = 
LIBS = -lpgport -lz -lreadline -lcrypt -lm 
VERSION = PostgreSQL 9.0beta2
-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux