日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

安装mysql5.5时常见错误--缺失make

發布時間:2024/9/20 数据库 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 安装mysql5.5时常见错误--缺失make 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?首先我這是一臺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!

再執行./configure成功了。出現如下信息(部分):

-- Check size of wctype_t - done

-- Check size of wint_t

-- Check size of wint_t - done

-- Found Curses: /usr/lib/libcurses.so

-- Looking for tputs in /usr/lib/libcurses.so

-- Looking for tputs in /usr/lib/libcurses.so - found

-- Looking for include files HAVE_LIBAIO_H

-- Looking for include files HAVE_LIBAIO_H - not found.

-- Looking for io_queue_init in aio

-- Looking for io_queue_init in aio - not found

-- Performing Test HAVE_IB_GCC_ATOMIC_BUILTINS

-- Performing Test HAVE_IB_GCC_ATOMIC_BUILTINS - Success

-- Performing Test HAVE_IB_ATOMIC_PTHREAD_T_GCC

-- Performing Test HAVE_IB_ATOMIC_PTHREAD_T_GCC - Success

-- Check size of pthread_t

-- Check size of pthread_t - done

-- Performing Test HAVE_PEERCRED

-- Performing Test HAVE_PEERCRED - Success

Warning: Bison executable not found in PATH

-- Configuring done

-- Generating done

-- Build files have been written to: /root/mysql/mysql-5.5.25a

第二種:如果用源碼形式安裝會出現如下錯誤:

[root@localhost mysql]# cd cmake-2.8.10.1

[root@localhost cmake-2.8.10.1]# ./configure?

---------------------------------------------

CMake 2.8.10.1, Copyright 2000-2012 Kitware, Inc.

Found GNU toolchain

C compiler on this system is: gcc?

C++ compiler on this system is: g++?

---------------------------------------------

Error when bootstrapping CMake:

Cannot find appropriate Makefile processor on this system.

Please specify one using environment variable MAKE.

---------------------------------------------

Log of errors: /root/mysql/cmake-2.8.10.1/Bootstrap.cmk/cmake_bootstrap.log

---------------------------------------------

它在這里直接提示缺少make 環境。

[root@localhost cmake-2.8.10.1]# 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]:?

這回在安裝mysql時,就可以了。

總結一下,兩種不同方法安裝cmake時,提示錯誤位置不同。可能這些只與我的系統有關,可能是新系統,好多軟件均未安裝,在些做下筆記,方便以后有朋友遇到此種問題時,方便查閱。

?

?

轉載于:https://blog.51cto.com/whlai51/1126079

總結

以上是生活随笔為你收集整理的安装mysql5.5时常见错误--缺失make的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。