MySQ

創(chuàng)新互聯(lián)建站專注于企業(yè)
成都全網(wǎng)營銷、網(wǎng)站重做改版、沁源網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、
H5響應(yīng)式網(wǎng)站、
成都商城網(wǎng)站開發(fā)、集團(tuán)公司官網(wǎng)建設(shè)、
成都外貿(mào)網(wǎng)站建設(shè)公司、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為沁源等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。L5.7.17安裝略不同于MySQL5.6,需要指定boost,否則編譯安裝會(huì)報(bào)錯(cuò)
boost下載地址:
下載:
#wget /tupian/20230522/ />
解壓:
# cd /root
#tar xvzf boost_1_59_0.tar.gz
進(jìn)入boost_1_59_0目錄:
#cd /root/boost_1_59_0
然后是編譯安裝,直接執(zhí)行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:
http://www.boost.org/more/getting_started/unix-variants.html
- Boost.Build documentation:
http://www.boost.org/boost-build2/doc/html/index.html
接下來就是編譯,重點(diǎn)關(guān)注是否編譯成功:
#./b2
然后就是漫長的等待,直到最后出現(xiàn):
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
說明編譯成功。
最后執(zhí)行:
./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
當(dāng)前文章:MySQL5.7.17源碼編譯安裝時(shí)的注意事項(xiàng)-創(chuàng)新互聯(lián)
文章來源:http://www.rwnh.cn/article24/dosice.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站導(dǎo)航、網(wǎng)站設(shè)計(jì)、企業(yè)建站、建站公司、外貿(mào)網(wǎng)站建設(shè)、動(dòng)態(tài)網(wǎng)站
廣告
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源:
創(chuàng)新互聯(lián)