Errors often occur when installing MySQL5.5 -- make is missing

Source: Internet
Author: User
Tags localhost mysql

I often see errors when installing MySQL5.5 -- missing make. First of all, I am a CentOS release 6.2 (Final). The newly installed system does not have any software or library files. Before installing mysql5.5, you need to take a rough look at the information that you need to pay attention to. The installation of mysql5.5 is different from that of other versions when compiling and installing, you need to use cmake, so do the following: 1.yum install gcc * c ++ * autoconf automake zlib * libxml * ncurses-devel libmcrypt * libtool-ltdl-devel * library file required for installing the system 2. install the cmake tool. Yum install cmake * 3. because my system is newly installed without any software, if you use yum install cmake * to install mysql successfully, the following error will occur during mysql installation. For details, see: [root @ localhost mysql] # cd mysql-5.5.25a [root @ localhost mysql-5.5.25a] # cmake-DCMAKE_INSTALL_PREFIX =/usr/local/mysql-DMYSQL_UNIX_ADDR =/data/mysql. sock-DDEFAULT_CHARSET = utf8-DDEFAULT_COLLATION = utf8_general_ci-DWITH_EXTRA_CHARSETS: STRING = utf8, gbk-DWITH_MYISAM_STORAGE_ENGINE = 1-DWITH_INNOBASE_STORAGE _ ENGINE = 1-runtime = 1-DWITH_READLINE = 1-DENABLED_LOCAL_INFILE = 1-DMYSQL_DATADIR =/data/mysql-DMYSQL_USER = mysql-DMYSQL_TCP_PORT = 3306 CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles ". CMAKE_MAKE_PROGRAM is not set. you probably need to select a different build tool. CMake Error: Error required internal CMake variable not set, cmake may be n Ot be built correctly. missing variable is: CMAKE_C_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may not be built correctly. missing variable is: CMAKE_C_COMPILER CMake Error: cocould not find cmake module file:/root/mysql/mysql-5.5.25a/CMakeFiles/CMakeCCompiler. cmake CMake Error: Error required internal CMake variable not set, cmake may be not be built corr Ectly. missing variable is: CMAKE_CXX_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may not be built correctly. missing variable is: CMAKE_CXX_COMPILER CMake Error: cocould not find cmake module file:/root/mysql/mysql-5.5.25a/CMakeFiles/CMakeCXXCompiler. cmake CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, After EnableLanguage -- inserting ing incomplete, errors occurred! This means that cmake is not properly installed. I have installed it with yum install cmake? Later after yum install make, [root @ localhost mysql-5.5.25a] # yum install make Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package make. i686 :3. 81-cancel6 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================== ============================================ ============= Package Arch Version Repository Size ======================== ========================================================== ============================ Installing: make i686 :3. 81-cancel6 base 386 k Transaction Summary ================================== ========================================================== ====== Install 1 Package (s) total download size: 386 k Installed size: 1.0 M Is this OK [y/N]: y Downloading Packages: make-3. 81-cancel6.i686.rpm | 386 kB 00:01 Running rpm_check_debug Running Transaction Test Succeeded Running Transaction Installing: 1: make-3.81-20.el6.i686 1/1 Installed: make. i686. 81-20.el6 Complete!

Related Article

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.