|
[Sponsors] |
March 10, 2010, 07:59 |
|
#21 |
Member
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16 |
ok gijs, i think that just about did it!
Well at least i typed this in the terminal: . $HOME/.bashrc (should i type source instead of the period?) And nothing happened, just a new line came, i think that is good. Now i have to run the foamInstallationScript. And it worked! Base configuration ok. critical systems ok. Thank you so much for your time gijs, and for your patience. I know it is hard, but you have no idea how much you have helped me! |
|
March 10, 2010, 08:09 |
|
#22 | ||
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Fantastic! That is good to hear, I am happy it works now! Happy foaming!
Quote:
Quote:
__________________
Regards, Gijs |
|||
March 17, 2010, 03:01 |
|
#23 |
Member
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16 |
Hi, I am installing OF-1.6 on Ubuntu 8.1.
I have extracted files successfully into the Home/<username>/OpenFoam/ But not able to source bashrc file. Also from the comments of previous forum had confused me, which file to edit bashrc i n home location or from OpenFoam/OpenFOAM-1.6/etc location. I m getting following msg after using source bashrc command.. bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/etc/settings.sh: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/etc/aliases.sh: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/etc/apps/paraview3/bashrc: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/etc/apps/ensight/bashrc: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory plz help me |
|
March 17, 2010, 03:37 |
|
#24 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hi Javed,
There are two bashrc files; one of OpenFOAM (that lives in ~/OpenFOAM/OpenFOAM-1.6/etc/) and one of your system (the user that is) (that lives in ~/.bashrc). Now, for a normal installation of OF (no compilation) you only need to change ~/.bashrc (notice the dot (".")) to make the shell aware of OF's environment variables. So, the recipe is as follows:
__________________
Regards, Gijs |
|
March 17, 2010, 04:14 |
|
#25 |
Member
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16 |
Thanks Gijs for the quick reply.
I followed the same procedure considering . in every single command. But still getting the error like iyer@iyer-desktop:~$ . $HOME/.bashrc bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/etc/bashrc: No such file or directory want to clear two things 1) i m editing ~/.bashrc file of system and typing the command . $HOME/.bashrc in my home directory (name-/home/iyer). 2) Should i run :/$ source OpenFOAM-1.6/etc/bashrc before editing bashrc file. I need ur help. plz reply. Thanks |
|
March 17, 2010, 04:39 |
|
#26 |
Member
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16 |
Sir, One more thing, we i remove the . $HOME/OpenFoam/OpenFOAM-1.6/etc/bashrc form the ~/.bashrc file,
1) I m neither getting an error or comment see the following.(as per ur direction) iyer@iyer-desktop:~$ . $HOME/.bashrc iyer@iyer-desktop:~$ but when i check in the OpenFoam command I m getting one error as follow iyer@iyer-desktop:~/OpenFoam$ source /OpenFOAM-1.6/etc/bashrc bash: /OpenFOAM-1.6/etc/bashrc: No such file or directory I m not getting what is going on..plz help |
|
March 17, 2010, 05:37 |
ok, let's get some things vlear here
|
#27 | |||||
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hi Javed,
Quote:
First, let's get some syntax clear:
Now, the idea behind the "environment variable and sourcing" stuff is that OF has its own bashrc file, through which OF makes the shell (the terminal where you type and calculate stuff) aware of the different parts OF needs to run. There it is stated what C++ compiler to use, where it is, what ParaView to use etc. The thing is that you need to make your "own shell" (the terminal you open to type commands) aware of these rules for OF (stated in the $HOME/OpenFoam/OpenFOAM-1.6/etc/bashrc file). To do that, you do not need to change $HOME/OpenFoam/OpenFOAM-1.6/etc/bashrc, but you need to make $HOME/.bashrc aware of $HOME/OpenFoam/OpenFOAM-1.6/etc/bashrc. This is done by adding the line Code:
. $HOME/OpenFoam/OpenFOAM-1.6/etc/bashrc Code:
. $HOME/OpenFoam/OpenFOAM-1.6/etc/bashrc When you remove the line Code:
. $HOME/OpenFoam/OpenFOAM-1.6/etc/bashrc Code:
. $HOME/.bashrc Code:
source $HOME/.bashrc So, to make a long story short, do this: Quote:
Quote:
Quote:
Quote:
Hope this clears up some things.
__________________
Regards, Gijs |
||||||
March 18, 2010, 01:21 |
|
#28 |
Member
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16 |
Thanks Gijs,
I have successfully installed the openfoam, thanks a lot for the procedure(step by step) u sent. Can u plz do one more favour just want to know how to open GUI , or any link which can guide for further work. Thanks a lot again. Javed |
|
March 18, 2010, 03:58 |
|
#29 | ||
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
You're very welcome Javed, I'm glad it worked .
Quote:
Quote:
__________________
Regards, Gijs |
|||
March 18, 2010, 08:04 |
|
#30 |
Member
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16 |
Thanks Gijs for the encouragement..
I will start from the tuts now.. Thanks a lot again for the help.. |
|
May 3, 2010, 09:34 |
|
#31 |
Member
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 17 |
Hi,
It worked for me also to set up .bashrc file. Thanks for your valuable advice.
__________________
Cheers, Vishal Jambhekar... "Simulate the way ahead......!!!" |
|
May 9, 2010, 07:23 |
openfoam installation
|
#32 |
New Member
VENKATESH T LAMANI
Join Date: Mar 2009
Location: BANGALORE, KARNATAKA, INDIA
Posts: 11
Rep Power: 17 |
please send me the detail procedure for installation of openfoam1.6 working on ubuntu 9.10, 32 bit system
|
|
May 10, 2010, 04:09 |
|
#33 | |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hi Venkatesh,
Quote:
__________________
Regards, Gijs |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem Installing OF 1.6 Ubuntu 9.10 (64 bit) - How to use GCC 4.4.1 | Future Science | OpenFOAM Installation | 43 | November 10, 2011 08:17 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 15:43 |
OpenFoam 1.6 Permissions in Ubuntu 9.04 | AlanR | OpenFOAM Installation | 14 | December 28, 2009 20:45 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |