**以前のリビジョンの文書です**
Debian
Debianに関する話題。
DebianでIPv6
DebianでIPv6を使う時の話。
- module
- 確認<code>lsmod | grep ipv6</code>
- なければ導入<code>modprobe ipv6</code>
- /etc/network/interfaces
- Staticにアドレスを設定する場合は以下。addressとnetmaskは必須項目。<code> iface eth0 inet6 static address 2001:db8:1234::5:6 netmask 64</code>
何故かUbuntuと違って、/etc/init.d/networking restart してもアドレスが再割り当てされない。- ifup eth0すればいい。スクリプトはちゃんと読んでない。
MySQL
Debianを題材にMySQLについて触れる。Debian は5.0.5または6がベース。
srcからインストール
環境 : MySQL5.5.5-m3 + Debian5.0.5 64bit
- ソースコードのダウンロード。 * http://dev.mysql.com/downloads/mysql/5.5.html#downloads * Development Releases → Source CodeをSelect。 * Generic Linux (Architecture Independent), Compressed TAR Archiveを入手。
- ビルドに必要なので先にインストール * <code>apt-get install build-essential apt-get install libncurses5-dev apt-get install libncursesw5-dev</code>
- 解凍 * <code># tar zxvf mysql-5.5.5-m3.tar.gz</code>
- ./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>
- ./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> =====メモ===== * NFS Clientが最初から入ってない。 * apt-get install nfs-common * NFS Serverも最初から入ってない。 * apt-get install nfs-kernel-server * バージョン確認 * cat /etc/lsb-release * MySQL 5.5.5-m3をinnodbで使うための参考リンク。 * http://greenonions.blog5.fc2.com/blog-entry-35.html * http://blog.livedoor.jp/kronekodow/archives/65178468.html
* 5→6に上げてみた。 * 同じ内容でMySQLが動いてる5.05が6.01になりました。特に今のところ支障なし。 * http://loofah.jpn.org/BLOG/archives/157