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. Installing 0.2.14 (upgrading from 0.2.13) on Linux

Installing 0.2.14 (upgrading from 0.2.13) on Linux

Scheduled Pinned Locked Moved Support
11 Posts 3 Posters 131.6k 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.
  • I
    I
    inadiyat
    wrote on last edited by
    #1

    Hi,

    I have successfully compiled & installed netxms 0.2.13 on my Linux Box. I would like to upgrade to 0.2.14, but got this error when running ./configure --with-server --with-mysql --with-agent:

    configure: error: libmysqlclient is requred for MySQL support

    I was facing the same problem when installing 0.2.13, and solved by installing zlib. But now 0.2.14 cannot be compiled with that error, even after I uninstall and re-installing MySQL, MySQL-Dev & zlib.

    Please advise...

    Below is error a snapshot of config.log:

    configure:4438: checking for mysql_init in -lmysqlclient
    configure:4468: gcc -o conftest -g -O2 -I/usr/local/include  -D_POSIX_PTHREAD_SEMANTICS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED=1 -D_THREAD_SAFE -I/usr/local/include -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql  -L/usr/local/lib -L/usr/local/mysql/lib -L/usr/lib64/mysql -L/usr/lib/mysql -L/usr/mysql/lib -L/usr/local/lib/mysql -L/usr/local/mysql/lib/mysql -L/usr/mysql/lib/mysql conftest.c -lmysqlclient  -lm  >&5
    /usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x65): In function `my_compress_alloc':
    /home/mysqldev/rpm/BUILD/mysql-5.0.27/libmysql/my_compress.c:58: undefined reference to `compress'
    /usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x178): In function `my_uncompress':
    /home/mysqldev/rpm/BUILD/mysql-5.0.27/libmysql/my_compress.c:85: undefined reference to `uncompress'
    collect2: ld returned 1 exit status
    configure:4474: $? = 1
    configure: failed program was:

    /* confdefs.h.  */
    #define PACKAGE_NAME "NetXMS"
    #define PACKAGE_TARNAME "netxms"
    #define PACKAGE_VERSION "0.2.14"
    #define PACKAGE_STRING "NetXMS 0.2.14"
    #define PACKAGE_BUGREPORT "NetXMS Team [email protected]"
    #define PACKAGE "netxms"
    #define VERSION "0.2.14"
    #ifdef __cplusplus
    extern "C" void std::exit (int) throw (); using std::exit;
    #endif
    #define HAVE_LIBM 1
    #define WITH_MYSQL
    /* end confdefs.h.  */
    /* Override any gcc2 internal prototype to avoid an error.  */
    #ifdef __cplusplus
    extern "C"
    #endif
    /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
    char mysql_init ();
    int
    main ()
    {
    mysql_init ();
    ;
    return 0;
    }

    configure:4500: result: no
    configure:4510: error: libmysqlclient is requred for MySQL support

    Best regards,
    Adiyat

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

      Hello!

      It's a bug in configure, I'll fix it in next release. For now, try to run configure that way:

      LDFLAGS=-lz ./configure --with-server --with-agent --with-mysql

      This should help.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • I
        I
        inadiyat
        wrote on last edited by
        #3

        Still got the same error...

        I am using:

        LDFLAGS=-lz ./configure --with-server --with-agent --with-mysql

        Regards,
        Adiyat

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

          Hello.

          Please send me complete config.log to alk at netxms dor org.

          wbr, alex.

          1 Reply Last reply
          0
          • I
            I
            inadiyat
            wrote on last edited by
            #5

            Hi, Sorry for late response, I just send you the config.log to [email removed]. Please let me know if you need anything else to troubleshoot this problem.

            Thank you for your help.

            Bets regards,
            Adiyat

            1 Reply Last reply
            0
            • I
              I
              inadiyat
              wrote on last edited by
              #6

              Hi,

              Have you received the log, I sent it a few days ago. Thanks.

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

                Hello.

                Yes, i've got the log file yesterday and currently trying to find the problem. Sorry for delay.

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

                  As workaround, try to apply this patch: http://alk.lv/configure.diff , it should allow you to build server and mysql driver.

                  1 Reply Last reply
                  0
                  • I
                    I
                    inadiyat
                    wrote on last edited by
                    #9

                    Thanks, I'll give it a try... and will let you know the result.

                    1 Reply Last reply
                    0
                    • I
                      I
                      inadiyat
                      wrote on last edited by
                      #10

                      Hi,

                      The problem still there, I just send you 2 files, configure & config.log, hope can help you troubleshoot the problem.

                      THank you very much to your support.

                      Best regards,
                      Adiyat

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

                        I've send you an email with further tests

                        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