|
[Sponsors] |
July 21, 2009, 13:33 |
OpenFOAM Installation Ubuntu 9.04 Problems
|
#1 |
New Member
Sumontro
Join Date: Jul 2009
Posts: 12
Rep Power: 17 |
I am a new user to Linux and I have no Idea what I am doing wrong.
I followed the installation instructions given, sourcing the bashrc file. But this is the output I got. sumontro@ubuntu:~$ source $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc Warning in /home/sumontro/OpenFOAM/OpenFOAM-1.5/etc/settings.sh: Cannot find /home/sumontro/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux installation. Please install this compiler version or if you wish to use the system compiler, change the WM_COMPILER_INST setting to 'System' in this file bash: ./home/sumontro/OpenFOAM/OpenFOAM-1.5/etc/bashrc: No such file or directory I then changed the compiler installation setting to System, but then this is the output I got. sumontro@ubuntu:~$ source $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc bash: ./home/sumontro/OpenFOAM/OpenFOAM-1.5/etc/bashrc: No such file or directory I don't know why the computer cannot source the bashrc file. It knows that it is there, because I can locate it through find. I would really appreciate some help on this. |
|
July 21, 2009, 14:46 |
|
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Did you extract both ThirdParty.General.gtgz and ThirdParty.linuxGcc.gtgz in the proper directories? Does /home/sumontro/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux and is it non-empty?
Also try ". $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc" instead of source. |
|
July 21, 2009, 15:06 |
|
#3 |
New Member
Sumontro
Join Date: Jul 2009
Posts: 12
Rep Power: 17 |
I did extract both the ThirdParty.General.gtgz and ThirdParty.linuxGcc.gtgz in the proper directories in $HOME/OpenFOAM and $HOME/OpenFOAM/ThirdParty
$HOME/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux is not empty. |
|
July 21, 2009, 15:09 |
|
#4 |
New Member
Sumontro
Join Date: Jul 2009
Posts: 12
Rep Power: 17 |
The same message still comes when I source with .
sumontro@ubuntu:~$ . $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc bash: ./home/sumontro/OpenFOAM/OpenFOAM-1.5/etc/bashrc: No such file or directory What do I do? |
|
July 21, 2009, 15:19 |
|
#5 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Hm, I think I see the problem. The proper directory would be "/home/sumontro/OpenFOAM/OpenFOAM-1.5/etc/bashrc" without the preceeding dot. Does "echo $HOME" give you "/home/sumontro"? If not, restart the terminal and if the problem is still there, make sure there are no commands in ~/.bashrc that alter $HOME or manually set $HOME to be /home/sumontro.
|
|
July 21, 2009, 15:40 |
|
#6 |
New Member
Sumontro
Join Date: Jul 2009
Posts: 12
Rep Power: 17 |
yes, when I do echo $HOME, I get /home/sumontro. What else can I do to fix this?
|
|
July 21, 2009, 16:01 |
|
#7 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
This is odd. I don't see why it would be trying to use ./home if your $HOME variable is correct. You could try sourcing ~/OpenFOAM/OpenFOAM-1.5/etc/bashrc or /home/sumontro/OpenFOAM/OpenFOAM-1.5/etc/bashrc to avoid using the environment variable.
If that doesn't work you might want to try from scratch. |
|
July 21, 2009, 16:44 |
|
#8 |
New Member
Sumontro
Join Date: Jul 2009
Posts: 12
Rep Power: 17 |
ok, I fixed the source problem. It seems I was putting that last line into the wrong bashrc file. However, when I source $HOME/.bashrc, nothing happens. When I run the installation script, it gives me two critical errors,
Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- WARNING: gcc version does not match gcc supplied with this release of OpenFOAM Supplied version: 4.3.1 User version : ../src/configure 4.3.3 Minimum required: 4.2.0 gcc ...figure WARNING: Conflicting installations: OpenFOAM settings : /bin/gcc current path : /usr/bin/gcc CRITICAL ERROR gzip 1.3.12 /bin/gzip tar 1.20 /bin/tar icoFoam WARNING: Conflicting installations: OpenFOAM settings : /home/sumontro/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/icoFoam current path : CRITICAL ERROR ------------------------------------------------------------------------------- How do I fix this? |
|
July 21, 2009, 22:40 |
|
#9 |
Member
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17 |
Hi,
Just follow the same procedure as in given in the readme file. Create a driectory OpenFOAm and download all ur tar flies. make sure you are downloading the correct files for the platform. Extract everything in the same directory. Set your path in /.bashrc and add the same line as given in the readme file. I would recommend you close the terminal and open a new one. Then use . $HOME/.bashrc command to set the paths. then type "which gcc". This should point to the directory where your third party files are included which contains gcc as well. If it doesnt point to the directory then you are doing something wrong and that is why you are getting the error conflicting compilers |
|
Tags |
openfoam 1.5 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Boundary condition problems (OpenFOAM) | Milos | OpenFOAM Meshing & Mesh Conversion | 13 | October 13, 2016 20:58 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 15:43 |
MPI error on Ubuntu 9.04 | denner | OpenFOAM Running, Solving & CFD | 3 | June 13, 2009 14:38 |
[General] OpenFoam - problems | MateuszZb | ParaView | 8 | July 21, 2008 17:16 |
installation problems on upgrade from win 3.26 to | mic | Siemens | 5 | June 20, 2007 10:40 |