I’d like to use igraph in R, on Debian, but I’ve not succeeded in installing it via install.packages(“igraph”). The following error is returned: “configure: error: isfinite() not available”. My R version is 3.3.3. I’ve also attempted to install the package using the tar.gz file directly, but with no success.
The configuration script of R-igraph complains that your C compiler does not provide the isfinite() function, which is supposed to be provided if the compiler supports C99.
What happens if you try to compile the following piece of C code with gcc?
#include <math.h>
int main(int argc, char* argv[]) {
double f = 0.0; isfinite(f);
return 0;
}
This is exactly the piece of code that R-igraph is trying to compile to determine whether your compiler supports isfinite().
Hello tamas, nothing is returned, strangely. I did this: gcc test.c (where test.c is that program’s source file). I also tried gcc test.c -o test.exe (and chmod +x a.out followed by ./a.out, something I found on the web).
I followed the advice of that link, with both C11 and C99. The same error occurred. This states that certain prerequisites for Debian are contained in the build-essential package, which I also have a difficulty installing (because of the R version).
Many bugs have been fixed in newer versions of igraph. I strongly suggest not to use any old versions unless you are trying to reproduce results you obtained many years ago, using a specific version. You should upgrade your R installation instead.