problems compilling pg_rman...

52 views
Skip to first unread message

Jorge Omar Ceyca Castro

unread,
Aug 13, 2012, 11:58:52 AM8/13/12
to pg_...@googlegroups.com
hello everyone,

im trying compile pg_rman at CentOS 6.2 and PostgreSQL 8.4.12, but i receive the next error:

gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DLINUX_OOM_ADJ=0 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv backup.o catalog.o data.o delete.o dir.o init.o parray.o pg_rman.o restore.o show.o util.o validate.o xlog.o pgsql_src/pg_ctl.o pgsql_src/pg_crc.o pgut/pgut.o pgut/pgut-port.o -L/usr/lib -lpgport -L/usr/lib -lpq -L/usr/lib -Wl,--as-needed -lpgport -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lcrypt -ldl -lm -o pg_rman
/usr/bin/ld: cannot find -lpgport
collect2: ld devolvió el estado de salida 1
make: *** [pg_rman] Error 1

i found several information about postgresql dont have the file really, how can fix the problem? compilling the postgresql and install?

thanks :)

OTSUKA Kenji

unread,
Aug 13, 2012, 5:43:49 PM8/13/12
to pg_...@googlegroups.com
Hello,

Is there libpgport.a in /usr/lib?
If you use PostgreSQL rpm packages, you need to install
the package included libpgport.a.

If you got wrong path, you may want to use USE_PGXS option
at building pg_rman.
USE_PGXS gives correct build options.
Type following command.
$ make USE_PGXS=1

Regards,


2012/8/14 Jorge Omar Ceyca Castro <jce...@gmail.com>:
--
OTSUKA Kenji
Reply all
Reply to author
Forward
0 new messages