|
[Sponsors] |
[OpenFOAM.org] OpenFOAM 3.0.1 installation on Ubuntu 14.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 16, 2017, 03:57 |
OpenFOAM 3.0.1 installation on Ubuntu 14.04
|
#1 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
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 |
|
June 25, 2017, 14:49 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: Please run the following commands:
Code:
cd $WM_THIRD_PARTY_DIR sed -e 's/\(Release\)/\1 -DWITH_CGAL_ImageIO=OFF/' makeCGAL If this works, I'll revise the instructions on the wiki and report this to the bug tracker.
__________________
|
|
June 26, 2017, 06:54 |
|
#3 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Hi Bruno,
Code:
cd $WM_THIRD_PARTY_DIR sed -e 's/\(Release\)/\1 -DWITH_CGAL_ImageIO=OFF/' makeCGAL 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 |
|
July 2, 2017, 19:52 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answers:
Quote:
Code:
python --version which python ls -l /usr/lib/x86_64-linux-gnu/libpython*.so*
__________________
|
||
July 3, 2017, 03:08 |
|
#5 | ||
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Dear Bruno,
Quote:
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:
Thanks Hrushi |
|||
July 8, 2017, 16:19 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 Code:
-rw-r--r-- 1 root root 4329 Out 26 2016 /usr/include/python2.7/Python.h If it does, then it looks like the installation is somehow damaged. To install the package: Code:
sudo apt-get install libpython2.7-dev Code:
sudo apt-get install --reinstall libpython2.7-dev |
|
July 8, 2017, 19:47 |
|
#7 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Hi Bruno,
Code:
sudo apt-get install --reinstall libpython2.7-dev Thanks Hrushi |
|
|
|
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 |