Thread: BUG #5401: make: *** [pg_rman] Error 1

BUG #5401: make: *** [pg_rman] Error 1

From
"Jyothi"
Date:
The following bug has been logged online:

Bug reference:      5401
Logged by:          Jyothi
Email address:      Jyothihn07@gmail.com
PostgreSQL version: 8.4
Operating system:   fedora12
Description:        make: *** [pg_rman] Error 1
Details:

When i m trying to install pg_rman on fedora platform i m getting an error
like make: *** [pg_rman] Erro
Preivous  Are listed Below
1)pg_config not found
ans:i set the path using path command
After I ran a command like :$ make USE_PGXS=1 i
i m getting an error like
gcc -O2 -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/opt/PostgreSQL/8.4/lib -lpgport
-L/opt/PostgreSQL/8.4/lib -lpq -L/opt/PostgreSQL/8.4/lib -L/usr/local/lib
-Wl,-rpath,'/opt/PostgreSQL/8.4/lib' -lpgport -lxml2 -lpam -lssl -lcrypto
-lkrb5 -lz -lreadline -ltermcap -lcrypt -ldl -lm  -o pg_rman
/usr/bin/ld: cannot find -lxml2
collect2: ld returned 1 exit status
make: *** [pg_rman] Error 1
[root@localhost pg_rman]#

Re: BUG #5401: make: *** [pg_rman] Error 1

From
Devrim GÜNDÜZ
Date:
On Thu, 2010-04-01 at 11:32 +0000, Jyothi wrote:
> Operating system:   fedora12
> Description:        make: *** [pg_rman] Error 1
<snip>
> /usr/bin/ld: cannot find -lxml2

You will need to install libxml2-devel , I think.
--
Devrim GÜNDÜZ
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
PostgreSQL RPM Repository: http://yum.pgrpms.org
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org  Twitter: http://twitter.com/devrimgunduz