2017年1月7日 星期六

[研究] mariadb-5.5.54.tar.gz 建立 rpm (CentOS 7.3)

[研究] mariadb-5.5.54.tar.gz 建立 rpm (CentOS 7.3)

2017-01-06

MariaDB Documentation
https://mariadb.com/kb/en/mariadb/documentation/

Build Environment Setup for Linux
https://mariadb.com/kb/en/mariadb/Build_Environment_Setup_for_Linux/

Generic Build Instructions
https://mariadb.com/kb/en/mariadb/generic-build-instructions/

Building MariaDB on CentOS => .rpm build steps
https://mariadb.com/kb/en/mariadb/source-building-mariadb-on-centos/

Starting and Stopping MariaDB
https://mariadb.com/kb/en/mariadb/starting-and-stopping-mariadb/

安裝 (黃色部分)


su   root
yum  -y   install  git   unzip  tar  gcc  gcc-c++  make  bison  ncurses  zlib-devel  cmake  gnutls  openssl  jemalloc  libaio  libaio-devel  ncurses
#No package jemalloc available.

cd   /usr/local/src

wget   https://downloads.mariadb.org/interstitial/mariadb-5.5.54/source/mariadb-5.5.54.tar.gz/from/http%3A//ftp.ubuntu-tw.org/mirror/mariadb/  -O   mariadb-5.5.54.tar.gz

tar   zxvf   mariadb-5.5.54.tar.gz
cd   mariadb-5.5.54

#cmake .  -DBUILD_CONFIG=mysql_release -DRPM=centos7

#l error: libaio.h: No such file or directory
# 確認 libaio 和 libaio-devel 已經安裝,但 libaop.h 根本找不到
# 沒有 cmake  clean 存在,直接砍,如果出現某種失敗,不砍掉重做,該錯誤會一直出現
#cd .. 
#rm  -fr   mariadb-5.5.54
#tar   zxvf   mariadb-5.5.54.tar.gz
#cd   mariadb-5.5.54

#cmake .  -DBUILD_CONFIG=mysql_release -DRPM=centos7  -DIGNORE_AIO_CHECK
#Parse error in command line argument: -DIGNORE_AIO_CHECK
#Should be: VAR:type=value
#CMake Error: No cmake script provided.
#CMake Error: Problem processing arguments. Aborting.
#失敗,砍
#cd .. 
#rm  -fr   mariadb-5.5.54
#tar   zxvf   mariadb-5.5.54.tar.gz
#cd   mariadb-5.5.54

#cmake . -DRPM=centos7
#CPack Error: Error when generating package: MySQL
#失敗,砍
#cd .. 
#rm  -fr   mariadb-5.5.54
#tar   zxvf   mariadb-5.5.54.tar.gz
#cd   mariadb-5.5.54

#cmake .  -DBUILD_CONFIG=mysql_release
#CMake Error at cmake/jemalloc.cmake:31 (MESSAGE):
#  jemalloc_pic is not found
#失敗,砍
#cd .. 
#rm  -fr   mariadb-5.5.54
#tar   zxvf   mariadb-5.5.54.tar.gz
#cd   mariadb-5.5.54

cmake  .

make package
#CPack: - package: /usr/local/src/mariadb-5.5.54/mariadb-5.5.54-linux-x86_64.tar.gz generated.
#成功



(完)

沒有留言:

張貼留言