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. skipping incompatible libmysqlclient

skipping incompatible libmysqlclient

Scheduled Pinned Locked Moved Support
16 Posts 5 Posters 44.5k 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.
  • M
    M
    MVLeor
    wrote on last edited by
    #6

    I was missing the correct version of mysql-devel
    The missing includes gave it in..

    Thanks.

    1 Reply Last reply
    0
    • P
      P
      phungtan
      wrote on last edited by
      #7

      I also was a bug like that.
      Hope you help me solve.

      after I run the command  $ cd: netxms-0.2.31
                                        $ Sh. / Configure - with-server - with-mysql - with-agent
      ==> Checking for mysql_init in-lmysqlclient ... no
            configure: error: libmysqlclient is requred for MySQL support

      Help me please!

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

        Please post your config.log

        Best regards,
        Victor

        1 Reply Last reply
        0
        • P
          P
          phungtan
          wrote on last edited by
          #9

          Myfile config.log
          configure:30964: $? = 0
          configure:30970: ./conftest
          configure:30974: $? = 0
          configure:30976: result: yes
          configure:31002: checking for iconv declaration
          configure:31036: gcc -c -g -O2  -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 -D_GNU_SOURCE -I/usr/local/include  conftest.c >&5
          configure:31043: $? = 0
          configure:31058: result:
          configure:31091: checking for mysql_init in -lmysqlclient
          configure:31126: gcc -o conftest -g -O2  -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 -D_GNU_SOURCE -I/usr/local/include  -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 -L/usr/local/lib -lpthread conftest.c -lmysqlclient  -lz -ldl -lcrypto -lcrypto -lcrypto  >&5
          /usr/bin/ld: cannot find -lmysqlclient
          collect2: ld returned 1 exit status
          configure:31133: $? = 1
          configure: failed program was:
          | /* confdefs.h.  */
          | #define PACKAGE_NAME "NetXMS"
          | #define PACKAGE_TARNAME "netxms"
          | #define PACKAGE_VERSION "0.2.31"
          | #define PACKAGE_STRING "NetXMS 0.2.31"
          | #define PACKAGE_BUGREPORT "NetXMS Team [email protected]"
           /* Override any GCC internal prototype to avoid an error.
          |    Use char because int might match the return type of a GCC
          |    builtin and then its argument prototype would still apply.  */
          | #ifdef __cplusplus
          | extern "C"
          | #endif
          | char mysql_init ();
          | int
          | main ()
          | {
          | return mysql_init ();
          |  ;
          |  return 0;
          | }
          configure:31154: result: no
          configure:31164: error: libmysqlclient is requred for MySQL support

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

            Did you have libmysqlclient.so somewhere in the system? If yes, where?

            Best regards,
            Victor

            1 Reply Last reply
            0
            • L
              L
              lima25
              wrote on last edited by
              #11

              I compiled using:

              LDFLAGS=-lmysqlclient ./configure --with-server --with-nxhttpd --with-mysql --with-openssl --with-agent --with-client
              
              1 Reply Last reply
              0
              • ?
                ?
                possamai
                wrote on last edited by
                #12

                same problem on FreeBSD 😞

                checking whether iconv supports UCS-2BE... yes
                checking whether iconv supports UCS-2LE... yes
                checking whether iconv supports UCS-4-INTERNAL... yes
                checking whether iconv supports UCS-4... yes
                checking whether iconv supports UCS4... no
                checking whether iconv supports UCS-4BE... yes
                checking whether iconv supports UCS-4LE... yes
                checking whether iconv supports ISO8859-1... yes
                checking whether iconv supports ISO-8859-1... yes
                checking whether iconv supports ASCII... yes
                checking whether iconv supports //IGNORE... yes
                checking for iconv declaration... const
                checking for mysql_init in -lmysqlclient... no
                configure: error: libmysqlclient is requred for MySQL support
                $
                $
                $ find / -name libmysqlclient.so
                /usr/local/lib/mysql/libmysqlclient.so
                

                The commandline I used

                ./configure --with-server --with-agent --with-mysql=/usr/local/lib/mysql/ --prefix=/usr/local/netxms/
                

                I tried with and without the path to the mysql libs but it doesn't matter..

                It's all 32bit so that's not the issue.....

                1 Reply Last reply
                0
                • ?
                  ?
                  possamai
                  wrote on last edited by
                  #13

                  Got some info from config.log that 'might' be interesting.. I'm no coder so I'm not sure, but it looks like something going bad..

                  configure:34878: checking whether mysql clients can run
                  configure:34909: gcc -o conftest -g -O2  -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/i
                  nclude/mysql -I/usr/mysql/include/mysql -I/usr/local/include -D_THREAD_SAFE  -L/usr/local/mysql/lib -L/usr/lib64/mysql -L/usr/lib/mysql -L/usr/mysql/lib -L/u
                  sr/local/lib/mysql -L/usr/local/mysql/lib/mysql -L/usr/mysql/lib/mysql -L/usr/local/lib -pthread -liconv conftest.c -lkvm -lexpat -lz -lreadline -ltermcap -l
                  crypto -lcrypto -lcrypto -lcrypto  >&5
                  /var/tmp//cc8sb5NG.o(.text+0x19): In function `main':
                  /root/netxms/netxms-1.0.0-rc1/conftest.c:183: undefined reference to `mysql_init'
                  configure:34912: $? = 1
                  configure: program exited with status 1
                  configure: failed program was:
                  | /* confdefs.h.  */
                  

                  If more info is needed, let me know

                  1 Reply Last reply
                  0
                  • ?
                    ?
                    possamai
                    wrote on last edited by
                    #14

                    Still no solution?
                    Could it have something to do with the version of mysql?
                    I'm running Mysql 5.1

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

                      Please try 1.0.0-rc2 (https://www.netxms.org/download/netxms-1.0.0-rc2.tar.gz) - this problem should be fixed.

                      Best regards,
                      Victor

                      1 Reply Last reply
                      0
                      • ?
                        ?
                        possamai
                        wrote on last edited by
                        #16

                        It is.
                        Works great

                        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