![]() |
icoFoam: command not found
Hello,
I have a problem with my installation of openFoam. I follow the instructions from http://www.openfoam.com/download/ubuntu.php So in the part User configuration, I open the .bashrc file by using Code:
gedit ~/bashrcBut when I try Code:
icoFoam -helpDo you know what the problem is ? I am quite sure that the path to my OpenFOAM directory is right, but, I am not sure that I am using the right bashrc file.. Thanks; |
Greetings nakor and welcome to the forum!
OK, you missed two dots in the setup process:
Best regards, Bruno |
oh my bad. everything is working with both dot.
Thanks for your help. |
icoFoam: command not found - continued
I'm also having the same problem. However, I've followed the instructions to the letter (including dots etc), but I still get "Command not found".
I'm not only new to OpenFoam but also Ubuntu (both just installed) so you can't be more newbee than me! I've got through the installation and editted the bashrc file. I notice that this file was not empty when I opened it (from home/nigel). Any step-by-step "idiots guide" would be extremely helpful.:confused: Thanks! |
Hi Nigel,
~/.bashrc is supposed to have some stuff in it, so that's ok. Did you add the correct line in ~/.basrc? (with a dot and a space as well) Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc |
icoFoam: command not found - continued
gwierink.
Thanks for your help. Yes I added in each of the following separately and tested them separately (with dots/spaces): . $HOME/OpenFOAM/OpenFOAM-1.7/etc/bashrc . $HOME/OpenFOAM/OpenFOAM-170/etc/bashrc . $HOME/OpenFOAM/OpenFOAM-1.70/etc/bashrc . $HOME/OpenFOAM/OpenFOAM170/etc/bashrc . /opt/openfoam170/etc/bashrc but still the same problem of "command not found" when typing "icoFOAM - help" (I've installed version 1.70). I must be doing something seriously daft, but as I say I'm new to Ubuntu and OpenFoam... Any other pointers or ABC guide would be great! |
Greetings Nigel,
Uhm... but it doesn't get any simpler than following the official installation instructions: http://www.openfoam.com/download/ubuntu.php And another thing: it's icoFoam, not icoFOAM!! In Linux letter case in files and folders is almost as important as your own life :p Remember that: Quote:
Working with Linux teaches you a valuable lesson: be very cautious with what you type, because one wrong letter case, one wrong digit or one dot in the wrong place, and PUFF... you will just get a GIGO (Garbage In - Garbage Out) ;) And the same goes for CFD :cool: So, my advice is to follow the instructions again and very closely! You will need to learn to be very focused when using OpenFOAM. It will mostly be text based control and editing; only post processing will likely be graphical via ParaView. That's one of the reasons (at least I think it is) why OpenCFD lays out a tutorial explaining how to use it, and doesn't simply post a install script and tell people to "click here to install" ;) And this Ubuntu packaging system is already a big step in the right direction for new users, because with OpenFOAM 1.6 it wasn't this easy!! Best regards and good luck! Bruno |
icoFoam: command not found
DOH! :eek:
It had installed fine, but as you say I tried "icoFOAM -help" whereas it should have been "icoFoam -help". It confused me though because the software is called "OpenFOAM"... Thanks for your advice. Now down to the tutorial...:D |
Hi all,
I just also tried to install OF but for some reason i got stuck. Installation went alright so far but when it comes to the configuration there seams to be something wrong. May be I should mention first ( I don't know how important that is ) that OF is not installed in my Home-folder but in a folder that is superior to Home called opt. So I'm now in this superior folder typing Code:
colin@colin:/$gedit ~/.bashrcand the last lines are: Code:
if [ -f /etc/bash_completion ] && ! shopt -oq posix; thenCode:
. /opt/openfoam171/etc/bashrcand type the line: Code:
. ~/.bashrcCode:
bash: opt/openfoam171/etc/bashrc: No such file or directoryan other thing to mention when I open the terminal I'm in the directory Code:
colin@colin:~$root/opt/openfoam171 I hope you can help me regards Colin |
Hi Colin,
Are you sure you wrote ". /opt/openfoam171/etc/bashrc" correctly, because the bash error says it can't find "opt/openfoam171/etc/bashrc" instead of that it can't find "/opt/openfoam171/etc/bashrc"? |
@gwierink
yep my fault it was exactly what you mention! I need to learn to read more closely! sry for the inconveniences regards Colin |
| All times are GMT -4. The time now is 12:48. |