Vine4.0 β4にmunin(続き)

前回はこちら

おさらい

元ネタ1
http://gigazine.net/index.php?/news/comments/20060904_munin/

元ネタ2
http://tsuttaya.sytes.net/bbs/read.php?FID=899

を参考にmuninをvinelinux 4.0 β4に導入しようとしたところ自分の環境では色々足らない所があったのでメモしながらやっていこうというものでした。そうそう、前回書き忘れましたがvinelinuxはフルインストールしていません。なのでこんな面倒なことになったのかもしれません・・・・。

ということで、では続きを。

RRDtoolを入れてみる

元ネタ2にある手順どおりやっていっていざリビルド!

openssl-devel は rrdtool-1.2.15-3.i386 に必要とされています
libpng-devel は rrdtool-1.2.15-3.i386 に必要とされています
zlib-devel は rrdtool-1.2.15-3.i386 に必要とされています
libart_lgpl-devel >= 2.0 は rrdtool-1.2.15-3.i386 に必要とされています
freetype-devel は rrdtool-1.2.15-3.i386 に必要とされています
python-devel >= 2.3 は rrdtool-1.2.15-3.i386 に必要とされています

orz
ああそうですか。。。まとめてインストールだこんにゃろう

#apt-get install openssl-devel libpng-devel zlib-devel libart_lgpl-devel freetype-devel python-devel

パッケージリストを読みこんでいます... 完了
依存情報ツリーを作成しています... 完了
以下のパッケージが新たにインストールされます:
freetype-devel libart_lgpl-devel libpng-devel openssl-devel python-devel
zlib-devel
アップグレード: 0 個, 新規インストール: 6 個, 削除: 0 個, 保留: 0 個
4053kB のアーカイブを取得する必要があります。
展開後に 12.2MB のディスク容量が追加消費されます。
取得:1 http://updates.vinelinux.org 4.0/i386/main freetype-devel 1.3.1-5vl5 [117kB]
取得:2 http://updates.vinelinux.org 4.0/i386/main libart_lgpl-devel 2.3.17-0vl1 [65.8kB]
取得:3 http://updates.vinelinux.org 4.0/i386/main zlib-devel 1.2.3-0vl5 [95.3kB]取得:4 http://updates.vinelinux.org 4.0/i386/main libpng-devel 2:1.2.12-0vl1 [177kB]
取得:5 http://updates.vinelinux.org 4.0/i386/main openssl-devel 0.9.7l-0vl1 [1702kB]
取得:6 http://updates.vinelinux.org 4.0/i386/main python-devel 2.4.4-0vl1 [1895kB]
4053kB を 11s 秒で取得しました (342kB/s)
変更を適用しています...
準備中... ########################################### [100%]
1:freetype-devel ########################################### [ 17%]
2:libart_lgpl-devel ########################################### [ 33%]
3:zlib-devel ########################################### [ 50%]
4:libpng-devel ########################################### [ 67%]
5:openssl-devel ########################################### [ 83%]
6:python-devel ########################################### [100%]
完了


では改めて

#rpmbuild -ba --define='perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)' --define='python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")' rrdtool.spec

PM ビルドエラー:
/var/tmp/rpm-tmp.70770 の不正な終了ステータス (%build)

今度は何だ!?


ログの上の方を見るとこんな文字が

I could not find a working copy of freetype2. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libfreetype and its header files. If
you have not installed freetype2, you can get it either from its original home on

http://prdownloads.sourceforge.net/freetype/

You can find also find an archive copy on

http://oss.oetiker.ch/rrdtool/pub/libs

The last tested version of freetype2 is 2.1.10.

LIBS=-lpng -lz -lart_lgpl_2 -lm
LDFLAGS=
CPPFLAGS= -I/usr/include/libart-2.0 -I/usr/include/freetype2

freetype2が無いからだめらしい。
では試しに、、、

#apt-get install freetype2 freetype2-devel

パッケージリストを読みこんでいます... 完了
依存情報ツリーを作成しています... 完了
* freetype2 は既に最新バージョンがインストールされています。
以下のパッケージが新たにインストールされます:
freetype2-devel
アップグレード: 0 個, 新規インストール: 1 個, 削除: 0 個, 保留: 0 個
451kB のアーカイブを取得する必要があります。
展開後に 1883kB のディスク容量が追加消費されます。
取得:1 http://updates.vinelinux.org 4.0/i386/main freetype2-devel 2.1.10-0vl8 [451kB]
451kB を 1s 秒で取得しました (239kB/s)
変更を適用しています...
準備中... ########################################### [100%]
1:freetype2-devel ########################################### [100%]
完了

あ、freetype2はあったのね(よくわかっていない証左かw

もう一回チャレンジ!
・・・・

RPM ビルドエラー:
ファイルが見つかりません (by glob): /var/tmp/rrdtool-1.2.15-3-root-root/usr/lib/rrdtool/*

だめかorz


ちょっと調べるのに時間がかかりそうだな。。。
ということで今日はここまで!