mysql5.6 cmake compilation Hint library MySQLServer depends on OSLIBS-LPTHREAD;M;RT;CRYPT;DL

Source: Internet
Author: User
Tags crypt openssl


Newly installed RedHat 6.0 operating system, in order to save time, selected "Minimize Installation" during installation

The operating system needs to run mysql-5.6.11, in the CMake compile times the following error:


--Openssl_library = Openssl_library-notfound
--Crypto_library = Crypto_library-notfound
--Library mysqlclient depends on OSLIBS-LPTHREAD;M;RT;DL

CMake Error:problem with Tar_close (): Success

CMake Error:problem extracting tar:/opt/software/mysql-5.6.11/source_downloads/gmock-1.6.0.zip

Warning:bison executable not found in PATH

--Library MySQLServer depends on OSLIBS-LPTHREAD;M;RT;CRYPT;DL

--Configuring incomplete, Errors occurred!


The CMake compiler method is as follows:

CMake. -dcmake_install_prefix=/usr/local/mysql-dmysql_datadir=/usr/local/mysql/data-dsysconfdir=/usr/loca/mysql/\
-dwith_innobase_storage_engine=1-dwith_archive_storage_engine=1-dwith_blackhole_storage_engine=1 \
-dwith_federated_storage_engine=1-dwith_partition_storage_engine=1-dmysql_tcp_port=3306-denabled_local_infile= 1 \
-dwith_ssl=yes-dextra_charsets=all-ddefault_charset=utf8-ddefault_collation=utf8_general_ci-dwith_readline=on


Workaround: mysql-5.5 The above version needs to depend on the following package file (if it is less than the mysql-5.5 version does not need to install cmake)

GCC gcc-c++ OpenSSL openssl-devel ncurses ncurses-devel cmake


This article is from the "Jtao" blog, please be sure to keep this source http://hyjtao.blog.51cto.com/2385891/1692581

mysql5.6 cmake compilation Hint library MySQLServer depends on OSLIBS-LPTHREAD;M;RT;CRYPT;DL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.