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

[OpenFOAM.com] ptscotch.h file cannot be found error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 26, 2020, 18:02
Default ptscotch.h file cannot be found error
  #1
New Member
 
Earl Wilks
Join Date: May 2016
Posts: 3
Rep Power: 10
ewlks is on a distinguished road
Hi Folks,


I'm trying to compile OpenFOAM v1806+ on Ubuntu 20.04 and I'm running into an issue with the compilation where I get the following error:

Code:
wclean ptscotchDecomp
wmake  ptscotchDecomp
wmake ptscotchDecomp
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file ptscotchDecomp.C
wmkdepend: could not open 'ptscotch.h' for source file 'ptscotchDecomp.C': No such file or directory
g++ -std=c++11 -m64 -DOPENFOAM=1806 -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 -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include -pthread -I/home/milo/OpenFOAM/ThirdParty-v1806/platforms/linux64GccDPInt32/scotch_6.0.3/include -I/home/milo/OpenFOAM/ThirdParty-v1806/platforms/linux64GccDPInt32/scotch_6.0.3/include/openmpi-system -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/milo/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude -I/home/milo/OpenFOAM/OpenFOAM-v1806/src/OSspecific/POSIX/lnInclude   -fPIC -c ptscotchDecomp.C -o /home/milo/OpenFOAM/OpenFOAM-v1806/build/linux64GccDPInt32OptSYSTEMOPENMPI/src/parallel/decompose/ptscotchDecomp/ptscotchDecomp.o
ptscotchDecomp.C:214:10: fatal error: ptscotch.h: No such file or directory
  214 | #include "ptscotch.h"
      |          ^~~~~~~~~~~~
compilation terminated.
make: *** [/home/milo/OpenFOAM/OpenFOAM-v1806/wmake/rules/General/transform:35: /home/milo/OpenFOAM/OpenFOAM-v1806/build/linux64GccDPInt32OptSYSTEMOPENMPI/src/parallel/decompose/ptscotchDecomp/ptscotchDecomp.o] Error 1
Does anyone have any idea what might be going on here? ptscotch.h does in fact exist on the computer. They were installed using the libptscotch-dev package and are located at:

Code:
libptscotch-dev: /usr/include/scotch-int32/ptscotch.h
libptscotch-dev: /usr/include/scotch-int64/ptscotch.h
libptscotch-dev: /usr/include/scotch-long/ptscotch.h
libptscotch-dev: /usr/include/scotch/ptscotch.h
I tried adding the above directories to the path which made no difference. A log file is attached.

Thanks in advance for any suggestions or advice!
Attached Files
File Type: gz log2.make.gz (6.4 KB, 5 views)
ewlks is offline   Reply With Quote

Old   October 2, 2020, 10:46
Default
  #2
New Member
 
R Kyle
Join Date: Feb 2017
Location: Scotland
Posts: 11
Rep Power: 9
RKyle is on a distinguished road
I'm having a similar issue with installing OpenFOAM v6 on Ubuntu 20.04 for Windows. Did you manage to get a solution to this?
RKyle is offline   Reply With Quote

Old   October 3, 2020, 10:45
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
OpenFOAM-v1806 is two years old!
In more recent versions, the handling of dpkg-architecture has greatly improved.
IMO the easier way is to install the precompiled pack for 1912 or 2006.

https://develop.openfoam.com/Develop...ompiled/debian
olesen is offline   Reply With Quote

Old   October 5, 2020, 06:05
Default
  #4
New Member
 
R Kyle
Join Date: Feb 2017
Location: Scotland
Posts: 11
Rep Power: 9
RKyle is on a distinguished road
Hi Earl,

I've found this link useful, the problem might be a newer version of mpi. Maybe worth having a look!

https://bugs.openfoam.org/view.php?id=3216
RKyle is offline   Reply With Quote

Old   October 5, 2020, 14:40
Default
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by RKyle View Post
Hi Earl,

I've found this link useful, the problem might be a newer version of mpi. Maybe worth having a look!

https://bugs.openfoam.org/view.php?id=3216
Different problem
olesen is offline   Reply With Quote

Reply


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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 07:47
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 08:24
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46


All times are GMT -4. The time now is 08:45.