1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

mariadb 5.5.x をビルドするときの注意

Last updated at Posted at 2019-11-18

src.rpmの取得

ビルド

  • rootアカウントでビルドしようとするとエラーになるため、以下回避策
mariadb.spec
  # Regression tests take a long time, you can skip 'em with this
-  %{!?runselftest:%global runselftest 1}
+  %{!?runselftest:%global runselftest 0}
rpmbuild -bb mariadb.spec

CentOS8 で CentOS7のmariadbをビルドする場合

依存パッケージの
policycoreutils-python
policycoreutils-python-utilsに名前変更されているため、そちらをインストール。

mariadb.spec
- BuildRequires: checkpolicy policycoreutils-python
+ BuildRequires: checkpolicy policycoreutils-python-utils
rpmbuild -bb mariadb.spec
  • GCC 4.4.7 ではビルドできない。8.2.1を使う、と、cmakeのエラーが出て無理だった。
  • sys/event.h – not found – Chris on MySQLによると、 libevent-2.0.21-stable.tar.gz を使うと良い様子(試していない)
  • と思ったら、libevent-devellibev-libevent-develを入れれば良い気もする。

スクリーンショット_2019-11-19_07-56-56.png

CentOS8 で mariadb 5.5.66 をビルドする

cd /usr/local/src/
tar xzf mariadb-5.5.66.tar.gz
cd /usr/local/src/mariadb-5.5.66

yum install -y gcc gcc-c++
yum install -y cmake

cmake . -DCMAKE_INSTALL_PREFIX=/opt/mariadb-5.5
make -s 1>/dev/null
make install
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?