|
[Sponsors] |
October 12, 2006, 02:46 |
Hi
How do I redfine the pat
|
#1 |
Guest
Posts: n/a
|
Hi
How do I redfine the path for the gcc4-0 C compiler downloaded using synaptic package manager (Ubuntu 6.04) so that when I try to compile C++ codes it doesn't keep refering to OpenFOAM? ie /home/shuo/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../.. /../../include/c++/4.1.0/fstream: In instantiation of 'std::basic_ofstream<wchar_t,> >': Shuo |
|
October 12, 2006, 03:55 |
Remove the sourcing of OpenFOA
|
#2 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
Remove the sourcing of OpenFOAM bashrc script from your local ~/.bashrc, and you're back to the system compiler.
Dragos |
|
October 12, 2006, 05:29 |
I deleted the last line in the
|
#3 |
Guest
Posts: n/a
|
I deleted the last line in the .bashrc file and updatedthe sourcing environment by typing . $HOME/.bashrc. It still gave me the same error message
Shuo |
|
October 12, 2006, 10:47 |
It's not enough to just rerun
|
#4 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
It's not enough to just rerun your .bashrc, you have to either logout, or close xterm, or start a new xterm.
Dragos |
|
October 13, 2006, 20:59 |
When I delete the last line in
|
#5 |
Guest
Posts: n/a
|
When I delete the last line in the .bashrc, the utilities ie blockMesh does not work and it can't find the gcc bash command either.
SHuo |
|
October 15, 2006, 06:43 |
This is very strange, since yo
|
#6 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
This is very strange, since you say that you have installed gcc. Try to see if it is in /usr/bin/gcc (this is the usual place of the system compiler). If it is there, then it's just a problem with you PATH environment variable, which should include /usr/bin directory.
Dragos |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gcc compiler | shuo | OpenFOAM Running, Solving & CFD | 1 | October 7, 2006 05:15 |
set compiler f77 | andromeda | Main CFD Forum | 0 | July 9, 2006 09:35 |
Compiler for UDF | Alamgir | FLUENT | 5 | July 31, 2002 21:44 |
compiler | stephanie | FLUENT | 2 | June 19, 2002 08:49 |
C++ Compiler for UDF | Dmitriy Makarov | FLUENT | 1 | December 12, 2000 03:41 |