centos 7 installation

Started by lindeamon, April 20, 2017, 07:14:22 PM

Previous topic - Next topic

lindeamon

hi all,

i have installed a fresh centos 7 linux box. i have installed it with server+gui and additional packages like development tools and etc...
i have installed postgres v9.1.3 x64 downloaded form enterprisedb and the installation seems to work fine and i can connect to the server with the pgadmin.
i am tring to install netxms v2.0.8 and i always fall on "libpq-fe.h".

i have tried configuring the pg_env.sh file with PG_INCDIR and run it and still no go.
any idea ?

Lindeamon

Victor Kirhenshtein

Hi,

make sure you have package postgresql-devel installed.

Best regards,
Victor

lindeamon

Hi Victor,

thank you for the reply. centos is packed with a different version of postgres then i have installed, does it matter ?
also, i have found the file under <postgres install dir>/include, do i still have to install the devel package ? do i need to "export" some env. variables ?

Best Regards,
Lindeamon

Victor Kirhenshtein

Hi,

environment variables is not needed, you need only libpq-fe.h in include path, and libpq.so in library path. You can specify path to your PostgreSQL installation in --with-pgsql configuration option, like

./configure --with-pgsql=<postgres install dir>

Best regards,
Victor

lindeamon

Hi Victor,

this, i already knew and did but it didn't work.
in the past, you told me what should be the path and i couldn't find the post in the forum.
i have entered, --with-pgsql=/opt/Postgres/9.1/lib, should have i not enter "/lib" ?

Best Regards,
Lindeamon

lindeamon

hi victor,

used --with-pgsql=/opt/PostgreSQL/9.5/ and didn't get the libpq-fe.h error.
now iam geting:
for PQconnectdb in -lpq... no
configure: error: libpq is require for PostgreSQL support.

can you tell me what is happening ?
never had those kind of troubles in the past...
Best Regards,
Lindeamon

lindeamon

hi victor,

i have installed the postgres-devel package bundled with the centos7 install media and nothing worked, still missing libpq.
i have removed postgres9.5 and installed v9.1 and still the same error.

can you help ?
i do not want to reinstall the server with windows...

lindeamon

hi victor,

i have set up a VM with the exact installation and everything is the same, can not pass the libpq.
i have removed postgres v9.5.6 from enterprisedb's installation and installed postgres from yum and i get passed the ./configure step.
does this has something to do with netxms ?
should i contact enterprisedb ?

i need an answer quick.

Best Regards,
Lindeamon

lindeamon

hi victor,

i have removed yum installed postgres and i have reinstalled it from enterprisedb's installer.
running "find" found libpq.
now, if run ./configure --with-pgsql=/opt/PostgreSQL/9.5/ i get passed the libpq-fe.h but i fail in libpq
i have ran find command and found both of the files in the "/opt/PostgreSQL/9.5/include" dir

what is wrong ?
need your help a.s.a.p

Best Regards,
lindeamon

lindeamon

hi victor,

didn't had the patience to wait.
i have installed centos 6.9 x64 with enterprisedb's postgresql v9.5.6 and everything works like a charm.
something is not working with centos7 and i would appreciate if you find out what is the problem.

Best Regards,
Lindeamon 

Alex Kirhenshtein

I just tried building server on Centos7 (clean minimal install, reverted to snapshot between attempts) – works fine for me.

Using binaries from postgresqls.org:

yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
yum install postgresql96-server postgresql96-contrib postgresql96-devel
yum install gcc gcc+c++ openssl-devel libssh-devel
tar zxf netxms-2.1-M3.tar.gz
cd netxms-2.1-M3
./configure --prefix=/opt/netxms --with-server --with-pgsql=/usr/pgsql-9.6
make -j16 && make install


Using PG from EnterpriseDB:
./postgresql-9.6.2-4-linux-x64.run # installed into default /opt/PostgreSQL/9.6
yum install gcc gcc+c++ openssl-devel libssh-devel
tar zxf netxms-2.1-M3.tar.gz
cd netxms-2.1-M3
./configure --prefix=/opt/netxms --with-server --with-pgsql=/opt/PostgreSQL/9.6
make -j16 && make install

lindeamon

Hello Alex,

thank you for your time.
can you check it with PG v9.5 from enterprise db and netxms 2.0.8 ?
what is make -j16 ? i always do: make && make instal...

Best Regards,
Lindeamon

new centos7 user

Hello
I am just looking to add netxms to my toolbag and loaded centos 7 on a server and need some guidance to install netxms software. I am having a problem installing the netxms to the machine. I have never done this in centos.
Thanks for any help you can give me.