Daily Archive for March 11th, 2008

Aipo4 on Debian etch

Aipo4というオープンソースのグループウェアがなかなかいかしてます。 Linux版のインストーラは、RedHat系のものしか用意されていないんですが、Debian etchなマシンにインストールできたのでやりかたを書いておきます。

1. パッチあて

aipo4-debian-patch を展開して出てきた installer-debian.patch を、aipo/bin/fc にて

# patch -p0 < installer.sh-debian.patch

のようにしてあてます。下に貼りつけときますが、やってることは単に必要なrpmがインストールされてるかどうかのチェックをコメントアウトしてるだけ、というもの。

2. 必要なライブラリのインストール

libreadline-dev, zlib1g-dev が必要ぽいので、apt-get install しておきます。

3. install

# cd aipo/bin/fc && sh installer.sh

でOK。


と書いてきましたが、まとめるほどのことではないですね。コメントアウトしておわり。簡単ですね。

パッチ

--- installer.sh.orig	2008-03-10 14:45:28.000000000 +0900
+++ installer.sh	2008-03-10 14:46:36.000000000 +0900
@@ -183,31 +183,31 @@
 
 rpm -qa --qf "%{GROUP},%{NAME}\n" > $path/bin/rpmlist
 
-tmp_str=`cat $path/bin/rpmlist | grep readline-devel`
-
-if [ "$tmp_str" != "" ]; then
-	echo "checking readline... ok"
-else
-	echo "checking readline... error"
-	check_str="ERROR"
-fi
-
-tmp_str=`cat $path/bin/rpmlist | grep zlib-devel`
-if [ "$tmp_str" != "" ]; then
-        echo "checking zlib... ok"
-else
-        echo "checking zlib... error"
-        check_str="ERROR"
-fi
-
-
-if [ "$check_str" != "AIPO_INSTALL_OK" ]; then
-	if [ "$1" != "check_pass" ]; then
-		echo "Aipo$aipo_versionのインストールに失敗しました"
-		userdel -r ${postgres_user}
-		exit 0
-	fi
-fi
+#tmp_str=`cat $path/bin/rpmlist | grep readline-devel`
+#
+#if [ "$tmp_str" != "" ]; then
+#	echo "checking readline... ok"
+#else
+#	echo "checking readline... error"
+#	check_str="ERROR"
+#fi
+
+#tmp_str=`cat $path/bin/rpmlist | grep zlib-devel`
+#if [ "$tmp_str" != "" ]; then
+##        echo "checking zlib... ok"
+#else
+#        echo "checking zlib... error"
+#        check_str="ERROR"
+#fi
+
+
+#if [ "$check_str" != "AIPO_INSTALL_OK" ]; then
+#	if [ "$1" != "check_pass" ]; then
+#		echo "Aipo$aipo_versionのインストールに失敗しました"
+#		userdel -r ${postgres_user}
+#		exit 0
+#	fi
+#fi