|
[Sponsors] |
[OpenFOAM.org] OpenFOAM 2.4 on Ubuntu 14.04 - gcc not found? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
john mcgeorge
Join Date: Jul 2015
Location: South Africa Pinetown
Posts: 36
Rep Power: 11 ![]() |
Hi.I am new to OpenFOAM.HavE installed Ubuntu 14.04 LTS and OpenFOAM2.4.0 and cannot get working.It says I need gcc version.What is that.Is it an Ubuntu or OpenFOAM problem.Please someone get me going in the right direction.Thanks.I am in South Africa so not much help here.
|
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Refik
Join Date: Dec 2014
Location: Turkey
Posts: 58
Rep Power: 11 ![]() |
I recently installed ubuntu 14.04 and openFOAM 2.4 and they work just fine.But i myself encountered some issues to properly get it to work, and had some issues with paraview too.Turned out that there were some files missing that was needed to open paraview.
Try to go through the forums, i am sure you will find what you are looking for. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
john mcgeorge
Join Date: Jul 2015
Location: South Africa Pinetown
Posts: 36
Rep Power: 11 ![]() |
ThAnks for quick reply.I have been through forums and other sites.Just cannot work out problem.I have OpenFOAM 15.06 on Windows 7 and it works.All I want to do is test bodywork of my Formula Vee racing car to see how it compares to results I got in my small wind tunnel using a model.
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Refik
Join Date: Dec 2014
Location: Turkey
Posts: 58
Rep Power: 11 ![]() |
What exactly is the error when you try to run a simulation ? Did you menage to compile openfoam or is there a problem with the solvers etc ?
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
Member
john mcgeorge
Join Date: Jul 2015
Location: South Africa Pinetown
Posts: 36
Rep Power: 11 ![]() |
It says I need version gcc=4.5.0 and uname.Warning Conflicting installations.OpenFOAM environment not configured.Need valid host name.These errors get when foamInstallationTest is run.
|
|
![]() |
![]() |
![]() |
![]() |
#6 |
Member
Refik
Join Date: Dec 2014
Location: Turkey
Posts: 58
Rep Power: 11 ![]() |
I think you should update the proper gcc version as root.
|
|
![]() |
![]() |
![]() |
![]() |
#7 |
Member
john mcgeorge
Join Date: Jul 2015
Location: South Africa Pinetown
Posts: 36
Rep Power: 11 ![]() |
I did look today but was not sure where to find it.Is it missing frm OpenFOAM or Ubuntu.Do I download frm internet?Sorry but I am dumb when it comes to this.
|
|
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 ![]() |
Hi,
Welcome to OpenFOAM. GCC is the C++ compiler and as far as I remember i installed ubuntu initially(14.04 LTS) and later openfoam and i had no problems with gcc compilers. So, by default openfoam uses gcc compiler. Well I guess it is not complicated and i suggest you to remove the previously installed version of openfoam and start once again. Remove the main folder within your opts or user directory. Take care while changing your .bashrc file. If you have multiple versions it gets complicated and you will need to use alias for specific versions. Actually you can follow the step wise process here: http://www.openfoam.org/download/ubuntu.php and related information about the version{this is always a pain working and switching between versions}: http://www.openfoam.org/download/source.php From your message i read there is some sort of older version installed and from openfoam 2.2 gcc versions >4.5 are only allowed for usage. Hope this helps; Saideep |
|
![]() |
![]() |
![]() |
![]() |
#9 |
Member
john mcgeorge
Join Date: Jul 2015
Location: South Africa Pinetown
Posts: 36
Rep Power: 11 ![]() |
Thanks for ur answer.Now I wud like to remove all Ubuntu and OF and then reload everything correctly.I know how to do that with Windows but how does one do that with Linux...thanks
|
|
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 ![]() |
Hi,
I guess there is no problem with Ubuntu. May be you can just remove openfoam and later check from your terminal if any sort of gcc version exists. Use gcc --version to know about it. |
|
![]() |
![]() |
![]() |
![]() |
#11 |
Member
john mcgeorge
Join Date: Jul 2015
Location: South Africa Pinetown
Posts: 36
Rep Power: 11 ![]() |
Did check it is version 4.8.2-19ubuntu.Is that ok for OF 2.4.0 ???
|
|
![]() |
![]() |
![]() |
![]() |
#12 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 ![]() |
yes thats fine now you can install step wise and it should work fine.
All the best!! |
|
![]() |
![]() |
![]() |
![]() |
#13 |
Member
john mcgeorge
Join Date: Jul 2015
Location: South Africa Pinetown
Posts: 36
Rep Power: 11 ![]() |
What is step wise.When OpenFOAM is installed correctly where is it viewed.In its own window??
|
|
![]() |
![]() |
![]() |
![]() |
#14 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 ![]() |
Hi,
I just meant follow the steps as they are specified in the webpage for installation for the ubuntu 14.04lts version. After installation, openfoam would be present in the users directory. After installation just follow the steps mentioned in Chapter 2 of the openfoam user guide, to copy the tutorial folder to your home directory. Saideep |
|
![]() |
![]() |
![]() |
![]() |
#15 |
Member
john mcgeorge
Join Date: Jul 2015
Location: South Africa Pinetown
Posts: 36
Rep Power: 11 ![]() |
I did run through installation and still get errors.I am sure problem is with Ubuntu.How can I delete all Ubuntu off my pc and start over.I have been at this for abt 2 weeks.Also found out u load frm command line which I found.Thanks for ur help.U make things clearer.
|
|
![]() |
![]() |
![]() |
![]() |
#16 |
Member
Refik
Join Date: Dec 2014
Location: Turkey
Posts: 58
Rep Power: 11 ![]() |
You can use OS-Uninstaller to remove Ubuntu, though i suggest you try to fix the error. Removal of operating systems are always complicated for my case and i believe openFoam works much more efficient on ubuntu than it does on Windows.
|
|
![]() |
![]() |
![]() |
![]() |
#17 |
Member
john mcgeorge
Join Date: Jul 2015
Location: South Africa Pinetown
Posts: 36
Rep Power: 11 ![]() |
I get error $1 9 not installed and still version is incorrect but it is 4.8.I have now loaded 2.2.2 but same errors
|
|
![]() |
![]() |
![]() |
![]() |
#18 |
Member
john mcgeorge
Join Date: Jul 2015
Location: South Africa Pinetown
Posts: 36
Rep Power: 11 ![]() |
The Ubuntu 14.04 LTS has files missing where can I download an error free copy from? Thanks
|
|
![]() |
![]() |
![]() |
Tags |
openfoam 2.4.0 help |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] Insatlling gmsh from the source code-issue? | CFD-Lover | OpenFOAM Meshing & Mesh Conversion | 20 | June 12, 2018 06:39 |
OpenFoam 2.3.0 on Ubuntu 14.04 | CHagen | OpenFOAM Installation | 4 | October 6, 2014 09:53 |
Problems with OpenFOAM 2.3.0 on Ubuntu 14.04 | smallzilla | OpenFOAM Installation | 15 | September 14, 2014 12:11 |
OpenFOAM 1.6 ext | fportela | OpenFOAM Installation | 11 | December 26, 2013 18:55 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 03:01 |