-
Notifications
You must be signed in to change notification settings - Fork 37
EC2 Installation
Tested on a stock Linux AMI (micro instance.)
-
Create a stock Linux AMI
-
Install NodeJS
-
Install packages yum install ant mercurial
-
Install SWIPL (and complain to the package managers about broken SWIPL-JPL linkage)
Warning: this takes awhile on a micro instance.
wget http://www.swi-prolog.org/download/stable/src/pl-5.10.1.tar.gz tar -xvvf pl-5.10.1.tar.gz cd pl-5.10.1 cp build.templ build
Edit near the top of the "build": PREFIX=/usr SUDO="sudo" export DISABLE_PKGS="ssl odbc xpce zlib" EXTRACFG+=" --enable-shared"
Build: chmod +x build ./build
-
Get the 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
TODO
-
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