# Scotch cannot find gzclose

**URL:** <https://pyfr.discourse.group/t/scotch-cannot-find-gzclose/1096>\
**Category:** Just Starting\
**Created:** [23 May 2024 06:26 UTC](https://pyfr.discourse.group/t/scotch-cannot-find-gzclose/1096 "2024-05-23T06:26:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pyfr\_starting\_man](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@pyfr\_starting\_man](https://pyfr.discourse.group/u/pyfr_starting_man)\
**Post date:** [23 May 2024 06:26 UTC](https://pyfr.discourse.group/t/scotch-cannot-find-gzclose/1096/1 "2024-05-23T06:26:36Z")

</div>

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:

```Makefile
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.

---

<div class="post-metadata">

**Author:** ![p.vincent](https://yyz2.discourse-cdn.com/free1/user_avatar/pyfr.discourse.group/p.vincent/32/225_2.png) [@p.vincent](https://pyfr.discourse.group/u/p.vincent)\
**Post date:** [23 May 2024 08:48 UTC](https://pyfr.discourse.group/t/scotch-cannot-find-gzclose/1096/2 "2024-05-23T08:48:01Z")

</div>

This post from Freddie might be useful: [Running PyFR v2.0.0 in Parallel](https://pyfr.discourse.group/t/running-pyfr-v2-0-0-in-parallel/1066)

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

---

<div class="post-metadata">

**Author:** ![pyfr\_starting\_man](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@pyfr\_starting\_man](https://pyfr.discourse.group/u/pyfr_starting_man)\
**Post date:** [23 May 2024 14:52 UTC](https://pyfr.discourse.group/t/scotch-cannot-find-gzclose/1096/3 "2024-05-23T14:52:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)\
**Post date:** [23 May 2024 14:58 UTC](https://pyfr.discourse.group/t/scotch-cannot-find-gzclose/1096/4 "2024-05-23T14:58:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pyfr\_starting\_man](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@pyfr\_starting\_man](https://pyfr.discourse.group/u/pyfr_starting_man)\
**Post date:** [23 May 2024 15:15 UTC](https://pyfr.discourse.group/t/scotch-cannot-find-gzclose/1096/5 "2024-05-23T15:15:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)\
**Post date:** [23 May 2024 15:18 UTC](https://pyfr.discourse.group/t/scotch-cannot-find-gzclose/1096/6 "2024-05-23T15:18:37Z")

</div>

> **[Release v5.2.1 · KarypisLab/METIS](https://github.com/KarypisLab/METIS/releases/tag/v5.2.1)**
>
> fixing version numbers

Regards, Freddie.
