Simple install bash script for newLISP on Amazon EC2

Q&A's, tips, howto's

Simple install bash script for newLISP on Amazon EC2

Postby hilti » Sat Jul 28, 2012 8:57 am

Hi Guys!

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
--()o Dragonfly web framework for newLISP
http://dragonfly.apptruck.de
hilti
 
Posts: 140
Joined: Sun Apr 19, 2009 10:09 pm
Location: Hannover, Germany

Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 1 guest

cron