plink-ng icon indicating copy to clipboard operation
plink-ng copied to clipboard

'zstd.h' file not found

Open astrovsky01 opened this issue 4 years ago • 2 comments

Every time I try to build 2.0, I get the error include/plink2_zstfile.h:32:12: fatal error: 'zstd.h' file not found

I installed zstd as was recommended on a previous issue, but still get the same issue whenever I run the build.sh script.

astrovsky01 avatar Aug 28 '20 21:08 astrovsky01

If you can't figure out how to make the zstd.h header visible to your compiler, you can add -DSTATIC_ZSTD to the build flags.

chrchang avatar Aug 28 '20 22:08 chrchang

@astrovsky01 I had the same problem and resolve it by exporting CPATH with the directory containing zstd.h, namely export CPATH=$PLINKREPO/zstd/lib where PLINKREPO contains the path to my local PLINK git repo. Actually, after that, the compilation complained about missing cblas.h, and then about not being able to link with lapack. To solved that, I installed blas-devel, lapack and lapack-devel, and then exported CPATH as export CPATH=$PLINKREPO/zstd/lib:/usr/include/cblas. I'm in Fedora, so the packages and path I mention above may differ in your distribution/OS.

eyherabh avatar Feb 23 '21 20:02 eyherabh