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.org] OpenFOAM 3.0.1 installation on Ubuntu 14.04 (https://www.cfd-online.com/Forums/openfoam-installation/189232-openfoam-3-0-1-installation-ubuntu-14-04-a.html)

Hrushi June 16, 2017 03:57

OpenFOAM 3.0.1 installation on Ubuntu 14.04
 
1 Attachment(s)
Hi

I am trying to install OpenFOAM-3.0.1 on Ubuntu 14.04 64 bit system. I am following instructions written here

But I am getting error at step 9, i.e., when building thirdParty packages. There is error when building CGAL and scotch. I have gone through this page

The first error related to scotch can be ignored according to above link. But I am clueless about the second error which appears while building CGAL. I have attached the log file to this post.

System details:
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
cmake version 2.8.12.2
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
QMake version 2.01a
Using Qt version 4.8.6 in /usr/lib/x86_64-linux-gnu
mpirun (Open MPI) 1.6.5

Can anyone help me out?

Hrushi

wyldckat June 25, 2017 14:49

Quick answer: Please run the following commands:
Code:

cd $WM_THIRD_PARTY_DIR
sed -e 's/\(Release\)/\1 -DWITH_CGAL_ImageIO=OFF/' makeCGAL

Then go back to step #9 and try again.

If this works, I'll revise the instructions on the wiki and report this to the bug tracker.

Hrushi June 26, 2017 06:54

3 Attachment(s)
Hi Bruno,

Code:

cd $WM_THIRD_PARTY_DIR
sed -e 's/\(Release\)/\1 -DWITH_CGAL_ImageIO=OFF/' makeCGAL

Yes, this did work. ThirdParty libraries were succesfully built. (log.make.gz)

Then I proceeded with further installation.

The error came while building paraVIEW with python support. I have attached the log file. (log.makePV.gz)

However, I went ahead and built PARAVIEW without python support by removing -python and -pyhton-lib options in command at step 10. (log.makePVwp.gz)

ParaView got successfully built without python support.

Building of OpenFOAM went without any glitch.

Thanks a lot for your help.

Hrushi

wyldckat July 2, 2017 19:52

Quick answers:
Quote:

Originally Posted by Hrushi (Post 654870)
The error came while building paraVIEW with python support. I have attached the log file. (log.makePV.gz)

The error message claims that Python 2.7 is not installed... what do the following commands give you?
Code:

python --version
which python
ls -l /usr/lib/x86_64-linux-gnu/libpython*.so*

Quote:

Originally Posted by Hrushi (Post 654870)
However, I went ahead and built PARAVIEW without python support by removing -python and -pyhton-lib options in command at step 10. (log.makePVwp.gz)

ParaView got successfully built without python support.

Building of OpenFOAM went without any glitch.

Python is only needed if you want to record/run macros/scripts within ParaView. It can be useful, once you start getting familiar with it or feel the need to have scripting capabilities.

Hrushi July 3, 2017 03:08

Dear Bruno,

Quote:

The error message claims that Python 2.7 is not installed... what do the following commands give you?
These are the answers.

Code:

python --version
Python 2.7.6

Code:

which python
/usr/bin/python

Code:

ls -l /usr/lib/x86_64-linux-gnu/libpython*.so*
lrwxrwxrwx 1 root root      19 Oct 27  2016 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1 -> libpython2.7.so.1.0
-rw-r--r-- 1 root root 3480816 Oct 27  2016 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
lrwxrwxrwx 1 root root      20 Nov 17  2016 /usr/lib/x86_64-linux-gnu/libpython3.4m.so.1 -> libpython3.4m.so.1.0
-rw-r--r-- 1 root root 4297560 Nov 17  2016 /usr/lib/x86_64-linux-gnu/libpython3.4m.so.1.0

Quote:

Python is only needed if you want to record/run macros/scripts within ParaView. It can be useful, once you start getting familiar with it or feel the need to have scripting capabilities.
Yes, I would like to have this useful functionality.

Thanks

Hrushi

wyldckat July 8, 2017 16:19

Quick answer: I didn't notice this before, but it looks like the error is due to the package "libpython2.7-dev" not being installed in your system. I don't know how it didn't get installed, but please confirm first if the following command:
Code:

ls -l /usr/include/python2.7/Python.h
gives you this:
Code:

-rw-r--r-- 1 root root 4329 Out 26  2016 /usr/include/python2.7/Python.h
If it doesn't or at least it doesn't give something similar, then it's because the package "libpython2.7-dev" is not installed.

If it does, then it looks like the installation is somehow damaged.

To install the package:
Code:

sudo apt-get install libpython2.7-dev
To repair the installation:
Code:

sudo apt-get install --reinstall  libpython2.7-dev

Hrushi July 8, 2017 19:47

Hi Bruno,

Code:

sudo apt-get install --reinstall  libpython2.7-dev
Yes, after repairing the installtion of python, I was able to build Paraview with python support too.

Thanks

Hrushi


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