netatalk のインストール
これは sourceforge から最新のバージョンを取ってきて展開。
[paraches@centos netatalk]$ ls netatalk-2.1.3.tar.bz2 [paraches@centos netatalk]$ tar jxvf netatalk-2.1.3.tar.bz2 [paraches@centos netatalk]$ ls netatalk-2.1.3 netatalk-2.1.3.tar.bz2 [paraches@centos netatalk]$ cd netatalk-2.1.3 [paraches@centos netatalk-2.1.3]$
configure してみる。RedHat 系では --enable-redhat とする。
[paraches@centos netatalk-2.1.3]$ ./configure --enable-redhat <省略> Make sure you have the required Berkeley DB libraries AND headers installed. You can download the latest version from http://www.sleepycat.com. If you have installed BDB in a non standard location use the --with-bdb=/path/to/bdb configure option and make sure your linker is configured to check for libraries there. configure: error: Berkeley DB library required but not found!
Berkeley DB が見つからないって…。
場所を指定してもう一回。
[paraches@centos netatalk-2.1.3]$ ./configure --enable-redhat --with-bdb=/usr/local/BerkeleyDB.5.1 <省略> Using libraries: LIBS = -L$(top_srcdir)/libatalk CFLAGS = -I$(top_srcdir)/include -D_U_="__attribute__((unused))" -g -O2 -I$(top_srcdir)/sys SSL: LIBS = -L/usr/lib64 -lcrypto CFLAGS = -I/usr/include/openssl LIBGCRYPT: LIBS = -lgcrypt -ldl -lgpg-error CFLAGS = BDB: LIBS = -L/usr/local/BerkeleyDB.5.1/lib -ldb-5.1 CFLAGS = -I/usr/local/BerkeleyDB.5.1/include/ Configure summary: Install style: redhat AFP: AFP 3.x calls activated: yes Large file support (>2GB) for AFP3: yes Extended Attributes: ad | sys DDP enabled: yes CNID: backends: dbd last tdb UAMS: DHX ( SHADOW) DHX2 ( SHADOW) RANDNUM ( SHADOW) passwd ( SHADOW) guest Options: CUPS support: no SLP support: no tcp wrapper support: yes quota support: yes admin group support: yes valid shell check: yes cracklib support: no dropbox kludge: no force volume uid/gid: no Apple 2 boot support: no ACL support: no [paraches@centos netatalk-2.1.3]$
こんな感じで OK。
次に make & make install。
[paraches@centos netatalk-2.1.3]$ make [paraches@centos netatalk-2.1.3]$ sudo make install
問題なく終了。