CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] OpenFOAM 2.4 on Ubuntu 14.04 - gcc not found? (https://www.cfd-online.com/Forums/openfoam-installation/156615-openfoam-2-4-ubuntu-14-04-gcc-not-found.html)

Jam Racing 2015 July 9, 2015 15:52

OpenFOAM 2.4 on Ubuntu 14.04 - gcc not found?
 
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.

rewol July 9, 2015 16:20

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.

Jam Racing 2015 July 9, 2015 16:25

OpenFOAM
 
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.

rewol July 9, 2015 16:28

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 ?

Jam Racing 2015 July 9, 2015 16:39

OpenFOAM
 
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.

rewol July 9, 2015 16:46

I think you should update the proper gcc version as root.

Jam Racing 2015 July 9, 2015 16:56

OpenFOAM
 
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.

Saideep July 10, 2015 05:21

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

Jam Racing 2015 July 10, 2015 05:41

OpenFOAM
 
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

Saideep July 10, 2015 06:10

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.

Jam Racing 2015 July 10, 2015 06:14

OpenFOAM
 
Did check it is version 4.8.2-19ubuntu.Is that ok for OF 2.4.0 ???

Saideep July 10, 2015 06:18

yes thats fine now you can install step wise and it should work fine.

All the best!!

Jam Racing 2015 July 10, 2015 07:23

OpenFOAM
 
What is step wise.When OpenFOAM is installed correctly where is it viewed.In its own window??

Saideep July 10, 2015 09:34

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

Jam Racing 2015 July 10, 2015 09:40

OpenFOAM
 
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.

rewol July 10, 2015 12:08

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.

Jam Racing 2015 July 10, 2015 12:17

OpenFOAM
 
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

Jam Racing 2015 July 11, 2015 08:17

OpenFOAM
 
The Ubuntu 14.04 LTS has files missing where can I download an error free copy from? Thanks


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