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

[OpenFOAM.org] OpenFOAM 2.4 in Linux Mint 17.2: compiling ParaView with python-support

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

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 3, 2015, 02:15
Default OpenFOAM 2.4 in Linux Mint 17.2: compiling ParaView with python-support
  #1
Member
 
sean read
Join Date: Sep 2014
Location: Melbourne, Australia
Posts: 41
Rep Power: 11
seanread is on a distinguished road
Hey Guys,

Okay, maybe I'm just a little thick, but I can't seem to be able to get paraview to compile with python support.

I go in to the makeParaView make file in my third party directory of openFoam, change with python to true, added various places that seemed correct for the library, for example /usr/lib/python2.7/, and when I run the make file I get back

No python headers found in /usr/include/python/usr/lib/python2.7/
Please install python headers or deactivate
python support by not using the -python option

Now I don't know if I have chosen the correct folder for python lib, I definitely can't see a python2.7.lib file in there, which suggests it's probably wrong (how, by the way, do I find this path?) However the path in the error message seems to be showing /usr/include/the path I wrote, which seems strange to me,

Can someone help me with this?
seanread is offline   Reply With Quote

Old   September 3, 2015, 17:20
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
Greetings seanread,

Knowing which Linux Distribution and which OpenFOAM version you're using would make it a lot easier to help you.

Without knowing which one you're using, I can at least suggest you try following the instructions provided here: http://openfoamwiki.net/index.php/In...u#Ubuntu_15.04 - it's for OpenFOAM 2.4.0 and Ubuntu 15.04, which builds ParaView with Python and MPI support.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 3, 2015, 23:03
Default
  #3
Member
 
sean read
Join Date: Sep 2014
Location: Melbourne, Australia
Posts: 41
Rep Power: 11
seanread is on a distinguished road
Hey Bruno, thanks for getting back to me, I'm using open foam 2.4 and Linux mint 17.2

So I originally compiled the repository version following the instructions here http://www.openfoam.org/download/git.php, and am now trying to recompile with python support, sorry it seems I didn't clearly explain the background to my problem...

Looking at the instructions on the wiki I should be able to compile except that I'm not sure on the python lib path, how do I check this?

Last edited by wyldckat; September 4, 2015 at 18:53. Reason: merged posts that were a few of hours apart
seanread is offline   Reply With Quote

Old   September 4, 2015, 18:57
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
Hi Sean,

Linux Mint 17.2 seems to be derived from Ubuntu 14.04, and since you're using 2.4.x, then the following instructions should be what you're looking for: http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04

From the instructions, you need to at least do these steps:
  1. Install the Python packages:
    Code:
    sudo apt-get install python python-dev
  2. Then follow the instructions given in step #9, including all 5 sub-steps.
Best regards,
Bruno
seanread and lukasf like this.
__________________
wyldckat is offline   Reply With Quote

Old   September 5, 2015, 23:44
Default
  #5
Member
 
sean read
Join Date: Sep 2014
Location: Melbourne, Australia
Posts: 41
Rep Power: 11
seanread is on a distinguished road
Thanks Bruno that worked perfectly, now all is running smooth!
seanread is offline   Reply With Quote

Reply

Tags
paraview 4.1, python

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
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 15:54
[General] Using Python in Openfoam in-built paraFoam (paraView 3.8.0) Man Yue ParaView 6 November 30, 2012 06:57
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 7 January 19, 2010 15:39
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 7 July 30, 2009 03:14


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