EC2 Installation - Superconductor/superconductor GitHub Wiki
EC2 Linux AMI Installation Instructions
Tested on a stock Linux AMI (micro instance.)
- Create a stock Linux AMI
- Install NodeJS. Instructions on this this blog entry:
sudo yum localinstall --nogpgcheck http://nodejs.tchol.org/repocfg/amzn1/nodejs-stable-release.noarch.rpm
sudo yum install nodejs-compat-symlinks npm
- Install packages
yum install ant mercurial pl pl-devel
- Get the superconductor code if you have not already
git clone git://github.com/Superconductor/superconductor.git sc
- If you are on a micro instance, switch to web-service branch to get prepackaged node modules:
git checkout web-service
- Set "sc/compiler/local.properties" to point to the installed swipl (from above). It should be something like
swipl.home=/usr/lib64/swipl-5.10.2/
swipl.runtime=/usr/lib64/swipl-5.10.2/lib/x86_64-linux/
- Make sure JAVA_HOME is pointing to a location with javac. The stock Linux AMI has OpenJDK and defaults to an incomplete Oracle version (no javac). To switch to
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk.x86_64/
- Compile the compiler
cd sc/compiler
ant