CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

OpenFOAM-2.0.x on Ubuntu 11.10

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree11Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2011, 17:24
Default
  #21
nsf
Senior Member
 
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 18
nsf is on a distinguished road
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
nsf is offline   Reply With Quote

Old   October 24, 2011, 21:30
Default ubuntu 11.10
  #22
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
musahossein is on a distinguished road
One workaround to this is to load Ubuntu 11.04 and install OpenFoam. Then upgrade to Ubuntu 11.10.
musahossein is offline   Reply With Quote

Old   October 25, 2011, 10:36
Default
  #23
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 21
marupio is on a distinguished road
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.
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   October 25, 2011, 12:07
Default
  #24
Member
 
Diego Angeli
Join Date: Mar 2009
Posts: 31
Rep Power: 17
diego_angeli is on a distinguished road
Quote:
Originally Posted by marupio View Post
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
diego_angeli is offline   Reply With Quote

Old   October 25, 2011, 15:09
Default
  #25
nsf
Senior Member
 
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 18
nsf is on a distinguished road
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?
nsf is offline   Reply With Quote

Old   October 25, 2011, 15:12
Default
  #26
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 21
marupio is on a distinguished road
I am trying it right now.
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   October 25, 2011, 16:27
Default
  #27
nsf
Senior Member
 
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 18
nsf is on a distinguished road
Hey!

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

I'll post back if I encounter any problem.

Nicolas
nsf is offline   Reply With Quote

Old   October 25, 2011, 17:25
Default
  #28
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 21
marupio is on a distinguished road
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.
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   October 26, 2011, 08:01
Default
  #29
Member
 
Diego Angeli
Join Date: Mar 2009
Posts: 31
Rep Power: 17
diego_angeli is on a distinguished road
works also for me, many thanks to mattijs!

regards

diego
diego_angeli is offline   Reply With Quote

Old   October 27, 2011, 00:48
Default
  #30
New Member
 
Chavagnatze's Avatar
 
Kyle Morse
Join Date: Apr 2011
Location: Georgia, USA
Posts: 6
Rep Power: 14
Chavagnatze is on a distinguished road
Quote:
Originally Posted by kpsl View Post
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.

Last edited by Chavagnatze; October 27, 2011 at 05:43.
Chavagnatze is offline   Reply With Quote

Old   October 27, 2011, 05:10
Default
  #31
New Member
 
Gustavo
Join Date: Feb 2010
Location: Curitiba - PR - Brasil
Posts: 16
Rep Power: 16
ghindi is on a distinguished road
It works now.
Thanks.

Best regards,
Gustavo.
ghindi is offline   Reply With Quote

Old   October 29, 2011, 19:50
Default
  #32
New Member
 
Emmanuel Turinetto
Join Date: Oct 2011
Posts: 1
Rep Power: 0
Erich Hartmman is on a distinguished road
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!
Erich Hartmman is offline   Reply With Quote

Old   October 29, 2011, 21:28
Default
  #33
New Member
 
Chavagnatze's Avatar
 
Kyle Morse
Join Date: Apr 2011
Location: Georgia, USA
Posts: 6
Rep Power: 14
Chavagnatze is on a distinguished road
Quote:
Originally Posted by Erich Hartmman View Post
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.

Chavagnatze is offline   Reply With Quote

Old   October 30, 2011, 05:10
Default
  #34
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

Kyle, you've got a typo:
Quote:
Originally Posted by Chavagnatze View Post

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
__________________

Last edited by wyldckat; November 23, 2011 at 16:25. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   October 30, 2011, 08:56
Default
  #35
nsf
Senior Member
 
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 18
nsf is on a distinguished road
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 View Post
[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.
nsf is offline   Reply With Quote

Old   November 23, 2011, 11:56
Default
  #36
New Member
 
Join Date: Nov 2011
Posts: 1
Rep Power: 0
fronzenlaf is on a distinguished road
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"
wyldckat likes this.
fronzenlaf is offline   Reply With Quote

Old   December 9, 2011, 05:34
Question Ok, so....
  #37
New Member
 
Join Date: Jun 2010
Posts: 8
Rep Power: 15
rosswell is on a distinguished road
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!
rosswell is offline   Reply With Quote

Old   December 9, 2011, 10:13
Default
  #38
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
musahossein is on a distinguished road
Quote:
Originally Posted by rosswell View Post
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.
rosswell likes this.
musahossein is offline   Reply With Quote

Old   December 9, 2011, 11:43
Default
  #39
Member
 
Tibor Nyers
Join Date: Jul 2010
Location: Hungary
Posts: 91
Rep Power: 16
Toorop is on a distinguished road
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 ...

Good luck!
rosswell likes this.
Toorop is offline   Reply With Quote

Old   December 14, 2011, 18:21
Default
  #40
New Member
 
Chavagnatze's Avatar
 
Kyle Morse
Join Date: Apr 2011
Location: Georgia, USA
Posts: 6
Rep Power: 14
Chavagnatze is on a distinguished road
Quote:
Originally Posted by rosswell View Post
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.
wyldckat and rosswell like this.
Chavagnatze is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM vs Ubuntu 10.10 64 bit vkrastev OpenFOAM Installation 12 April 23, 2011 11:14
Installing OpenFOAM 1.6 on Ubuntu 10.4 sda OpenFOAM Installation 5 May 27, 2010 21:19
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
OpenFOAM on non-English Ubuntu distribution fabian_roesler OpenFOAM 3 January 11, 2010 08:16
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25


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