Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-21206

Can't link/include C library 'zlib', aborting. during MariaDb installation

    XMLWordPrintable

    Details

      Description

      While installing MariaDB its unable to link Zlib library and ended with below error.

      I will use the following settings for compiling and testing:
       
        cflags        (mysql_config) = -I/opt/alu-rp/mysql/include/mysql -I/opt/alu-rp/mysql/include/mysql/..
        embedded      (mysql_config) = 
        ldflags       (guessed     ) = 
        libs          (mysql_config) = -L/opt/alu-rp/mysql/lib -lmariadb -lpthread *-lzlib* -ldl -lm -lgnutls
        mysql_config  (guessed     ) = mysql_config
        nocatchstderr (default     ) = 0
        nofoundrows   (default     ) = 0
        nossl         (default     ) = 0
        testdb        (default     ) = test
        testhost      (default     ) = 
        testpassword  (default     ) = 
        testport      (default     ) = 
        testsocket    (default     ) = 
        testuser      (guessed     ) = 
       
      To change these settings, see 'perl Makefile.PL --help' and
      'perldoc DBD::mysql::INSTALL'.
       
      Checking if libs are available for compiling...
      Can't link/include C library 'zlib', aborting.
      

      But I could see the zlib need to be accessed as -lz

      [root@motiveche076 ~]# pkg-config zlib --libs
      -lz
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              danblack Daniel Black
              Reporter:
              RagulR Ragul
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: