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

Problems to install openfoam-2.4.0 on Ubuntu 16.04.01LTS

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 19, 2017, 20:35
Default Problems to install openfoam-2.4.0 on Ubuntu 16.04.01LTS
  #1
New Member
 
Matheus Monjon
Join Date: Feb 2017
Location: São Paulo, Brazil
Posts: 8
Rep Power: 2
matheusmonjon is on a distinguished road
Hi, i'm a beginner on Ubuntu, and i'm using Ubuntu for CFD Researchs.

I'm trying to install openfoam-2.4.0 on my Ubuntu 16.04.01LTS by following this steps:

https://openfoam.org/download/2-4-0-ubuntu/

But, when i used this comand: sudo apt-get -y install openfoam240

This problem appeared for me:

root@USERNAME:/home/USER# sudo apt-get -y install openfoam240
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
E: Impossível encontrar o pacote openfoam240

My Ubuntu language is portuguese, but on the last line,
the terminal says that is IMPOSSIBLE TO FIND OPENFOAM240 PACKAGE

I followed all steps, but always appeared this error.

Please, someone help me, I really need to fix this to start my Research.
matheusmonjon is offline   Reply With Quote

Old   February 20, 2017, 18:43
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,020
Blog Entries: 39
Rep Power: 109
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Quick answer: The page specifically states that the only supported Ubuntu versions are:
Quote:
  • 14.04 LTS, codename trusty
  • 15.04, codename vivid
If you want to use OpenFOAM 2.4.0 on Ubuntu 16.04, you will need to build from source code, as instructed in either one of the following pages:
__________________
wyldckat is offline   Reply With Quote

Old   February 22, 2017, 00:52
Default
  #3
New Member
 
Matheus Monjon
Join Date: Feb 2017
Location: São Paulo, Brazil
Posts: 8
Rep Power: 2
matheusmonjon is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: The page specifically states that the only supported Ubuntu versions are:


If you want to use OpenFOAM 2.4.0 on Ubuntu 16.04, you will need to build from source code, as instructed in either one of the following pages:
Thanks, this fix my problems with the correct installation.

But, paraFoam is not running or not installed.

How can I install paraView-4.1?

____________

When run "paraFoam" to solving my case "cavity", this appeared to me:

Code:
 matheus@matheus-X550LN:~/OpenFOAM/matheus-2.4.0/run/tutorials/cavity$ paraFoam

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers
./Allwclean
./Allwmake

I tryed to fallow this steps, but this message appeared to me:
Code:
matheus@matheus-X550LN:~$ cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers

matheus@matheus-X550LN:~/OpenFOAM/OpenFOAM-2.4.0/applications/utilities/postProcessing/graphics/PV4Readers$ ./Allwclean
+ wclean libso vtkPV4Readers
wclean vtkPV4Readers
+ PV4blockMeshReader/Allwclean
+ rm -f /home/matheus/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/libPV4blockMeshReader*
+ rm -rf PV4blockMeshReader/Make
+ wclean libso vtkPV4blockMesh
wclean vtkPV4blockMesh
+ PV4FoamReader/Allwclean
+ rm -f /home/matheus/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/libPV4FoamReader*
+ rm -rf PV4FoamReader/Make
+ wclean libso vtkPV4Foam
wclean vtkPV4Foam

matheus@matheus-X550LN:~/OpenFOAM/OpenFOAM-2.4.0/applications/utilities/postProcessing/graphics/PV4Readers$ ./Allwmake
ERROR: ParaView not found in /home/matheus/OpenFOAM/ThirdParty-2.4.0/platforms/linux64Gcc/ParaView-4.1.0
How can I download ParaView-4.1.0 and how I install it?

I need to fix it for my research. I hope you will help me. Thanks

Last edited by wyldckat; March 25, 2017 at 16:04. Reason: merged posts done a few minutes apart and ordered them to keep it on topic
matheusmonjon is offline   Reply With Quote

Old   February 25, 2017, 15:46
Default
  #4
Member
 
João Ferreira
Join Date: Nov 2014
Location: Braga, Portugal
Posts: 53
Rep Power: 4
jmdf is on a distinguished road
Hi,

You need to repeat the step where it installs paraview, it might have failed when you did it the last time:
Code:
sed -i -e 's=//#define GLX_GLXEXT_LEGACY=#define GLX_GLXEXT_LEGACY=' \
  ParaView-4.1.0/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx
 
cd $WM_THIRD_PARTY_DIR/ParaView-4.1.0
 
wget http://www.paraview.org/pipermail/paraview/attachments/20140210/464496cc/attachment.bin -O Fix.patch
patch -p1 < Fix.patch
 
cd VTK
wget https://github.com/gladk/VTK/commit/ef22d3d69421581b33bc0cd94b647da73b61ba96.patch -O Fix2.patch
patch -p1 < Fix2.patch
 
cd ../..

#this will take a while... somewhere between 30 minutes to 2 hours or more
./makeParaView4 -python -mpi -python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 > log.makePV 2>&1
If this doesn't help, give more information about your environment, such as OS you are using, etc.
jmdf is offline   Reply With Quote

Reply

Tags
install, openfoam 2.4.0 help, packages, ubuntu 16.04 lts

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems compiling custom interPhaseChangeFoam with OpenFOAM 2.4.0 abdoli OpenFOAM Programming & Development 1 October 6, 2016 08:46
Problems after 'make install' command in Ubuntu Sparsh SU2 Installation 2 October 30, 2015 15:37
Problems installing OpenFOAM 2.3.1 in Ubuntu 12.04 masoudshao OpenFOAM Installation 3 April 23, 2015 16:01
Problems installing SVN in Ubuntu (for later installing PyFoam for OpenFOAM) immortality Lounge 2 May 24, 2014 03:05
How to Install Openfoam 2.2.2 in Ubuntu 14.04? satty_00 OpenFOAM Installation 7 May 18, 2014 10:04


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