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

[OpenFOAM.org] error installation openfoam for ptscotchDecomp.C

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By Sergeyevichsky

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2017, 03:49
Default error installation openfoam for ptscotchDecomp.C
  #1
New Member
 
LintaoZhong
Join Date: Mar 2017
Location: Chengdu,China
Posts: 13
Rep Power: 9
Sergeyevichsky is on a distinguished road
Hi
I am trying to install OpenFOAM-3.0.X on ubuntu 14.04,but it noted compilation terminated. it seems the ptscotchDecomp.C has some problem ,but I dont sure .Specific code has been written below.
.................................................. .....................................
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file ptscotchDecomp.C
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/include -I/home/zlt001/OpenFOAM/ThirdParty-3.0.x/platforms/linux64GccInt32/scotch_6.0.3/include/openmpi-system -I/usr/include/scotch -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/zlt001/OpenFOAM/OpenFOAM-3.0.x/src/OpenFOAM/lnInclude -I/home/zlt001/OpenFOAM/OpenFOAM-3.0.x/src/OSspecific/POSIX/lnInclude -fPIC -c ptscotchDecomp.C -o /home/zlt001/OpenFOAM/OpenFOAM-3.0.x/platforms/linux64GccDPInt32OptSYSTEMOPENMPI/src/parallel/decompose/ptscotchDecomp/ptscotchDecomp.o
ptscotchDecomp.C:127:17: fatal error: mpi.h: No such file or directory
#include <mpi.h>
^
compilation terminated.
make: *** [/home/zlt001/OpenFOAM/OpenFOAM-3.0.x/platforms/linux64GccDPInt32OptSYSTEMOPENMPI/src/parallel/decompose/ptscotchDecomp/ptscotchDecomp.o] Error 1
Sergeyevichsky is offline   Reply With Quote

Old   March 26, 2017, 16:50
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Sergeyevichsky,

I don't know if you have solved this problem or not, but it should be because Open-MPI was not properly picked up by OpenFOAM's environment loading scripts. If you follow the instructions given here: https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04 - it should be possible to build OpenFOAM 3.0.x on Ubuntu 14.04.

The main details that might be missing from your installation:
  • Ubuntu's Open-MPI packages should be installed, possibly with the following command:
    Code:
    sudo apt-get install libopenmpi-dev openmpi-bin
  • Step #6 on the wiki page, section "Ubuntu 14.04", has the commands needed for enforcing that the correct MPI installation is found by OpenFOAM's scripts.
Best regards,
Bruno
Tolga KURUMUS likes this.
__________________
wyldckat is offline   Reply With Quote

Old   March 29, 2017, 06:35
Default
  #3
New Member
 
LintaoZhong
Join Date: Mar 2017
Location: Chengdu,China
Posts: 13
Rep Power: 9
Sergeyevichsky is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Sergeyevichsky,

I don't know if you have solved this problem or not, but it should be because Open-MPI was not properly picked up by OpenFOAM's environment loading scripts. If you follow the instructions given here: https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04 - it should be possible to build OpenFOAM 3.0.x on Ubuntu 14.04.

The main details that might be missing from your installation:
  • Ubuntu's Open-MPI packages should be installed, possibly with the following command:
    Code:
    sudo apt-get install libopenmpi-dev openmpi-bin
  • Step #6 on the wiki page, section "Ubuntu 14.04", has the commands needed for enforcing that the correct MPI installation is found by OpenFOAM's scripts.
Best regards,
Bruno
Hi Bruno
Thanks for your help, I have solved this problem by installing Ubuntu 16.04.2, but I'm still very grateful to your help.
Sincerely
Lintao
wyldckat likes this.
Sergeyevichsky is offline   Reply With Quote

Reply

Tags
openfoam, ubuntu 14.04


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
OpenFOAM Foundation releases OpenFOAMŪ 3.0.0 CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 1 November 7, 2015 16:16
OpenFOAM Foundation Releases OpenFOAM v2.3.0 opencfd OpenFOAM Announcements from OpenFOAM Foundation 3 December 23, 2014 04:43
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 04:52
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07


All times are GMT -4. The time now is 09:06.