**以前のリビジョンの文書です**

MySQL

Debianを題材にMySQLについて触れる。Debian は5.0.5または6がベース。


公式リンク

メモ

srcからインストール

環境 : MySQL5.5.5-m3 + Debian5.0.5 64bit
  1. ソースコードのダウンロード。 * http://dev.mysql.com/downloads/mysql/5.5.html#downloads * Development Releases → Source CodeをSelect。 * Generic Linux (Architecture Independent), Compressed TAR Archiveを入手。
  2. ビルドに必要なので先にインストール * <code>apt-get install build-essential apt-get install libncurses5-dev apt-get install libncursesw5-dev</code>
  3. 解凍 * <code># tar zxvf mysql-5.5.5-m3.tar.gz</code>
  4. ./configure * <code>cd mysql-5.5.5-m3 ./configure –with-plugins=innobase</code>

    * libncurses5-devまたはlibncursesw5-devが足りてないと多分下記エラー。 * <code>checking for termcap functions library… configure: error: No curses/termcap library found</code>

  5. ./configure後、Makefileを書き直す。 * 参考 : http://bugs.mysql.com/bug.php?id=55350 * 参考から抽出。<code> Suggested fix: Temp fix was remove @ndbclusterincludes@ from ./extra/Makefile and ./sql/MakeFile plus remove @NDBSCILIBS@ from ./sql/MakeFile</code> * sedで書くと、<code> sed -i -e 's/@ndbclusterincludes@g' sql/Makefile sed -i -e 's/@ndbclusterincludes@g' extra/Makefile sed -i -e 's/@NDBSCILIBS@g' sql/Makefile</code> 6. make。 *<code>make && make install</code>
os/debian/mysql/start.1630754198.txt.gz · 最終更新: 2021/09/04 20:16 by yuki
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0