0. The environment is
rivsidn@rivsidn:~/apt-get/arpoison$ uname -a
Linux rivsidn 4.4.0-121-generic #145-Ubuntu SMP Fri Apr 13 13:46:32 UTC 2018 i686 i686 i686 GNU/Linux
1. Download arpoison
2. Install libnet (needed to compile arpoison)
sudo apt-get source libnet
cd libnet-1.1.6+dfsg
sudo ./configure
sudo make
sudo make install
3. Compile arpoison
gcc arpoison.c -lnet -L. -static -o arpoison //静态编译
gcc arpoison.c -lnet -o arpoison //动态编译