[R] Cannot install the 'igraph' package

K. Elo maillists at nic.fi
Thu Aug 2 14:26:29 CEST 2012


Hi!

I want to use R for network analysis and have tried to install the 
'igraph' package. Unfortunately, the installation is aborted by an error:

--snip--
gcc -std=gnu99 -I/usr/lib64/R/include -DNDEBUG  -I/usr/local/include 
-DUSING_R -I. -Ics -Iglpk -Iglpk/amd -Iglpk/colamd -I/usr/local/include 
-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector 
-funwind-tables -fasynchronous-unwind-tables -g -DNDEBUG 
-DPACKAGE_VERSION=\"0.6\" -DINTERNAL_ARPACK -DIGRAPH_THREAD_LOCAL=/**/ 
-fpic  -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector 
-funwind-tables -fasynchronous-unwind-tables -g  -c rinterface.c -o 
rinterface.o
rinterface.c:30:15: fatal error: R.h: File or directory does not exist!
compilation terminated.
make: *** [rinterface.o] Error 1
ERROR: compilation failed for package ‘igraph’
* removing ‘/usr/lib64/R/library/igraph’

The downloaded source packages are in
 	‘/tmp/RtmpSFsTPv/downloaded_packages’
Updating HTML index of packages in '.Library'
Making packages.html  ... done
Warning message:
In install.packages("igraph") :
   installation of package ‘igraph’ had non-zero exit status

--snip--

And yes, I have asked Mr. Google, but none of the suggested solutions did 
work. I have tried to install previous versions, no success :(

Any ideas how to install 'igraph'?

I use R 2.15.1 on openSuSE 12.1 (64-bit).

Thanks in advance,
Kimmo


More information about the R-help mailing list