sudo apt-get install gcc lsh-client lsh-server libqt4-core libqt4-gui libqt4-sql
Creazione utente dedicato e accesso via ssh:
sudo adduser simulation
ssh simulation@localhost
mkdir OpenFOAM
cd OpenFOAM
Download binari:
wget http://downloads.sourceforge.net/project/foam/foam/1.6/OpenFOAM-1.6.General.gtgz?use_mirror=garr http://downloads.sourceforge.net/project/foam/foam/1.6/OpenFOAM-1.6.linuxGccDPOpt.gtgz?use_mirror=garr http://downloads.sourceforge.net/project/foam/foam/1.6/OpenFOAM-1.6.linuxGccSPOpt.gtgz?use_mirror=garr http://downloads.sourceforge.net/project/foam/foam/1.6/ThirdParty-1.6.General.gtgz?use_mirror=garr http://downloads.sourceforge.net/project/foam/foam/1.6/ThirdParty-1.6.linuxGcc.gtgz?use_mirror=garr
Decompressione
tar xzf OpenFOAM-1.6.General.gtgz
tar xzf OpenFOAM-1.6.linuxGccSPOpt.gtgz
tar xzf OpenFOAM-1.6.linuxGccDPOpt.gtgz
tar xzf ThirdParty-1.6.General.gtgz
tar xzf ThirdParty-1.6.linuxGcc.gtgz
Aggiungere al .bashrc dell' utente simulation la riga
. $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc
Ricaricare il bashrc (uscire ed entrare con ssh dall' utente simulation) e dare questo comando
foamInstallationTest
Se tutto è andato bene l' ultimo comando non vi restituirà nessun errore.
Nessun commento:
Posta un commento