Trying to compile R-3.3.2 on Debian Jessie, all dependencies are installed. However the ./configure
script complains about the zlib
/bzip2
library versions not matching with the minimum requirement.
Minimum version required:
zlib
: 1.2.6 (installed version: 1.2.11)bzip2
: 1.0.6 (installed version: 1.0.6)
After looking at the parts of
configure
script checking the library versions, it seems that it compares versions withstrcmp
orstrncmp
. Since "1.2.11" is lexicographically smaller that "1.2.6" it return a non-zero value indicating that the match failed. Besides, it just compares the first 5 characters which is also not what it is intented. So, it's a bug in configure script. Changing the script fixed the issue.For zlib, find this line:
Change it to:
I had some issues installing R myself, specifically with the error
I had to install
libbz2-dev
to get that error to go away.Unfortunately, I came across a few more issues while running
./configure
and had to do a little more digging to find out how to solve it.Discussion on issue
After reading that, I had realized I had to install a couple packages like
libcurl4-openssl-dev
,libpcre3
, andliblzma-dev
to finally finish the configuration.The cited link suggested
Personally, I think that installing an older version to resolve dependency issues reeks of laziness, but that's just my two cents.