Scotch cannot find gzclose

Hi, I just downloaded PyFR 2.0.1 and am trying to setup SCOTCH to partition my meshes. I am continuously running across an error for both the test case given: python -c “from ctypes import CDLL; CDLL(‘${PYFR_SCOTCH_LIBRARY_PATH}’)” and for the partition command: pyfr partition -p scotch 2 taylor-green2.pyfrm scotch-p/ . Here is the error: …/scotch-v7.0.4/lib/libscotch.so: undefined symbol: gzclose

I have tried editing the Makefile.inc file when making Scotch (I am on cluster computer I don’t have any sudo access) which looks like:

EXE             =
LIB             = .so
OBJ             = .o

MAKE            = make
AR              = gcc
ARFLAGS         = -shared -o
CAT             = cat
CCS             = gcc
CCP             = mpicc
CCD             = gcc
CFLAGS          = -O3 -fPIC -I/opt/mvapich2/intel/19.0/2.3.3/include -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_PTHREAD_AFFINITY_LINUX -DCOMMON_RANDOM_FIXED_SEED$
CLIBFLAGS	= -shared -fPIC
LDFLAGS         = -L/opt/mvapich2/intel/19.0/2.3.3/lib -L/usr/lib -L/usr/lib64 -lz -lm -lrt -pthread -Xlinker --no-as-needed
CP              = cp
FLEX            = flex
LN              = ln
MKDIR           = mkdir -p
MV              = mv
RANLIB          = echo
BISON           = bison

Any sort of help on this is very much appreciated. Thank you.

This post from Freddie might be useful: Running PyFR v2.0.0 in Parallel

You could also try Metis is Scotch doesn’t work.

That’s what I’ve veen using to set up Scotch. The only reason i am using Scotch is because METIS is not working either. I don’t understand how downloading either is so difficult. I’ve spent hours and hours trying to get either to work! Also with METIS, i cannot find METIS 5.2.x, only 5.1.x

This is a PyFR support form not a SCOTCH support forum; we did not develop SCOTCH or METIS nor their (substandard) build systems.

You will want to follow up with the SCOTCH developers for compilation support.

Regards, Freddie.

Okay, so if I wanted to try METIS again, where do I go to download 5.2.x. On their website and github I only see 5.1.x. Thank you again for your help.

Regards, Freddie.