实战之源码编译MySQL5.7并支持mroonga
时间:2022-04-02 17:43:13.638 +0800 CST 浏览:116

编译mysql5.7

expanded-from-macro-MYSQLVERSIONMAJOR
> https://lequ7.com/guan-yu-shu-ju-ku-mysql-yuan-ma-yue-du-wen-ti-expandedfrommacromysqlversionmajor.html

# https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-boost-5.7.37.tar.gz
mv VERSION MYSQL_VERSION
sed -i '' 's|${CMAKE_SOURCE_DIR}/VERSION|${CMAKE_SOURCE_DIR}/MYSQL_VERSION|g' cmake/mysql_version.cmake
cmake -DCMAKE_INSTALL_PREFIX=/Applications/mysql  -DMYSQL_DATADIR= -DMYSQL_UNIX_ADDR=/application/mysql/tmp/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_BOOST=boost
make -j && make install

groonga

# git clone https://github.com/groonga/groonga.git ## 切换到11.1.3标签
./configure --prefix=/Applications/mysql
make -j && make install

编译 mroonga

# https://codeload.github.com/mroonga/mroonga/tar.gz/refs/tags/v11.13
export PKG_CONFIG_PATH=/Applications/mysql/lib/pkgconfig
./configure \
    --with-mysql-build=/Applications/mysql \
    --with-mysql-config=/Applications/mysql/bin/mysql_config \
    --with-mysql-source=/usr/local/src/mysql-5.7.37 \
    --prefix=/Applications/mysql \
    --with-default-tokenizer=TokenMecab
make -j && make install


如果这篇文章对你有所帮助,可以通过下边的“打赏”功能进行小额的打赏。

本网站部分内容来源于互联网,如有侵犯版权请来信告知,我们将立即处理。


来说两句吧