1. Brett Giles
  2. lqpl

Wiki

Clone wiki

lqpl / Fedora17

Assumptions

  • You have the source installed in lqpl
  • You can sudo.
  • You are willing to install via rvm, because the jruby version with F17 does not work.

rvm based install

sudo yum 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 yum install ant
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 yum - at which point we are done with yum. 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-1.6.7.2  
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-1.6.7.2'.

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.

rake build:all

This will build the servers and jar file and place them in the out subdirectory. It will take a while depending on your machine.

Following two libraries are required to available in the system in order to run the program.

libffi - A portable foreign function interface library
gmp : A GNU arbitrary precision library

Install the libraries using the package manager.

yum install libffi-*
yum install gmp-*

If you come across the linker looking for specific version of the above libraries similar to below just link the existing library to consider as the required version.

error while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory
ln -s /usr/lib/libgmp.so.3  /usr/lib/libgmp.so.10
error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
ln -s /usr/lib/libffi.so.5   /usr/lib/libffi.so.6
rake run:lqpl

Execute the code! Remember example programs are in the lqplcode directory.

Updated