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

[OpenFOAM.org] 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 Search this Thread 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: 9
Rep Power: 5
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,958
Blog Entries: 45
Rep Power: 122
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
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: 9
Rep Power: 5
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: 8
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 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.org] error in installation OpenFOAM 2.4.0 in Ubuntu 14.04 alimea OpenFOAM Installation 2 August 9, 2018 08:12
[OpenFOAM.org] Problems installing OpenFOAM 2.3.1 in Ubuntu 12.04 masoudshao OpenFOAM Installation 10 August 9, 2018 07:13
[OpenFOAM.org] Trying to install openfoam 2.4.0 on fedora 26 harsha_kulkarni OpenFOAM Installation 1 August 18, 2017 17:31
[OpenFOAM.org] Problems installing OpenFOAM 2.3.0 on Ubuntu 12.04 arieljeds OpenFOAM Installation 6 August 19, 2015 08:39
Problems installing SVN in Ubuntu (for later installing PyFoam for OpenFOAM) immortality Lounge 2 May 24, 2014 04:05


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