-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error: zlib found but not working #15
Comments
You could try to execute: That should get cmake to recognize the right paths. However it would make more sense if you used something like Linuxbrew instead to manage dependencies manually (works without having admin rights). However we should not try to include gzstream if we could not find zlib. We'll fix that issue for the next release. (See soedinglab/MMseqs2@8199cca). |
I have created a conda environment and from there, installed zlib with linuxbrew. So I have erased the entire plass folder, re-cloned, and restarted the installation procedure, and now it is OpenMP that make an error:
|
Hi @milot-mirdita and thanks for the quick answer. I could work it out using the conda install, but for optimized performance, I would have preferred compiling, but in the process couldn't be found zlib.h or more precisley work with it (see other attempt below). Note that I can't use the pre-compiled executable, although I think I use a system on which that should be working:
For compiling, I have also tried with the flag
Thanks |
I fixed the broken include in the latest git commit. You have to also install a newer compiler to use Plass. Please also do that with linuxbrew ( Then you should be able to compile Plass with the following commands:
I also tried to reproduce the problem with a fresh linuxbrew installation, but I couldn't get zlib and libbz2 to work there either. So you might not be able to load compressed files. The easier path would probably be to ask whoever has an admin account on the system to install those two packages as system packages. I would still use the newer compiler provided by linuxbrew however. |
Expected Behavior
Compiling the code using cmake
Current Behavior
Not compiling successfully
stdin:
stdout:
Context
Providing context helps us come up with a solution and improve our documentation for the future.
zlib is installed in non standard location but it is found anyways, as well as running cmake without the flags
-DZLIB_LIBRARY=/home/flejzerowicz/softs/zlib-1.2.11/lib -DZLIB_INCLUDE_DIR=/home/flejzerowicz/softs/zlib-1.2.11/include
Your Environment
Include as many relevant details about the environment you experienced the bug in.
Git commit used: NA (because not installed successfully)
git clone https://github.com/soedinglab/plass.git
was run on July 25th 2019
For self-compiled and Homebrew: Cmake versions used: cmake 3.7.2
availble on the server through:
module load cmake_3.7.2
Operating system and version:
The text was updated successfully, but these errors were encountered: