Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. centos 7 installation

centos 7 installation

Scheduled Pinned Locked Moved Support
13 Posts 4 Posters 66.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L
    L
    lindeamon
    wrote on last edited by
    #3

    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

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #4

      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

      1 Reply Last reply
      0
      • L
        L
        lindeamon
        wrote on last edited by
        #5

        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

        1 Reply Last reply
        0
        • L
          L
          lindeamon
          wrote on last edited by
          #6

          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

          1 Reply Last reply
          0
          • L
            L
            lindeamon
            wrote on last edited by
            #7

            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...

            1 Reply Last reply
            0
            • L
              L
              lindeamon
              wrote on last edited by
              #8

              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

              1 Reply Last reply
              0
              • L
                L
                lindeamon
                wrote on last edited by
                #9

                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

                1 Reply Last reply
                0
                • L
                  L
                  lindeamon
                  wrote on last edited by
                  #10

                  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

                  1 Reply Last reply
                  0
                  • A
                    A
                    Alex Kirhenshtein
                    wrote on last edited by
                    #11

                    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
                    
                    1 Reply Last reply
                    0
                    • L
                      L
                      lindeamon
                      wrote on last edited by
                      #12

                      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

                      1 Reply Last reply
                      0
                      • N
                        N
                        new centos7 user
                        wrote on last edited by
                        #13

                        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.

                        1 Reply Last reply
                        0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        Powered by NodeBB Contributors
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups