plink-ng
plink-ng copied to clipboard
'zstd.h' file not found
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.
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.
@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.