- You have the source installed in lqpl
- You can sudo.
- You are willing to install via rvm.
rvm based install
sudo apt-get install haskell-platform cabal update cabal install hspec
These three commands install the Haskell platform and install 'hspec' as a user based install. This allows compilation of the Compiler and Emulator and associated tests.
sudo apt-get install ant curl g++ openjdk-6-jdk curl -L https://get.rvm.io | bash -s stable source ~/.rvm/scripts/rvm
The next three lines install the java development environment along with ant via apt-get - at which point we are done with apt-get. You now install rvm and set it active in your terminal window. More information on rvm may be found at http://beginrescueend.com.
rvm install jruby-126.96.36.199 cat <<EOF > ~/.jrubyrc compat.version=1.9 EOF
These lines now use rvm to install jruby. The 'cat' command creates a hidden '.jrubyrc' file in your home directory that will ensure that jruby is run in 1.9 compatibility mode. Note that jruby 1.7 will be in 1.9 compatibility mode by default.
At this point, jruby will be your 'default ruby' unless you have installed other ruby versions by rvm. To check, type 'rvm list' and jruby should be marked as your default. If not, type 'rvm --default use jruby-188.8.131.52'.
gem install bundler cd lqpl/GUI bundle install cd ..
The above commands install the ruby bundler utility and then use bundler to ensure the needed development gems are installed.
This will build the servers and jar file and place them in the out subdirectory. It will take a while depending on your machine.
Execute the code! Remember example programs are in the lqplcode directory.