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

Gcc compiler

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 12, 2006, 01: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, 02:55
Default Remove the sourcing of OpenFOA
  #2
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
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, 04: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, 09:47
Default It's not enough to just rerun
  #4
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
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, 19: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, 05:43
Default This is very strange, since yo
  #6
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
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

Thread Tools
Display Modes

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 On
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 04:15
set compiler f77 andromeda Main CFD Forum 0 July 9, 2006 08:35
Compiler for UDF Alamgir FLUENT 5 July 31, 2002 20:44
compiler stephanie FLUENT 2 June 19, 2002 07:49
C++ Compiler for UDF Dmitriy Makarov FLUENT 1 December 12, 2000 03:41


All times are GMT -4. The time now is 13:35.