Incomplete installation of OpenFOAM 2.1.1 on ubuntu 12.10
Hello
To install I followed the instructions 2.4 Ubuntu 12.10 http://openfoamwiki.net/index.php/In...u#Ubuntu_12.10 by following the detailed step-by-step instructions below... Steps:
I got a file OpenFOAM and within that file OpenFOAM-2.1.1 (not the file ThirdParty-2.1.1) and OpenFOAM-2.1.1.tgz ThirdParty-2.1.1.tgz icoFoam –help Does not give anything gedit ~/.bashrc doesn’t contain line OpenFOAM Question:Do I have to uninstall and start from the beginning? Thanks |
Greetings zania and welcome to the forum!
Inside the folder "$HOME/OpenFOAM/OpenFOAM-2.1.1", do you have a file named "make.log"? If you do, follow the instructions that were given on the instructions, namely: Code:
#Create a tarball in case you've seen any errors (it's the first error that matters) Best regards, Bruno |
More information on Incomplete installation of OpenFOAM 2.1.1
Hello Bruno
Thanks for your welcome and the quick response! Inside the folder “OpenFOAM/OpenFOAM-2.1.1”, I do not have a file named "make.log"? To your follow-up question: what did you exactly do in step #3? I copied For i386: #here you can change 4 to the number of cores you've gotsource $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI WM_ARCH_OPTION=32 echo "source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc $FOAM_SETTINGS" >> $HOME/.bashrc All the Best |
Hi zania,
OK, then check the following details:
Best regards, Bruno |
Trying your instructions
Hello Bruno Thank you for your patience!
Trying your instructions:
echo $HOMEls -l $HOME It should tell you where your home folder is and also list the contents of your home folder. eva@eva-Inspiron-1525:~$ echo $HOME /home/eva eva@eva-Inspiron-1525:~$ ls -l $HOME σύνολο 56 drwxr-xr-x 3 root root 4096 Φεβ 20 20:10 OpenFOAM -rw-r--r-- 1 eva eva 8445 Φεβ 9 22:41 examples.desktop drwxrwxr-x 2 eva eva 4096 Φεβ 26 20:33 Ubuntu One drwxrwxr-x 2 eva eva 4096 Φεβ 26 20:51 user drwxr-xr-x 2 eva eva 4096 Φεβ 9 22:49 Βίντεο drwxr-xr-x 2 eva eva 4096 Φεβ 9 22:49 Δημόσια drwxr-xr-x 2 eva eva 4096 Φεβ 9 22:49 Έγγραφα drwxr-xr-x 2 eva eva 4096 Φεβ 9 22:49 Εικόνες drwxr-xr-x 2 eva eva 4096 Φεβ 9 22:49 Επιφάνεια εργασίας drwxr-xr-x 2 eva eva 4096 Φεβ 9 22:49 Λήψεις drwxr-xr-x 2 eva eva 4096 Φεβ 9 22:49 Μουσική drwxr-xr-x 2 eva eva 4096 Φεβ 9 22:49 Πρότυπα
ls -l $HOME/OpenFOAM It should show you the contents of the OpenFOAM folder, which should be 2 "*.tgz" files and 2 folders for "OpenFOAM-2.1.1" and "ThirdParty-2.1.1". ls: αδυναμία πρόσβασης του (Its in Greek: inability to access) /home/eva/OpenFOAM: Δεν υπάρχει τέτοιο αρχείο ή κατάλογος (there is not such file) And what does this output: Code: ls -l $HOME/OpenFOAM/OpenFOAM-2.1.1 eva@eva-Inspiron-1525:~$ ls -l $HOME/OpenFOAM/OpenFOAM-2.1.1 ls: αδυναμία πρόσβασης του /home/eva/OpenFOAM/OpenFOAM-2.1.1: Δεν υπάρχει τέτοιο αρχείο ή κατάλογος eva@eva-Inspiron-1525:~$ It should show you a file list similar to this one: https://github.com/OpenFOAM/OpenFOAM-2.1.x After the installation a file OpenFOAM was created @ user eva that contains eva@eva-Inspiron-1525:~$ cd OpenFOAM eva@eva-Inspiron-1525:~/OpenFOAM$ ls OpenFOAM-2.1.1 OpenFOAM-2.1.1.tgz ThirdParty-2.1.1.tgz :mad:not the file ThirdParty-2.1.1 eva@eva-Inspiron-1525:~/OpenFOAM$ cd OpenFOAM-2.1.1 eva@eva-Inspiron-1525:~/OpenFOAM/OpenFOAM-2.1.1$ ls Allwmake bin doc README.html src wmake applications COPYING etc README.org tutorials eva@eva-Inspiron-1525:~/OpenFOAM/OpenFOAM-2.1.1$ Best regards |
Hi zania,
Looks like you forgot to run the exit command at the end of the step #1. This lead to having the "OpenFOAM" folder set to root permissions: Quote:
Code:
sudo chown -R eva:eva /home/eva/OpenFOAM Code:
cd ~ Afterwards, continue from step #3. And keep in mind that you only need root permissions for the very first step! After that, you do not need root permissions! Best regards, Bruno |
Hi Bruno,
I am sorry to come back. "ThirdParty-2.1.1" now exists. But continuing from step #3 I got: eva@eva-Inspiron-1525:~$ uname -m i686 eva@eva-Inspiron-1525:~$ source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI WM_ARCH_OPTION=32 Το πρόγραμμα The programe 'mpicc' can be bound μπορεί να βρεθεί στα παρακάτω πακέτα in the: * lam4-dev * libmpich-mpd1.0-dev * libmpich-shmem1.0-dev * libmpich1.0-dev * libmpich2-dev * libopenmpi-dev * libopenmpi1.6-dev Try Δοκιμάστε: sudo apt-get install <sellected package επιλεγμένο πακέτο> Το πρόγραμμα 'mpicc' μπορεί να βρεθεί στα παρακάτω πακέτα: * lam4-dev * libmpich-mpd1.0-dev * libmpich-shmem1.0-dev * libmpich1.0-dev * libmpich2-dev * libopenmpi-dev * libopenmpi1.6-dev Try Δοκιμάστε: sudo apt-get install <επιλεγμένο πακέτο> eva@eva-Inspiron-1525:~$ eva@eva-Inspiron-1525:~$ echo "source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc $FOAM_SETTINGS" >> $HOME/.bashrc What did I do wrong? Thank you |
Hi zania,
I think I now understand what happened. The instructions on step #1 have (had) the following code at the very beginning: Code:
sudo -s Anyway, try running the following, one line at a time: Code:
sudo -s
Best regards, Bruno |
I know I take too much of your time.
Hi Bruno,
I know I take too much of your time. Could you please check if its ok to carry to step 4. eva@eva-Inspiron-1525:~$ sudo -s [sudo] password for eva: root@eva-Inspiron-1525:~# apt-get install build-essential cmake flex bison zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev libncurses-dev libxt-dev libopenmpi-dev openmpi- Ανάγνωση Λιστών Πακέτων... Ολοκληρώθηκε reading completed Κατασκευή Δένδρου Εξαρτήσεων constructing dependence tree Ανάγνωση περιγραφής της τρέχουσας κατάσταση... Ολοκληρώθηκε reading current state (Σημείωση, επιλέχθηκε το libncurses5-dev αντί του libncurses-dev) Notice it was chosen libncurses5-dev instead of libncurses-dev (E: It was not located Αδυναμία εντοπισμού του πακέτου openmpi) E: It was not located openmpi root@eva-Inspiron-1525:~# root@eva-Inspiron-1525:~# exit exit eva@eva-Inspiron-1525:~$ |
Hi zania,
You forgot to add "bin" to the end of the apt-get line. Try this: Code:
sudo apt-get install openmpi-bin Bruno |
Can I redo step #4?
Ηello Bruno
eva@eva-Inspiron-1525:~$ cd ~/OpenFOAM eva@eva-Inspiron-1525:~/OpenFOAM$ cd OpenFOAM-2.1.1 eva@eva-Inspiron-1525:~/OpenFOAM/OpenFOAM-2.1.1$ ./Allwmake > make.log 2>&1 eva@eva-Inspiron-1525:~/OpenFOAM/OpenFOAM-2.1.1$ eva@eva-Inspiron-1525:~/OpenFOAM/OpenFOAM-2.1.1$ ./Allwmake > make.log 2>&1 eva@eva-Inspiron-1525:~/OpenFOAM/OpenFOAM-2.1.1$ icoFoam -help icoFoam: η εντολή δε βρέθηκε gedit make.log ./Allwmake: 4: ./Allwmake: wmakeCheckPwd: not found Error: Current directory is not $WM_PROJECT_DIR The environment variables are inconsistent with the installation. Check the OpenFOAM entries in your dot-files and source them. Can I open a new terminal and Code: cd ~/OpenFOAM and Follow the instructions starting from step #4. I know your instructions are right. I just don’t follow them correctly. All the best |
Hi zania,
Run: Code:
source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI WM_ARCH_OPTION=32 Best regards, Bruno |
What should I choose in <selected package>
Hello Bruno I think I need more help
I got : eva@eva-Inspiron-1525:~$ source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI WM_ARCH_OPTION=32 The program 'mpicc' can be found in the following: * lam4-dev * libmpich-mpd1.0-dev * libmpich-shmem1.0-dev * libmpich1.0-dev * libmpich2-dev * libopenmpi-dev * libopenmpi1.6-dev Try: sudo apt-get install <selected package> The program 'mpicc' can be found in the following: * lam4-dev * libmpich-mpd1.0-dev * libmpich-shmem1.0-dev * libmpich1.0-dev * libmpich2-dev * libopenmpi-dev * libopenmpi1.6-dev Try: sudo apt-get install < selected package > eva@eva-Inspiron-1525:~$ All the best |
Hi zania,
OK, start a new terminal. Then run: Code:
sudo apt-get install build-essential cmake flex bison zlib1g-dev qt4-dev-tools libqt4-dev Code:
sudo apt-get install gnuplot libreadline-dev libncurses-dev libxt-dev libopenmpi-dev openmpi-bin Code:
source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI WM_ARCH_OPTION=32 Bruno |
Do I have to exit terminal?
Hi Bruno
Q1) Do I have to exit terminal after the above two sudo … steps ? Q2)After running code source … (of the above) do I go to step #5 of the original instructions? Thanks All the best |
Hi zania,
Quote:
Quote:
If there aren't any more error messages, then you must go to step #4. It's only after step #4 that you can to #5 ;). Best regards, Bruno |
Can I add the echo … line now?
Hello Bruno
I know I give you a hard time! I did the steps Code: sudo apt-get install build-essential cmake flex bison zlib1g-dev qt4-dev-tools libqt4-dev And then run: Code: sudo apt-get install gnuplot libreadline-dev libncurses-dev libxt-dev libopenmpi-dev openmpi-bin Then try again: Code: source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI WM_ARCH_OPTION=32 eva@eva-Inspiron-1525:~$ source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI WM_ARCH_OPTION=32 with no error I did notecho "source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc $FOAM_SETTINGS" >> $HOME/.bashrc and then step #4 eva@eva-Inspiron-1525:~$ cd OpenFOAM-2.1.1 bash: cd: OpenFOAM-2.1.1: There is not such file so I tried eva@eva-Inspiron-1525:~$ ls examples.desktop Ubuntu One Δημόσια Επιφάνεια εργασίας Πρότυπα FOAM_RUN user Έγγραφα Λήψεις OpenFOAM Βίντεο Εικόνες Μουσική eva@eva-Inspiron-1525:~$ cd OpenFOAM eva@eva-Inspiron-1525:~/OpenFOAM$ cd OpenFOAM-2.1.1 eva@eva-Inspiron-1525:~/OpenFOAM/OpenFOAM-2.1.1$ ./Allwmake > make.log 2>&1 eva@eva-Inspiron-1525:~/OpenFOAM/OpenFOAM-2.1.1$ eva@eva-Inspiron-1525:~/OpenFOAM/OpenFOAM-2.1.1$ ./Allwmake > make.log 2>&1 eva@eva-Inspiron-1525:~/OpenFOAM/OpenFOAM-2.1.1$ icoFoam -help Usage: icoFoam [OPTIONS] options: -case <dir> specify alternate case directory, default is the cwd -noFunctionObjects do not execute functionObjects -parallel run in parallel -roots <(dir1 .. dirN)> slave root directories for distributed running -srcDoc display source code in browser -doc display application documentation in browser -help print the usage Using: OpenFOAM-2.1.1 (see www.OpenFOAM.org) Build: 2.1.1-221db2718bbb eva@eva-Inspiron-1525:~/OpenFOAM/OpenFOAM-2.1.1$ The make log make: Nothing to be done for `all'. ======================================== Start ThirdParty Allwmake ======================================== ======================================== Build MPI libraries if required ======================================== etc From within the case (cavity) directory I typed blockMesh and got the message Command missing or something like that I do not have the line OpenFOAM … in the .bashrc file. Is it because of the missed echo … line? Can I type it now? Thanks |
You can do step #3 without any concerns. Feel free to edit the file "$HOME/.bashrc", to check what is already inside it.
As for not being able to run blockMesh, do as instructed in step #5: Code:
#Create a tarball in case you've seen any errors (it's the first error that matters) |
The mistakes I made
Hello Bruno
I got OpenFOAM installed finally (with much help)! Thank you very much. I had no experience at all in Ubuntu. The first mistake I made was at the beginning when I gave the code sudo, typing the user password, I was expecting ****** or something like that to appear. Since nothing happened I tried su. All the Best |
Ubuntu 12.04
Quote:
apt-get install build-essential cmake flex bison zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev \ libncurses-dev libxt-dev libopenmpi-dev openmpi-bin i cant install openfoam best regards Zania |
Greetings Manuel,
This is a major problem, namely managing to install the necessary packages in Ubuntu without direct internet access. Do you still need to do this? Because the easiest solutions require you to be able to use a Linux machine that has internet access, even if it's not an Ubuntu installation. Best regards, Bruno |
Quote:
Best regards Manuel F Fonseca |
All times are GMT -4. The time now is 10:34. |