I'm providing my script to install newLISP on an Amazon EC2 instance. It installs all depending libraries and automatically installs newLISP. Tested on EC2 micro instance with Ubuntu AMI.
Cheers
Hilti
Code: Select all
#!/bin/bash
# Simple bash script for installing newLISP on Amazon EC2, Ubuntu 12.04 AMI
# Author: Marc Hildmann, July 2012
#
read -p "Install necessary default building libraries (y/n)?" CONT
if [ "$CONT" == "y" ]; then
sudo apt-get install libffi-dev build-essential libreadline-dev
else
echo "No libraries were installed.";
fi
read -p "Now changing to /tmp and download newLISP (y/n)?" CONT
if [ "$CONT" == "y" ]; then
cd /tmp
wget http://www.newlisp.org/downloads/newlisp-10.4.3.tgz
tar xvfz newlisp-10.4.3.tgz
cd newlisp-10.4.3
else
echo "Nothing happened.";
fi
read -p "Build and install newLISP (y/n)?" CONT
if [ "$CONT" == "y" ]; then
make
sudo make install
echo "### Installation finished ###"
else
echo "Nothing happened.";
fi