CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Installation of OpenFOAM 2.3.1 on Ubuntu 14.04 (https://www.cfd-online.com/Forums/openfoam-installation/148352-installation-openfoam-2-3-1-ubuntu-14-04-a.html)

stephie February 10, 2015 04:25

Installation of OpenFOAM 2.3.1 on Ubuntu 14.04
 
Hello everyone,

I'm a beginner in working with OpenFoam. At the moment I try to install OpenFoam on Ubuntu 14.04. For this I used the official manual from this page:
http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04

Unfortunately there are many mistakes and I don't know how to solve it. The first information came after the 2. point:
"Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Hinweis: »libncurses5-dev« wird an Stelle von »libncurses-dev« gewählt.
Paket gnuplot ist nicht verfügbar, wird aber von einem anderen Paket
referenziert. Das kann heißen, dass das Paket fehlt, dass es abgelöst
wurde oder nur aus einer anderen Quelle verfügbar ist.

E: Für Paket »gnuplot« existiert kein Installationskandidat.
E: Paket libopenmpi-dev kann nicht gefunden werden.
E: Paket openmpi-bin kann nicht gefunden werden."

After the terminal told:
"Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
libglu1-mesa-dev : Hängt ab von: libgl1-mesa-dev soll aber nicht installiert werden oder
libgl-dev
libqt4-opengl-dev : Hängt ab von: libgl1-mesa-dev soll aber nicht installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete."

At this moment it didn't matter, I continued with the skript. But after the 6. point the mistake appeared again:

" Das Programm »mpicc« ist in folgenden Paketen enthalten:
* lam4-dev (Sie werden die Paketquellenkomponente »universe« aktivieren müssen.)
* libmpich-dev (Sie werden die Paketquellenkomponente »universe« aktivieren müssen.)
* libopenmpi-dev (Sie werden die Paketquellenkomponente »universe« aktivieren müssen.)
Versuchen Sie: sudo apt-get install <ausgewähltes Paket>"

So I guess I have to install "universe".. but I don't know how. I would be amazing if anyone might help me.

Thank you and nice greetings,
Stephie

(I hope the German language of the terminal isn't a problem?)

stephie February 10, 2015 04:51

Okay, I tried this:
sudo apt-add-repository universe
sudo apt-get update


after this I tried the option the terminal proposed:
apt-get lam4-dev
apt-get libmpich-dev
apt-get libopenmpi-dev

I installed all this programs and continued by the point 6 of the installation manual. Up to now the script of the manual run and I didn't need such a long time. I'm not sure if this is a good sign.

stephie February 10, 2015 08:15

Hey,
for me it's new to work with OpenFoam. Today I tried to install the program by using the manual from this page: http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04

Now I'm nearly at the end of the scrip, where I have to check if icoFoam is working:
This is the answer of the terminal: "icoFoam: Befehl nicht gefunden." Command not found. Would you help me to find the mistake I probably made?

Thank you and nice greetings

stephie February 10, 2015 08:49

Okay, I read, I have to repeat this code:
./Allwmake > log.make 2>&1

to diagnose what went wrong. But the terminal show me any error. So where is the fault?
Please help me :(

alexeym February 10, 2015 09:17

Hi,

All the output goes to log.make file, so to find error use

Code:

$ less log.make
and search there (using / command) for Error (or error, or maybe it will be in German).

wyldckat February 14, 2015 11:05

Greetings to all!

@Stephanie: In the next step on those instructions, namely in step #11, it says the following near the end:
Code:

#Create a tarball in case you've seen any errors (it's the first error that matters)
#or if you don't understand the output
#and attach the file "make.log.tar.gz" to a post in the designated thread
tar -czf make.log.tar.gz make.log

Therefore, please compress the file by using the last command and attach the file to your next post.

Best regards,
Bruno


All times are GMT -4. The time now is 13:21.