程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> MYSQL數據庫 >> 關於MYSQL數據庫 >> 安裝MySQL5.5時常見錯誤--缺失make

安裝MySQL5.5時常見錯誤--缺失make

編輯:關於MYSQL數據庫
首先我這是一台CentOS release 6.2 (Final),新安裝的系統,沒有任何軟件及庫文件。安裝MySQL5.5之前,先需要大概了解一下,需要注意的信息,MySQL5.5的安裝與其它版本不同的是編譯安裝時,需要用到cmake,所以做如下操作:   1.yum install gcc* c++ * autoconf automake zlib*  libXML* ncurses-devel libmcrypt* libtool-ltdl-devel*安裝系統所需要的庫文件   2.安裝cmake工具。yum install cmake*   3.由於我這個系統是新安裝的沒有任何軟件,所以如果用yum install cmake*安裝成功後,到安裝MySQL時會出現如下錯誤,請看:   [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/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 -DWITH_MEMORY_STORAGE_ENGINE=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 not be built correctly.   Missing variable is:   CMAKE_C_COMPILER_ENV_VAR   CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.   Missing variable is:   CMAKE_C_COMPILER   CMake Error: Could 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 correctly.   Missing variable is:   CMAKE_CXX_COMPILER_ENV_VAR   CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.   Missing variable is:   CMAKE_CXX_COMPILER   CMake Error: Could 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   -- Configuring incomplete, errors occurred!   大概的意思就是說cmake沒有安裝好,我明明用yum install cmake*安裝好了呀?後來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 1:3.81-20.el6 will be installed   --> Finished Dependency Resolution       DependencIEs Resolved       ================================================================================    Package        Arch            Version                  Repository      Size   ================================================================================   Installing:    make            i686            1:3.81-20.el6            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-20.el6.i686.rpm                                | 386 kB    00:01       Running rpm_check_debug   Running Transaction Test   Transaction Test Succeeded   Running Transaction     Installing : 1:make-3.81-20.el6.i686                                      1/1        Installed:     make.i686 1:3.81-20.el6                                                            Complete!
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved