I am trying to install R 4.0.0 from source according to these instructions on my trisquel 8.0 machine.
Specifically, I'm configuring with the command
./configure --prefix=/opt/R/4.0.0 --enable-memory-profiling --with-blas --with-lapack --with-x=no
However, this does not complete successfully and returns the error:
checking whether zlib support suffices... configure: error: zlib library and headers are required
But I've already installed zlib, as evidenced by sudo dpkg -s zlib1g
which outputs
Package: zlib1g
Status: install ok installed
...
Version: 1:1.2.11.dfsg-2ubuntu1
...
All troubleshooting on the internet I've found so far points to doing something like this, which doesn't work for me since the suggested fix is already implemented (more or less) in configure
for R 4.0.0:
#ifdef ZLIB_VERNUM
if(ZLIB_VERNUM < 0x1250)
exit(1);
exit(0);
else
exit(1);
#endif
I've also tried installing another copy of zlib in /opt, which didn't work, and I can't uninstall the current version of zlib because of dependencies.
Also, I'd really rather not install zlib 1.2.9 or another out of date version of zlib. The latest version of zlib came out in 2017 and R 4.0.0 came out this year, they should hopefully work together?
Thanks to anyone who can help.