CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Gcc compiler

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 12, 2006, 02:46
Default Hi How do I redfine the pat
  #1
shuo
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
  Reply With Quote

Old   October 12, 2006, 03:55
Default Remove the sourcing of OpenFOA
  #2
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Remove the sourcing of OpenFOAM bashrc script from your local ~/.bashrc, and you're back to the system compiler.

Dragos
dmoroian is offline   Reply With Quote

Old   October 12, 2006, 05:29
Default I deleted the last line in the
  #3
shuo
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
  Reply With Quote

Old   October 12, 2006, 10:47
Default It's not enough to just rerun
  #4
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
It's not enough to just rerun your .bashrc, you have to either logout, or close xterm, or start a new xterm.

Dragos
dmoroian is offline   Reply With Quote

Old   October 13, 2006, 20:59
Default When I delete the last line in
  #5
shuo
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
  Reply With Quote

Old   October 15, 2006, 06:43
Default This is very strange, since yo
  #6
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
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
dmoroian is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 22:45.