这是个人总结和编辑的一个caucho resin3.1.x的编译安装shell脚本
RESIN_VER=3.1.15
wget -c --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u92-b14/jdk-8u92-linux-x64.tar.gz
wget -c http://www.caucho.com/download/resin-${RESIN_VER}.tar.gz
wget -c http://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz
tar xf jdk-8u92-linux-x64.tar.gz -C /usr/local
if ! grep -q JAVA_HOME /etc/profile; then
echo 'export JAVA_HOME=/usr/local/jdk1.8.0_92' >> /etc/profile
echo 'export PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile
echo 'export CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar' >> /etc/profile
echo 'export LD_LIBRARY_PATH=:$JAVA_HOME/lib' >> /etc/profile
fi
source /etc/profile
tar -xf automake-1.15.tar.gz
tar xf resin-${RESIN_VER}.tar.gz
\cp automake-1.15/lib/missing resin-${RESIN_VER}/automake/missing
sed -i '1299s/int/long/' resin-${RESIN_VER}/modules/c/src/common/stream.c
cd resin-${RESIN_VER}
./configure --prefix=/usr/local/resin --enable-64bit
./configure --prefix=/usr/local/resin --enable-64bit
make
make install