CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installation OpenFOAM-2.3.0 to Ubuntu 12.04 (https://www.cfd-online.com/Forums/openfoam-installation/129973-installation-openfoam-2-3-0-ubuntu-12-04-a.html)

Ohbuchi February 17, 2014 12:21

Installation OpenFOAM-2.3.0 to Ubuntu 12.04
 
Hi,

I downloaded OpenFOAM-2.3.0.tgz from OpenCFD and tried to install it.
When I move to wmake/src directory and run a make command to build wmake tools, following error message was shown.

error: /usr/include/predefs.h: No such file or directory

What kind of package needed to build this new OpenFOAM-2.3.0 ?:confused:

linnemann February 17, 2014 15:29

Hi

A simple google gave this

http://ubuntuforums.org/showthread.php?t=1877944

Best

Ohbuchi February 17, 2014 21:16

Thank you very much, Mr. linnemann.
This problem seems to cause for 32bit platform installation only.


Quote:

Originally Posted by linnemann (Post 475396)
Hi

A simple google gave this

http://ubuntuforums.org/showthread.php?t=1877944

Best


sam.ho February 18, 2014 23:43

Error in installing OpenFOAM 2.3.0
 
1 Attachment(s)
Hi FOAMERS :)

I had OpenFOAM 2.2.1 on UBUNTU initially and uninstalled through Ubuntu Software Centre. But when i open a new terminal its giving as follows
bash: /home/sml5kor/OpenFOAM/OpenFOAM-2.2.1/etc/bashrc: No such file or directory

why is it so ?

And when i proceeded to install OpenFOAM-2.3.0 then got an error as attached in the screen shot .
Please help me

wouter February 20, 2014 16:20

hello sam.ho

You need to be su to do apt-get so sudo apt-get install

hope this helps
Wouter

wyldckat February 22, 2014 10:41

Greetings to all!

@sam.ho: Please read this wiki page: http://openfoamwiki.net/index.php/In...with_the_Shell - it should prove to be very useful for you to diagnose why you got the first error message, after uninstalling OpenFOAM 2.2.1.

To complement Wouter's answer, in the official source installation instructions: http://www.openfoam.org/download/source.php - it mentions that the command:
Code:

sudo su -
should be used prior to running apt-get. If that does not work, try:
Code:

sudo -s
Both will switch you to root mode.
Keep in mind that after using apt-get, you should exit root mode, by running:
Code:

exit
Best regards,
Bruno


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