LibBi

From HPC

(Difference between revisions)
Jump to: navigation, search
(LibBi installation)
Line 1: Line 1:
-
To install LibBi, run the following commands (e.g., on the login node).
+
To install LibBi, run the following commands (e.g., on the login node):
  wget -O- http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib
  wget -O- http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib
Line 9: Line 9:
  git clone https://github.com/lawmurray/LibBi.git
  git clone https://github.com/lawmurray/LibBi.git
  cpanm ./LibBi
  cpanm ./LibBi
 +
 +
You can test your installation using the following qsub script (putting in your email address in the second line):
 +
 +
#!/bin/bash
 +
#$ -M email@lshtm.ac.uk -m be
 +
#$ -N libbi_test
 +
#$ -q short.q
 +
#$ -l mem_free=4G,h_vmem=4.2G
 +
#$ -V -cwd
 +
 +
libbi sample @~/LibBi/test.conf
 +
 +
If you save this in a file called, for example, ''libbi_test.sh'', and run
 +
 +
qsub libbi_test.sh
 +
 +
You should get an email that the test has succeeded.

Revision as of 10:36, 9 July 2019

To install LibBi, run the following commands (e.g., on the login node):

wget -O- http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib
eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`
echo 'eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`' >> ~/.bash_profile
echo 'export MANPATH=$HOME/perl5/man:$MANPATH' >> ~/.bash_profile
source ~/.bash_profile

git clone https://github.com/lawmurray/LibBi.git
cpanm ./LibBi

You can test your installation using the following qsub script (putting in your email address in the second line):

#!/bin/bash
#$ -M email@lshtm.ac.uk -m be
#$ -N libbi_test
#$ -q short.q
#$ -l mem_free=4G,h_vmem=4.2G
#$ -V -cwd

libbi sample @~/LibBi/test.conf

If you save this in a file called, for example, libbi_test.sh, and run

qsub libbi_test.sh

You should get an email that the test has succeeded.

Personal tools