En naviguant sur notre site vous acceptez l'installation et l'utilisation des cookies sur votre ordinateur. En savoir +

Menu Logo Principal logo RECORD

Plateforme RECORD

Installation de la suite logicielle RECORD pour Ubuntu 12.04, via un script de commandes

Suivre le script ci-dessous pour installer pas à pas l'ensemble des outils logiciels et la librairie de modèles fournie en standard par RECORD

############ download archive file from http://www.vle-project.org/wiki/VLE-1.1 ############
wget http://sourceforge.net/projects/vle/files/1.1/1.1.2/vle-1.1.2.tar.gz
wget http://sourceforge.net/projects/vle/files/1.1/1.1.2/rvle_1.1.2-0.tar.gz
wget http://sourceforge.net/projects/vle/files/1.1/1.1.2/packages-1.1.2.tar.gz
############ install the dependencies ############
sudo apt-get install cmake g++ libgtkmm-2.4-dev libglademm-2.4-dev libboost1.48-dev  \
     libboost-serialization1.48-dev libboost-date-time1.48-dev libboost-filesystem1.48-dev \
     libboost-test1.48-dev libboost-regex1.48-dev libboost-program-options1.48-dev         \
     libboost-thread1.48-dev libboost-chrono1.48-dev libattr1-dev liblzma-dev libacl1-dev  \
     libarchive-dev libcurl4-gnutls-dev nettle-dev libssl-dev openssl
############ build vle ############
tar zxf vle-1.1.2.tar.gz
cd vle-1.1.2
mkdir build
cd build
cmake -DWITH_GTKSOURCEVIEW=OFF -DWITH_GTK=ON -DWITH_CAIRO=ON -DWITH_MPI=OFF \
    -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo              \
    -DCMAKE_INSTALL_PREFIX=/usr ..
make -j 8
cpack -G DEB
sudo dpkg -i vle-1.1.2-Linux-i686.deb
vle --restart
perl -pi -e 's/--target all/--target all -- -j8/g' ~/.vle/vle.conf
cd ../..
############ Add gvle unity dash launcher (with icon) ############
echo -e "[Desktop Entry]\nType=Application\nTerminal=false\nName=gvle\nIcon=/usr/share/vle-1.1/pixmaps/icon64x64.png\nExec=/usr/bin/gvle" >& gvle.desktop
sudo mv gvle.desktop /usr/share/applications/
############ install rvle ############
tar xvfz rvle_1.1.2-0.tar.gz
cd rvle
./autogen.sh
cd ..
sudo R CMD INSTALL rvle
############ install vle.extension packages ############
tar zxf packages-1.1.2.tar.gz
cd packages-1.1.2
vle -P vle.output configure build test
vle -P vle.extension.decision configure build test
vle -P vle.extension.fsa configure build test
vle -P vle.extension.difference-equation configure build test
vle -P vle.extension.petrinet configure build test
vle -P vle.extension.celldevs configure build test
vle -P vle.extension.differential-equation configure build test
vle -P vle.extension.cellqss configure build test
vle -P vle.extension.dsdevs configure build test
vle -P ext.muparser configure build test
vle -P vle.forrester configure build test
vle -P vle.examples configure build test
cd ..
############ install recordb packages ############
git clone http://mulcyber.toulouse.inra.fr/anonscm/git/recordb/recordb.git
cd recordb/pkgs
vle -P tester configure build test
vle -P glue configure build test
vle -P meteo configure build test
vle -P 2CV configure build test
vle -P gluePhysic configure build test
vle -P DateTime configure build test
vle -P DEtimeStep configure build test
vle -P LotkaVolterra configure build test
vle -P Multiformalism configure build test
vle -P GenCSVcan configure build test
vle -P wwdm configure build test
vle -P RinsideGVLE configure build test
############ install rvle.record ############
cd ../misc/
R CMD INSTALL rvle.record
############ cleaning ############
cd ~/Documents
#suppression des archives
rm -rf  vle-1.1.2.tar.gz rvle_1.1.2-0.tar.gz packages-1.1.2.tar.gz
#suppression des sources
rm -rf vle-1.1.2
rm -rf rvle
rm -rf packages-1.1.2
#suppression des dossier buildvle des paquets recordb
cd ~/Documents/recordb/pkgs
vle -P tester clean
vle -P glue clean
vle -P meteo clean
vle -P 2CV clean
vle -P gluePhysic clean
vle -P DateTime clean
vle -P DEtimeStep clean
vle -P LotkaVolterra clean
vle -P Multiformalism clean
vle -P GenCSVcan clean
vle -P wwdm clean
vle -P RinsideGVLE clean