Shakthi777
asked on
Errors while compiling Postgresql Repmgr
Hi Experts,
I'm trying to install RepMgr for Postgresql 9.2 running on Ubuntu 12.04. When I'm trying to make, i get following;
Can you please help me to resolve this ?
I'm trying to install RepMgr for Postgresql 9.2 running on Ubuntu 12.04. When I'm trying to make, i get following;
root@node1:~/repmgr-2.0# make USE_PGXS=1
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -pie -I/usr/include/mit-krb5 -DLINUX_OOM_ADJ=0 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statem<wbr ></wbr>ent -Wendif-labels -Wmissing-format-attribute<wbr ></wbr> -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standar<wbr ></wbr>d -g dbutils.o config.o repmgrd.o log.o strutil.o -L/usr/lib -lpgport -L/usr/lib -lpq -L/usr/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -L/usr/lib/mit-krb5 -L/usr/lib/x86_64-linux-gn<wbr ></wbr>u/mit-krb5<wbr ></wbr> -L/usr/lib/x86_64-linux-gn<wbr ></wbr>u -Wl,--as-needed -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5 -lz -ledit -lcrypt -ldl -lm -o repmgrd
/usr/bin/ld: cannot find -lxslt
/usr/bin/ld: cannot find -lxml2
/usr/bin/ld: cannot find -lpam
/usr/bin/ld: cannot find -ledit
collect2: ld returned 1 exit status
make: *** [repmgrd] Error 1
Can you please help me to resolve this ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As far as I know it should be included in the standard repositories. I have looked for it on a Zentos server which is based on Ubuntu and uses the same repositories, and it was there.
ASKER
I was following https://github.com/greg2ndQuadrant/repmgr#notes-on-ubuntu-debian-or-other-debian-based-builds and;
Any idea ?
root@node1:~$ sudo update-alternatives --install /usr/bin/repmgr repmgr /usr/lib/postgresql/9.2/bi<wbr ></wbr>n/repmgr 10
update-alternatives: error: alternative path /usr/lib/postgresql/9.2/bi<wbr ></wbr>n/repmgr doesn't exist.
Any idea ?
ASKER
Below was my installation steps it's has done, thanks for the support !
sudo apt-get update
sudo apt-get install postgresql-server-dev-9.2
sudo wget --quiet -O - https://www.postgresql.org<wbr ></wbr>/media/key<wbr ></wbr>s/ACCC4CF8<wbr ></wbr>.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/<wbr ></wbr>pub/repos/<wbr ></wbr>apt/ precise-pgdg main" >> /etc/apt/sources.list.d/po<wbr ></wbr>stgresql.l<wbr ></wbr>ist'
sudo apt-get update
sudo apt-get install repmgr
ASKER
I have manually added to the repository and install repmgr.
Tnx !
Tnx !
sudo apt-get update
sudo apt-get install repmgr