国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

Linux環境下mysql5.7.13安裝教程

2024-07-24 12:53:55
字體:
來源:轉載
供稿:網友

本文實例為大家分享了Linux mysql5.7.13安裝教程,供大家參考,具體內容如下

1、準備
cmake-3.6.0.tar.gz 
bison-3.0.4.tar.gz 
mysql-5.7.13.tar.gz (http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.13.tar.gz) 

2、安裝cmake 和 bison
首先可以查看下是否安裝了 cmake 

# rpm -qa |grep cmake # tar zxvf cmake-3.6.0.tar.gz# cd cmake-3.6.0# ./bootstrap# make && make install # tar zxvf bison-3.0.4.tar.gz# cd bison-3.0.4# ./configure# make && make install

3、安裝Mysql 

[root@localhost src]# tar -zxvf mysql-5.7.13.tar.gz[root@localhost src]# cd mysql-5.7.13[root@localhost mysql-5.7.13]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock -DDEFAULT_CHARSET=gbk -DDEFAULT_COLLATION=gbk_chinese_ci -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DMYSQL_DATADIR=/data/mysqldb -DMYSQL_TCP_PORT=3306 -DENABLE_DOWNLOADS=1 ...CMake Error at cmake/boost.cmake:81 (MESSAGE): You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=<directory> This CMake script will look for boost in <directory>. If it is not there, it will download and unpack it (in that directory) for you. If you are inside a firewall, you may need to use an http proxy: export http_proxy=http://example.com:80Call Stack (most recent call first): cmake/boost.cmake:238 (COULD_NOT_FIND_BOOST) CMakeLists.txt:451 (INCLUDE)-- Configuring incomplete, errors occurred!

 

注:重新運行配置,需要刪除CMakeCache.txt文件 
解決: 
(1)在預編譯時添加相應的選項:cmake -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost 
(2)或者下載一個boost包,放到/usr/local/boost目錄下,然后在cmake后面加選項-DWITH_BOOST=/usr/local/boost

[root@localhost mysql-5.7.13]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock -DDEFAULT_CHARSET=gbk -DDEFAULT_COLLATION=gbk_chinese_ci -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DMYSQL_DATADIR=/data/mysqldb -DMYSQL_TCP_PORT=3306 -DENABLE_DOWNLOADS=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost .... CMake Error at cmake/readline.cmake:64 (MESSAGE): Curses library not found. Please install appropriate package, remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel. Call Stack (most recent call first): cmake/readline.cmake:107 (FIND_CURSES) cmake/readline.cmake:181 (MYSQL_USE_BUNDLED_EDITLINE) CMakeLists.txt:479 (MYSQL_CHECK_EDITLINE) -- Configuring incomplete, errors occurred! See also "/usr/local/src/mysql-5.7.13/CMakeFiles/CMakeOutput.log". See also "/usr/local/src/mysql-5.7.13/CMakeFiles/CMakeError.log".
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 咸宁市| 宁武县| 昌乐县| 永兴县| 宾川县| 嘉义县| 肇州县| 陈巴尔虎旗| 梧州市| 思南县| 开原市| 白水县| 苏尼特右旗| 米泉市| 通州市| 团风县| 松滋市| 湖口县| 桃江县| 禹城市| 秦安县| 额济纳旗| 招远市| 封开县| 阜阳市| 图们市| 绥芬河市| 宜州市| 南华县| 黔南| 阿城市| 馆陶县| 银川市| 湘西| 铜山县| 福海县| 大城县| 宜兰县| 宁安市| 吉林市| 湘潭市|