tsunami-udp

ubuntuでtsunami-udpを利用する際に、
コンパイルに少し手間取ったのでメモです。

ubuntu $ cat /etc/debian_version 
jessie/sid


### 環境設定
```bash:sh
sudo apt-get -y install make gcc autoconf
```

### ダウンロード
```bash:sh
wget http://downloads.sourceforge.net/project/tsunami-udp/tsunami-udp/tsunami-v1.1-cvsbuild42/tsunami-v1.1-cvsbuild42.tar.gz
```

### コンパイル
```bash:sh
tar zxvf tsunami-v1.1-cvsbuild42.tar.gz
cd tsunami-udp-v11-b42
aclocal
autoconf
automake --add-missing
./configure
make

# server
./server/tsunamid file1 file2 ...

# client
./client/tsunami
tsunami> connection server_name
tsunami> get *

# インストール
# sudo make install

```

---

### ubuntuだと...
以下のエラーが出ることがあります。

```bash:sh
$ make
sh ./recompile.sh
Running aclocal...
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
Running automake...
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:31: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.in:31: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.in:51: error: required file './compile' not found
configure.in:51:   'automake --add-missing' can install 'compile'
client/Makefile.am:13: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
common/Makefile.am:13: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
rtclient/Makefile.am:13: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
rtserver/Makefile.am:13: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
server/Makefile.am:13: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
util/Makefile.am:13: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
Running autoconf...
Configuring Tsunami version 9.2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/tmp/tsunami-udp-v11-b42/missing: Unknown `--is-lightweight' option
Try `/tmp/tsunami-udp-v11-b42/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for main in -lpthread... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'
make[1]: Entering directory `/tmp/tsunami-udp-v11-b42'
make[1]: *** No rule to make target `clean'.  Stop.
make[1]: Leaving directory `/tmp/tsunami-udp-v11-b42'
make[1]: Entering directory `/tmp/tsunami-udp-v11-b42'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory `/tmp/tsunami-udp-v11-b42'

You can do a 'sudo make install' to install binaries into /usr/bin
```