Skip to content
Prev 366427 / 398502 Next

if zlib version >= 1.2.5... no

Configuring R with zlib-1.2.10 I get this error:

checking for zlib.h... yes
checking if zlib version >= 1.2.5... no
checking whether zlib support suffices... configure: error: zlib library and headers 
are required

So I asked Mark from zlib about this problem and he wrote back:
strcmp("1.2.10", "1.2.5") will indicate incorrectly that the 1.2.10 is *less* than 
1.2.5. This is why there is ZLIB_VERNUM, which is a number that can be compared. So 
it should be simply:

    exit(ZLIB_VERNUM < 0x1250);


bastl