I'm trying to install R package "igraph" in Linux server and stuck with some errors.
I've tried install.packages("igraph")
, and got these error messages :
Problem related with
checking whether the C compiler works... no
:* installing *source* package ‘igraph’ ... ** package ‘igraph’ successfully unpacked and MD5 sums checked checking for gcc... /usr/local/bin/gcc checking whether the C compiler works... no configure: error: in `/tmp/RtmpPaaksz/R.INSTALL8c157a39a973/igraph': configure: error: C compiler cannot create executables See `config.log' for more details ERROR: configuration failed for package ‘igraph’
Problem related with
lazyeval.c:53: error: ‘for’ loop initial declarations are only allowed in C99 mode
:lazyeval.c: In function ‘make_lazy_dots’: lazyeval.c:53: error: ‘for’ loop initial declarations are only allowed in C99 mode lazyeval.c:53: note: use option -std=c99 or -std=gnu99 to compile your code lazyeval.c:63: error: redefinition of ‘nxt’ lazyeval.c:53: note: previous definition of ‘nxt’ was here make: *** [lazyeval.o] Error 1 ERROR: compilation failed for package ‘igraph’
My environment is
- Linux
- R 3.4.3
Would anyone give me a piece of precious advice?
I close this post due to consistency of my question, though I still can't install the package. Thanks everyone!