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

[OpenFOAM.org] OpenFOAM 3.0.1 installation on Ubuntu 14.04

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

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By Hrushi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2017, 03:57
Default OpenFOAM 3.0.1 installation on Ubuntu 14.04
  #1
Member
 
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 15
Hrushi is on a distinguished road
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
Attached Files
File Type: gz log.make.gz (2.6 KB, 5 views)
Hrushi is offline   Reply With Quote

Old   June 25, 2017, 14:49
Default
  #2
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
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 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   June 26, 2017, 06:54
Default
  #3
Member
 
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 15
Hrushi is on a distinguished road
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
Attached Files
File Type: gz log.make.gz (49.4 KB, 0 views)
File Type: gz log.makePV.gz (7.0 KB, 2 views)
File Type: gz log.makePVwp.gz (129.9 KB, 0 views)
Hrushi is offline   Reply With Quote

Old   July 2, 2017, 19:52
Default
  #4
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
Quick answers:
Quote:
Originally Posted by Hrushi View Post
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 View Post
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.
__________________
wyldckat is offline   Reply With Quote

Old   July 3, 2017, 03:08
Default
  #5
Member
 
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 15
Hrushi is on a distinguished road
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
Hrushi is offline   Reply With Quote

Old   July 8, 2017, 16:19
Default
  #6
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
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
wyldckat is offline   Reply With Quote

Old   July 8, 2017, 19:47
Default
  #7
Member
 
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 15
Hrushi is on a distinguished road
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
wyldckat likes this.
Hrushi 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 v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
[OpenFOAM.org] OpenFOAM 2.4.x installation script for ubuntu p0kerus OpenFOAM Installation 0 June 1, 2015 16:52
[OpenFOAM.org] Installation of OpenFOAM 2.3.1 on Ubuntu 14.04 stephie OpenFOAM Installation 5 February 14, 2015 12:05
Problem? with Installation of OpenFOAM 2.1.0 on to Ubuntu 10.4.4 VirtualBox Stubby OpenFOAM Installation 8 March 5, 2012 16:12
openFOAM installation in ubuntu 11.10 kirubhakaran OpenFOAM Installation 5 February 17, 2012 03:16


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