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原始碼
- jdk安裝注意事項JDK
- samba安裝 注意事項Samba
- 原始碼編譯安裝的原理原始碼編譯
- 原始碼編譯安裝Redis原始碼編譯Redis
- LAMP原始碼編譯安裝LAMP原始碼編譯
- 原始碼加密軟體採購時的注意事項!原始碼加密
- 注意事項:golang 編譯的 glibc 版本Golang編譯
- TokuDB的安裝及注意事項
- MySQL 安裝後的注意事項MySql
- 安裝__DB、ASM注意事項ASM
- DUBBO安裝配置注意事項
- zabbix agent原始碼編譯安裝原始碼編譯
- 原始碼編譯安裝MySQL 5.7.9原始碼編譯MySql
- 用xmanager 客戶端安裝oracle時注意事項客戶端Oracle
- 安裝icinga注意事項
- MYSQL 安裝維護注意事項MySql
- oracle rac安裝配置注意事項Oracle
- GNU make安裝注意事項(轉)
- nginx原始碼編譯安裝(詳解)Nginx原始碼編譯
- php-7.1.0原始碼編譯安裝PHP原始碼編譯
- 詳解LAMP原始碼編譯安裝LAMP原始碼編譯
- LAMP原始碼編譯安裝配置+wordpressLAMP原始碼編譯
- lnmp環境安裝-原始碼編譯LNMP原始碼編譯
- MySQL 5.6原始碼編譯安裝流程MySql原始碼編譯
- linux中原始碼編譯安裝Linux原始碼編譯
- linux-原始碼的編譯安裝和解除安裝Linux原始碼編譯
- mongoDB安裝與啟動的注意事項MongoDB
- 安裝linux中的注意事項(轉)Linux
- OS__安裝、引數、注意事項、驗證事項
- Keil5編譯STM32注意事項編譯
- SVN安裝配置及安全注意事項
- 安裝mysql-python注意事項MySqlPython
- weblogic安裝注意事項_linuxWebLinux
- 10G RAC 安裝 注意事項
- sqlserver 2005 安裝注意事項SQLServer
- 阿里雲mysql原始碼編譯安裝阿里MySql原始碼編譯