|
[Sponsors] |
[OpenFOAM.org] OpenFOAM 2.4 on Ubuntu 14.04 - gcc not found? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 9, 2015, 16:52 |
OpenFOAM 2.4 on Ubuntu 14.04 - gcc not found?
|
#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.
|
|
July 9, 2015, 17:20 |
|
#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. |
|
July 9, 2015, 17:25 |
OpenFOAM
|
#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.
|
|
July 9, 2015, 17:28 |
|
#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 ?
|
|
July 9, 2015, 17:39 |
OpenFOAM
|
#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.
|
|
July 9, 2015, 17:46 |
|
#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.
|
|
July 9, 2015, 17:56 |
OpenFOAM
|
#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.
|
|
July 10, 2015, 06:21 |
|
#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 |
|
July 10, 2015, 06:41 |
OpenFOAM
|
#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
|
|
July 10, 2015, 07:10 |
|
#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. |
|
July 10, 2015, 07:14 |
OpenFOAM
|
#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 ???
|
|
July 10, 2015, 07:18 |
|
#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!! |
|
July 10, 2015, 08:23 |
OpenFOAM
|
#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??
|
|
July 10, 2015, 10:34 |
|
#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 |
|
July 10, 2015, 10:40 |
OpenFOAM
|
#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.
|
|
July 10, 2015, 13:08 |
|
#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.
|
|
July 10, 2015, 13:17 |
OpenFOAM
|
#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
|
|
July 11, 2015, 09:17 |
OpenFOAM
|
#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 |
|
|
Similar Threads | ||||
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 07:39 |
OpenFoam 2.3.0 on Ubuntu 14.04 | CHagen | OpenFOAM Installation | 4 | October 6, 2014 10:53 |
Problems with OpenFOAM 2.3.0 on Ubuntu 14.04 | smallzilla | OpenFOAM Installation | 15 | September 14, 2014 13:11 |
OpenFOAM 1.6 ext | fportela | OpenFOAM Installation | 11 | December 26, 2013 19:55 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |