MySQL5.7.17原始碼編譯安裝時的注意事項
MySQL5.7.17安裝略不同於MySQL5.6,需要指定boost,否則編譯安裝會報錯
boost下載地址:
下載:
#wget
解壓:
# cd /root
#tar xvzf boost_1_59_0.tar.gz
進入boost_1_59_0目錄:
#cd /root/boost_1_59_0
然後是編譯安裝,直接執行bootstrap.sh就可以:
#sh ./bootstrap.sh
Building Boost.Build engine with toolset gcc... tools/build/v2/engine/bin.linuxx86_64/b2
Detecting Python version... 2.6
Detecting Python root... /usr
Unicode/ICU support for Boost.Regex?... not found.
Generating Boost.Build configuration in project-config.jam...
Bootstrapping is done. To build, run:
./b2
To adjust configuration, edit ‘project-config.jam‘.
Further information:
- Command line help:
./b2 --help
- Getting started guide:
- Boost.Build documentation:
接下來就是編譯,重點關注是否編譯成功:
#./b2
然後就是漫長的等待,直到最後出現:
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
/root/boost_1_59_0
The following directory should be added to linker library paths:
/root/boost_1_59_0/stage/lib
說明編譯成功。
最後執行:
./b2 install --prefix=/usr/local
接下來就可以編譯MySQL5.7了,需要用-DWITH_BOOST=/root/boost_1_59_0指定boost的目錄:
#cmake . -DCMAKE_INSTALL_PREFIX=/opt/mysql -DWITH_DEBUG=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/root/boost_1_59_0
boost下載地址:
下載:
#wget
解壓:
# cd /root
#tar xvzf boost_1_59_0.tar.gz
進入boost_1_59_0目錄:
#cd /root/boost_1_59_0
然後是編譯安裝,直接執行bootstrap.sh就可以:
#sh ./bootstrap.sh
Building Boost.Build engine with toolset gcc... tools/build/v2/engine/bin.linuxx86_64/b2
Detecting Python version... 2.6
Detecting Python root... /usr
Unicode/ICU support for Boost.Regex?... not found.
Generating Boost.Build configuration in project-config.jam...
Bootstrapping is done. To build, run:
./b2
To adjust configuration, edit ‘project-config.jam‘.
Further information:
- Command line help:
./b2 --help
- Getting started guide:
- Boost.Build documentation:
接下來就是編譯,重點關注是否編譯成功:
#./b2
然後就是漫長的等待,直到最後出現:
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
/root/boost_1_59_0
The following directory should be added to linker library paths:
/root/boost_1_59_0/stage/lib
說明編譯成功。
最後執行:
./b2 install --prefix=/usr/local
接下來就可以編譯MySQL5.7了,需要用-DWITH_BOOST=/root/boost_1_59_0指定boost的目錄:
#cmake . -DCMAKE_INSTALL_PREFIX=/opt/mysql -DWITH_DEBUG=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/root/boost_1_59_0
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15498/viewspace-2135773/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Ubuntu 16.04下 Mysql5.7.17原始碼編譯與安裝UbuntuMySql原始碼編譯
- Linux原始碼包安裝過程及注意事項Linux原始碼
- 原始碼編譯安裝的原理原始碼編譯
- 原始碼編譯安裝Redis原始碼編譯Redis
- 【轉】MySQL原始碼編譯安裝MySql原始碼編譯
- linux-原始碼的編譯安裝和解除安裝Linux原始碼編譯
- Micro/Mamba 安裝與注意事項
- PbootCMS怎麼安裝?注意事項boot
- phpstudy 的安裝後需要注意事項PHP
- mongoDB安裝與啟動的注意事項MongoDB
- MySQL5.7.16原始碼編譯安裝MySql原始碼編譯
- 阿里雲mysql原始碼編譯安裝阿里MySql原始碼編譯
- nginx原始碼編譯安裝(詳解)Nginx原始碼編譯
- CentOS 7.4 環境下原始碼編譯(多例項)安裝 Mysql 5.7.26CentOS原始碼編譯MySql
- SVN安裝配置及安全注意事項
- hadoop 3.x安裝注意事項Hadoop
- Greenplum_原始碼編譯安裝和RPM包安裝原始碼編譯
- PureComponent 使用注意事項以及原始碼解析原始碼
- Linux環境PostGIS原始碼編譯安裝Linux原始碼編譯
- 04 原始碼編譯安裝與介紹原始碼編譯
- 膜結構車棚安裝時的注意事項你清楚嗎JOQ
- 安裝sybase12.5 for linux注意事項(zt)Linux
- mysql 5.7.14 免安裝版注意事項(精)MySql
- PostgreSQL原始碼學習 win10原始碼編譯安裝SQL原始碼Win10編譯
- JavaScript的程式碼編寫注意事項,建議收藏!JavaScript
- LINUX下編譯原始碼時所需提前安裝的常用依賴包列表Linux編譯原始碼
- Z-Blog的安裝與升級注意事項
- 安裝 Nuxt.js 的步驟和注意事項UXJS
- Ubuntu 16.04原始碼編譯安裝Apache 2.4.25教程Ubuntu原始碼編譯Apache
- Centos7下原始碼編譯安裝apacheCentOS原始碼編譯Apache
- 基於Linux的MySQL5.7原始碼編譯安裝LinuxMySql原始碼編譯
- 教程:MySQL 8安裝與配置及注意事項MySql
- 解壓縮版mysql安裝及注意事項MySql
- 安裝並使用 Ubuntu Server 的一些注意事項UbuntuServer
- 刷題時需要的注意事項
- 畫PCB板時的注意事項
- Mysql5.6 for Centos6.5原始碼編譯安裝MySqlCentOS原始碼編譯
- [環境搭建] 透過原始碼編譯安裝 Redis原始碼編譯Redis
- Nginx1.19 php8.0 原始碼編譯安裝NginxPHP原始碼編譯