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-2.0.x on Ubuntu 11.10 (https://www.cfd-online.com/Forums/openfoam-installation/93405-openfoam-2-0-x-ubuntu-11-10-a.html)

nsf October 24, 2011 16:24

Well I still have compilation issues.

First time around i got several error messages like this

Code:

/usr/bin/ld: cannot find -linterfaceProperties
collect2: ld returned 1 exit status
make[2]: *** [/home/nico/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/bin/multiphaseInterFoam] Error 1

I recompiled once more without cleaning and had no errors. I guess it matters in what order you compile the libraries.

David, can you run pitzDaily withour issues?

/N

musahossein October 24, 2011 20:30

ubuntu 11.10
 
One workaround to this is to load Ubuntu 11.04 and install OpenFoam. Then upgrade to Ubuntu 11.10.

marupio October 25, 2011 09:36

Hi Nicolas,

Re: compile problems. Did you do the second part of the "fix"? Given here: http://www.cfd-online.com/Forums/ope...tml#post328935

Re: pisoFoam failure. I have the problems too, and am now working to resolve it. It looks like linking at runTime isn't working.

diego_angeli October 25, 2011 11:07

Quote:

Originally Posted by marupio (Post 329375)
Re: pisoFoam failure. I have the problems too, and am now working to resolve it. It looks like linking at runTime isn't working.

+1, I can reproduce the problem too, both in 32 and 64 bit
no clue about the cause, compilation runs fine apparently

nsf October 25, 2011 14:09

Hey David,

Yes, I did apply the second part of the fix. Of course I've could have missed one of the files.

Currently I've just applied the this fix http://www.openfoam.com/mantisbt/view.php?id=316#c751
and am recompiling again from scratch. Have you tried it yet?

marupio October 25, 2011 14:12

I am trying it right now.

nsf October 25, 2011 15:27

Hey!

Well it compiles alright and I can run pisoFoam and use scotch.

I'll post back if I encounter any problem.

Nicolas

marupio October 25, 2011 16:25

Yeah, looks like it did the trick. My compile worked...

Those of you still struggling with this issue, here's what you do:

If your OpenFOAM is installed from the repository:

1. Do this from the root of your installation:
$ git pull origin master
2. Run the Allwmake again.

If you are not running a repository version, get one (or patch your version).

To get one, follow the instructions on this page: http://www.openfoam.org/git.php

Thank-you to mattijs, whoever you are.

diego_angeli October 26, 2011 07:01

works also for me, many thanks to mattijs!

regards

diego

Chavagnatze October 26, 2011 23:48

Quote:

Originally Posted by kpsl (Post 327926)
Dear Foamers,

has anyone managed to fully install OF on the new Ubuntu release yet?

I have managed to install the first part with no problems, but when i get to makeParaView, compilation aborts without much information:

[ 3%] Built target vtklibxml2
make: *** [all] Error 2
Command exited with non-zero status 2

My guess is that QT that comes with Ubuntu 11.10 is too new (4.7.4) and that i might need an older version (probably 4.6.3 since this is what i usually use). Can anyone confirm this theory?

I have managed to do it. I did not compile from source though. I just tricked oneiric apt into looking in the natty repositories

on OpenFOAM:

the instructions say enter these lines into the terminal:

VERS=`lsb_release -cs`
sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu $VERS main > /etc/apt/sources.list.d/openfoam.list"

I just replaced VERS with natty

sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu natty /etc/apt/sources.list.d/openfoam.list"

It runs fine.


sudo apt-get update
[sudo] password for chavagnatze:
Ign http://www.openfoam.com natty InRelease
Ign http://ppa.launchpad.net oneiric InRelease
Ign http://security.ubuntu.com oneiric-security InRelease
Ign http://www.openfoam.com natty Release.gpg
Hit http://security.ubuntu.com oneiric-security Release.gpg
Ign http://www.openfoam.com natty Release
Ign http://extras.ubuntu.com oneiric InRelease
Hit http://security.ubuntu.com oneiric-security Release
Ign http://www.openfoam.com natty/main i386 Packages/DiffIndex
Hit http://www.openfoam.com natty/main i386 Packages
Ign http://www.openfoam.com natty/main Translation-en_US
Ign http://www.openfoam.com natty/main Translation-en

Fetched 314 kB in 11s (26.8 kB/s)
Reading package lists... Done


Follow the rest of the instructions and it should work fine. If they release a version for 11.10 just update the repository...

I am not a computer person but, I do know that Ubuntu is Linux for idiots like myself. I don't really think that there is a big difference between 11.04 and 11.10 when it comes to something like OpenFOAM.

ghindi October 27, 2011 04:10

It works now.
Thanks.

Best regards,
Gustavo.

Erich Hartmman October 29, 2011 18:50

Hi, guys!. Please, can anyone say me wich is the correct way to get Open Foam working in Ubuntu 11.10?. Im new on this opearating system, and im confused about all this... thanks in advance!

Chavagnatze October 29, 2011 20:28

Quote:

Originally Posted by Erich Hartmman (Post 330004)
Hi, guys!. Please, can anyone say me wich is the correct way to get Open Foam working in Ubuntu 11.10?. Im new on this opearating system, and im confused about all this... thanks in advance!

I know that this works for oneiric.

Ctrl+Alt+T To open Terminal

Go here: http://www.openfoam.com/download/ubuntu.php

Replace the commands in step one with this:

sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu natty /etc/apt/sources.list.d/openfoam.list"

Continue on from step two.


wyldckat October 30, 2011 04:10

Greetings to all!

Kyle, you've got a typo:
Quote:

Originally Posted by Chavagnatze (Post 330006)

sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu natty /etc/apt/sources.list.d/openfoam.list"

You're missing a ">" symbol:
Code:

sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu natty main > /etc/apt/sources.list.d/openfoam.list"
edit: and missing "main" as well! Good catch fronzenlaf (see post #36 below).

Best regards,
Bruno

nsf October 30, 2011 07:56

Actually I did not need to change any repositories in order to compile 2.0.x on Ubuntu 11.10. With the latest git it works just fine (many thanks to mattijs!).

Just follow the instructions here http://www.openfoam.org/git.php . I had to make two small changes.

1) The scotch decomposition library need bison, so
Code:

sudo apt-get install bison
before any thing else

2) Then to compile paraview:

Quote:

Originally Posted by kpsl (Post 327946)
[Solved]

This is an issue with gcc-4.6.1.
It can be solved by editing the file

ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx

and including the line:

#include <stddef.h>

Afterwards paraview will compile without any problems.


fronzenlaf November 23, 2011 10:56

I think there is still a mistake in the workaround line of Chavagnatze. I think it should be
Code:

sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu natty main > /etc/apt/sources.list.d/openfoam.list"

rosswell December 9, 2011 04:34

Ok, so....
 
Hallo, everyone...

So, I'm completely new to OpenFOAM, and relative new to Linux as well (I work with Linux at the University, but all I have to do currently is to execute some commands and stuff)
I'm trying to install OpenFOAM on my desktop at home, and have Ubuntu 11.10 on it. I have read these thread a few times, but there are some many things already, that I have very confused (and have executed a lot of commands probably in a very wrong order, too).
I've noticed that the answer to have OF working on this version of Ubuntu is to mix some procedures from this forum with the other one.

I was wondering if someone could be kind enough to summarize all the steps one should do, in a very newbie way... :)

I'd appreciate that!

Thanks!

musahossein December 9, 2011 09:13

Quote:

Originally Posted by rosswell (Post 335256)
Hallo, everyone...

So, I'm completely new to OpenFOAM, and relative new to Linux as well (I work with Linux at the University, but all I have to do currently is to execute some commands and stuff)
I'm trying to install OpenFOAM on my desktop at home, and have Ubuntu 11.10 on it. I have read these thread a few times, but there are some many things already, that I have very confused (and have executed a lot of commands probably in a very wrong order, too).
I've noticed that the answer to have OF working on this version of Ubuntu is to mix some procedures from this forum with the other one.

I was wondering if someone could be kind enough to summarize all the steps one should do, in a very newbie way... :)

I'd appreciate that!

Thanks!

It would be helpful if you can copy and paste the error messages you incur when trying to install OpenFOAM on Ubuntu 11.10. Another way is to install the Ubuntu version that OpenFOAM is released on. Then install OpenFOAM. Then upgrade to Ubuntu 11.10. This is what I did, and was a much quicker and painless process.

Toorop December 9, 2011 10:43

Hi rosswell,

I have made a successful clean install of OF2.0.x in Ubuntu 11.10 at my home desktop recently. My mayor headache was related to ubuntu, after the updates it has made to the system after installation, I lost my input devices ... I had to revert my mouse to PS2 connection - Ubuntu doesn't fancy Asus motherboards, I guess.

Back to the topic: I get OpenFoam through git.
The steps I collected from this topic that should complement the official setup guide:
* make sure you install bison as well
* include this line - #include <stddef.h> - at the top of ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx file, where the h file inclusions reside
* there was another little thing that I cant remember, the installation of paraview stopped at about 10% with an error. I googled it and found that another paraview file needs an additional line. I just realized I installed ThirdParty-2.0.0 not the 2.0.1 version, so this may not arise with the newer one.

Just noticed that Nicolas collected these steps ... :o

Good luck!

Chavagnatze December 14, 2011 17:21

Quote:

Originally Posted by rosswell (Post 335256)
Hallo, everyone...

So, I'm completely new to OpenFOAM, and relative new to Linux as well (I work with Linux at the University, but all I have to do currently is to execute some commands and stuff)
I'm trying to install OpenFOAM on my desktop at home, and have Ubuntu 11.10 on it. I have read these thread a few times, but there are some many things already, that I have very confused (and have executed a lot of commands probably in a very wrong order, too).
I've noticed that the answer to have OF working on this version of Ubuntu is to mix some procedures from this forum with the other one.

I was wondering if someone could be kind enough to summarize all the steps one should do, in a very newbie way... :)

I'd appreciate that!

Thanks!

Follow these steps with either 11.04 or 11.10:

Press: CTRL+ATL+T to open a terminal.

1. Enter the following line:

sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu natty main > /etc/apt/sources.list.d/openfoam.list"

It will ask for your password. Type your password exactly as it is and press enter. It doesn't show what you are entering so don't be alarmed.

2. Next, enter this line:

sudo apt-get update

3. Enter this line next:

sudo apt-get install openfoam201

It will tell you how much disk space it will use and make references to the package security. Press the "Y" key and then press enter.

OpenFoam 2.0.1 will be installed. This process will take some time.

4. Next enter:

sudo apt-get install paraviewopenfoam3101

Press the "Y" key again and then press enter. This will install Paraview 3.10.1 which allows you to visualize your solutions, meshes, etc. This process may also require a large amount of time.

5. Next you must edit your bashrc file. To open it enter:

gedit ~/.bashrc

Scroll all the way to the bottom of the file and enter source /opt/openfoam201/etc/bashrc in a new line and save the file and exit Gedit.

6. Close the current terminal you have been using for all of the previous steps and press CTRL+ALT+T again to open another terminal. Enter:

icoFoam -help

An in-terminal help prompt for the OpenFoam icoFoam Solver should appear. OpenFoam is now running.

Follow the GETTING STARTED Section at the bottom of this page to copy the tutorial files to your home directory and get started with the tutorials.


All times are GMT -4. The time now is 15:23.