Skip to content

Installation

Alejandro Bernardin edited this page Jan 22, 2018 · 18 revisions

Installation

To install PISKaS in Ubuntu 16.04 LTS, follow the next steps:

  • Clone the repository
sudo apt-get install git
git clone https://github.com/DLab/PISKaS.git path
  • Install opam and initialize
sudo apt-get install opam ocaml-native-compilers m4 mpi-default-dev
opam init
opam switch 4.02.3
eval `opam config env`

Now you must install mpi from the source ocamlmpi-source and then rewrite in the Makefile:

OCAMLOPT = $(OCAMLBINPATH)ocamlopt.opt -I /usr/local/lib/ocaml/4.02.3/mpi unix.cmxa mpi.cmxa str.cmxa #-p #-g -ccopt -g -ccopt -pg

or copy the mpi folder to ~/.opam/system/lib folder. Notice that compile ocaml mpi will generate a folder with name ocamlmpi, so you should replace in the path ../mpi with ../ocamlmpi.

  • Compile PISKaS
make

This procedure should produce PISKaS binaries.

If you are reinstalling just run:

make clean
make

Now that PISKaS is working you can put it in /usr/bin/ directory, so, as root:

cd /usr/bin/
ln -s path_to_PISKaS PISKaS

If after install PISKaS you have the error

PISKa: error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory

you should create a symbolic link in the /usr/lib folder

ln -s libmpi.so.12.0.2 libmpi.so.1
Clone this wiki locally