首页 > 数据库 > MySQL > 正文

MySQL5.7.17源码编译安装时的注意点

2022-07-31 18:43:57
字体:
来源:转载
供稿:网友
      解压:
      # 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
 
接下来就是编译,重点关注是否编译成功:
#./b2
 
说明编译成功。
 
 
最后执行:
./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

(编辑:错新网)

上一篇:MySQL内的derived table

下一篇:返回列表

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表