Ubuntu Bionic 18.04 — fatal error: zlib.h: No such file or directory #include












0















I am relatively new to Ubuntu. I have set up a Ubuntu 18.04 subsystem on my Windows 10 PC for bioinformatics applications.



During multiple application installations, I have received the following error after running ./configure & make:



bgzf.h:33:10: fatal error: zlib.h: No such file or directory
#include <zlib.h>


The configure command returns:



checking for ZLIB... yes


Whereis returns:



zlib: /usr/local/bin/zlib.h /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz


echo | gcc -E -v - returns:



Reading specs from /home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/specs
COLLECT_GCC=gcc
Target: x86_64-conda_cos6-linux-gnu
Configured with: /home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=x86_64-conda_cos6-linux-gnu --prefix=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built --with-sysroot=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built/x86_64-conda_cos6-linux-gnu/sysroot --enable-languages=c,c++,fortran,objc,obj-c++ --with-pkgversion='crosstool-NG 1.23.0.449-a04d0' --enable-__cxa_atexit --disable-libmudflap --enable-libgomp --disable-libssp --enable-libquadmath --enable-libquadmath-support --enable-libsanitizer --enable-libmpx --with-gmp=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --with-mpfr=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --with-mpc=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --with-isl=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --enable-lto --enable-threads=posix --enable-target-optspace --enable-plugin --enable-gold --disable-nls --disable-multilib --with-local-prefix=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built/x86_64-conda_cos6-linux-gnu/sysroot --enable-long-long --enable-default-pie
Thread model: posix
gcc version 7.3.0 (crosstool-NG 1.23.0.449-a04d0)
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64'
/home/USER/anaconda3/bin/../libexec/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/cc1 -E -quiet -v -iprefix /home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/ -isysroot /home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot - -mtune=generic -march=x86-64
ignoring duplicate directory "/home/USER/anaconda3/bin/../lib/gcc/../../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include"
ignoring nonexistent directory "/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built/x86_64-conda_cos6-linux-gnu/sysroot/include"
ignoring duplicate directory "/home/USER/anaconda3/bin/../lib/gcc/../../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include-fixed"
ignoring duplicate directory "/home/USER/anaconda3/bin/../lib/gcc/../../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include
/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include-fixed
/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/include
/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
COMPILER_PATH=/home/USER/anaconda3/bin/../libexec/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/:/home/USER/anaconda3/bin/../libexec/gcc/:/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/
LIBRARY_PATH=/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/:/home/USER/anaconda3/bin/../lib/gcc/:/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/lib/../lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/lib/../lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/../lib/:/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64'


Other posts have suggested a zlib-dev installation, already have the latest zlib1g-dev,version (1:1.2.11.dfsg-0ubuntu2).



Could you please advise on the best route to overcome this error? Thank you so much.










share|improve this question









New contributor




lager is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Well, gcc would normally be able to find headers in /usr/include - unless it's configured differently for WSL? It might be helpful to edit your question to include the output of command echo | gcc -E -v - (or at least the section of it begining #include "..." search starts here)

    – steeldriver
    Mar 11 at 21:29
















0















I am relatively new to Ubuntu. I have set up a Ubuntu 18.04 subsystem on my Windows 10 PC for bioinformatics applications.



During multiple application installations, I have received the following error after running ./configure & make:



bgzf.h:33:10: fatal error: zlib.h: No such file or directory
#include <zlib.h>


The configure command returns:



checking for ZLIB... yes


Whereis returns:



zlib: /usr/local/bin/zlib.h /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz


echo | gcc -E -v - returns:



Reading specs from /home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/specs
COLLECT_GCC=gcc
Target: x86_64-conda_cos6-linux-gnu
Configured with: /home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=x86_64-conda_cos6-linux-gnu --prefix=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built --with-sysroot=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built/x86_64-conda_cos6-linux-gnu/sysroot --enable-languages=c,c++,fortran,objc,obj-c++ --with-pkgversion='crosstool-NG 1.23.0.449-a04d0' --enable-__cxa_atexit --disable-libmudflap --enable-libgomp --disable-libssp --enable-libquadmath --enable-libquadmath-support --enable-libsanitizer --enable-libmpx --with-gmp=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --with-mpfr=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --with-mpc=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --with-isl=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --enable-lto --enable-threads=posix --enable-target-optspace --enable-plugin --enable-gold --disable-nls --disable-multilib --with-local-prefix=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built/x86_64-conda_cos6-linux-gnu/sysroot --enable-long-long --enable-default-pie
Thread model: posix
gcc version 7.3.0 (crosstool-NG 1.23.0.449-a04d0)
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64'
/home/USER/anaconda3/bin/../libexec/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/cc1 -E -quiet -v -iprefix /home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/ -isysroot /home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot - -mtune=generic -march=x86-64
ignoring duplicate directory "/home/USER/anaconda3/bin/../lib/gcc/../../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include"
ignoring nonexistent directory "/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built/x86_64-conda_cos6-linux-gnu/sysroot/include"
ignoring duplicate directory "/home/USER/anaconda3/bin/../lib/gcc/../../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include-fixed"
ignoring duplicate directory "/home/USER/anaconda3/bin/../lib/gcc/../../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include
/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include-fixed
/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/include
/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
COMPILER_PATH=/home/USER/anaconda3/bin/../libexec/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/:/home/USER/anaconda3/bin/../libexec/gcc/:/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/
LIBRARY_PATH=/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/:/home/USER/anaconda3/bin/../lib/gcc/:/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/lib/../lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/lib/../lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/../lib/:/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64'


Other posts have suggested a zlib-dev installation, already have the latest zlib1g-dev,version (1:1.2.11.dfsg-0ubuntu2).



Could you please advise on the best route to overcome this error? Thank you so much.










share|improve this question









New contributor




lager is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Well, gcc would normally be able to find headers in /usr/include - unless it's configured differently for WSL? It might be helpful to edit your question to include the output of command echo | gcc -E -v - (or at least the section of it begining #include "..." search starts here)

    – steeldriver
    Mar 11 at 21:29














0












0








0








I am relatively new to Ubuntu. I have set up a Ubuntu 18.04 subsystem on my Windows 10 PC for bioinformatics applications.



During multiple application installations, I have received the following error after running ./configure & make:



bgzf.h:33:10: fatal error: zlib.h: No such file or directory
#include <zlib.h>


The configure command returns:



checking for ZLIB... yes


Whereis returns:



zlib: /usr/local/bin/zlib.h /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz


echo | gcc -E -v - returns:



Reading specs from /home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/specs
COLLECT_GCC=gcc
Target: x86_64-conda_cos6-linux-gnu
Configured with: /home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=x86_64-conda_cos6-linux-gnu --prefix=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built --with-sysroot=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built/x86_64-conda_cos6-linux-gnu/sysroot --enable-languages=c,c++,fortran,objc,obj-c++ --with-pkgversion='crosstool-NG 1.23.0.449-a04d0' --enable-__cxa_atexit --disable-libmudflap --enable-libgomp --disable-libssp --enable-libquadmath --enable-libquadmath-support --enable-libsanitizer --enable-libmpx --with-gmp=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --with-mpfr=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --with-mpc=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --with-isl=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --enable-lto --enable-threads=posix --enable-target-optspace --enable-plugin --enable-gold --disable-nls --disable-multilib --with-local-prefix=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built/x86_64-conda_cos6-linux-gnu/sysroot --enable-long-long --enable-default-pie
Thread model: posix
gcc version 7.3.0 (crosstool-NG 1.23.0.449-a04d0)
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64'
/home/USER/anaconda3/bin/../libexec/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/cc1 -E -quiet -v -iprefix /home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/ -isysroot /home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot - -mtune=generic -march=x86-64
ignoring duplicate directory "/home/USER/anaconda3/bin/../lib/gcc/../../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include"
ignoring nonexistent directory "/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built/x86_64-conda_cos6-linux-gnu/sysroot/include"
ignoring duplicate directory "/home/USER/anaconda3/bin/../lib/gcc/../../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include-fixed"
ignoring duplicate directory "/home/USER/anaconda3/bin/../lib/gcc/../../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include
/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include-fixed
/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/include
/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
COMPILER_PATH=/home/USER/anaconda3/bin/../libexec/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/:/home/USER/anaconda3/bin/../libexec/gcc/:/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/
LIBRARY_PATH=/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/:/home/USER/anaconda3/bin/../lib/gcc/:/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/lib/../lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/lib/../lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/../lib/:/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64'


Other posts have suggested a zlib-dev installation, already have the latest zlib1g-dev,version (1:1.2.11.dfsg-0ubuntu2).



Could you please advise on the best route to overcome this error? Thank you so much.










share|improve this question









New contributor




lager is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I am relatively new to Ubuntu. I have set up a Ubuntu 18.04 subsystem on my Windows 10 PC for bioinformatics applications.



During multiple application installations, I have received the following error after running ./configure & make:



bgzf.h:33:10: fatal error: zlib.h: No such file or directory
#include <zlib.h>


The configure command returns:



checking for ZLIB... yes


Whereis returns:



zlib: /usr/local/bin/zlib.h /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz


echo | gcc -E -v - returns:



Reading specs from /home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/specs
COLLECT_GCC=gcc
Target: x86_64-conda_cos6-linux-gnu
Configured with: /home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=x86_64-conda_cos6-linux-gnu --prefix=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built --with-sysroot=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built/x86_64-conda_cos6-linux-gnu/sysroot --enable-languages=c,c++,fortran,objc,obj-c++ --with-pkgversion='crosstool-NG 1.23.0.449-a04d0' --enable-__cxa_atexit --disable-libmudflap --enable-libgomp --disable-libssp --enable-libquadmath --enable-libquadmath-support --enable-libsanitizer --enable-libmpx --with-gmp=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --with-mpfr=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --with-mpc=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --with-isl=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/buildtools --enable-lto --enable-threads=posix --enable-target-optspace --enable-plugin --enable-gold --disable-nls --disable-multilib --with-local-prefix=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built/x86_64-conda_cos6-linux-gnu/sysroot --enable-long-long --enable-default-pie
Thread model: posix
gcc version 7.3.0 (crosstool-NG 1.23.0.449-a04d0)
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64'
/home/USER/anaconda3/bin/../libexec/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/cc1 -E -quiet -v -iprefix /home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/ -isysroot /home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot - -mtune=generic -march=x86-64
ignoring duplicate directory "/home/USER/anaconda3/bin/../lib/gcc/../../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include"
ignoring nonexistent directory "/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built/x86_64-conda_cos6-linux-gnu/sysroot/include"
ignoring duplicate directory "/home/USER/anaconda3/bin/../lib/gcc/../../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include-fixed"
ignoring duplicate directory "/home/USER/anaconda3/bin/../lib/gcc/../../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include
/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include-fixed
/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/include
/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
COMPILER_PATH=/home/USER/anaconda3/bin/../libexec/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/:/home/USER/anaconda3/bin/../libexec/gcc/:/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/
LIBRARY_PATH=/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/:/home/USER/anaconda3/bin/../lib/gcc/:/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/lib/../lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/lib/../lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/../lib/:/home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/lib/:/home/USER/anaconda3/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64'


Other posts have suggested a zlib-dev installation, already have the latest zlib1g-dev,version (1:1.2.11.dfsg-0ubuntu2).



Could you please advise on the best route to overcome this error? Thank you so much.







compiling gcc make windows-subsystem-for-linux zlib






share|improve this question









New contributor




lager is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




lager is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Mar 12 at 12:15







lager













New contributor




lager is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Mar 11 at 19:58









lagerlager

11




11




New contributor




lager is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





lager is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






lager is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Well, gcc would normally be able to find headers in /usr/include - unless it's configured differently for WSL? It might be helpful to edit your question to include the output of command echo | gcc -E -v - (or at least the section of it begining #include "..." search starts here)

    – steeldriver
    Mar 11 at 21:29



















  • Well, gcc would normally be able to find headers in /usr/include - unless it's configured differently for WSL? It might be helpful to edit your question to include the output of command echo | gcc -E -v - (or at least the section of it begining #include "..." search starts here)

    – steeldriver
    Mar 11 at 21:29

















Well, gcc would normally be able to find headers in /usr/include - unless it's configured differently for WSL? It might be helpful to edit your question to include the output of command echo | gcc -E -v - (or at least the section of it begining #include "..." search starts here)

– steeldriver
Mar 11 at 21:29





Well, gcc would normally be able to find headers in /usr/include - unless it's configured differently for WSL? It might be helpful to edit your question to include the output of command echo | gcc -E -v - (or at least the section of it begining #include "..." search starts here)

– steeldriver
Mar 11 at 21:29










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






lager is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124866%2fubuntu-bionic-18-04-fatal-error-zlib-h-no-such-file-or-directory-include%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








lager is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















lager is a new contributor. Be nice, and check out our Code of Conduct.













lager is a new contributor. Be nice, and check out our Code of Conduct.












lager is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124866%2fubuntu-bionic-18-04-fatal-error-zlib-h-no-such-file-or-directory-include%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b