On 02.08.2012 14:26, K. Elo wrote:> 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.
R.h should be part if your R installation, given the output above
probably in /usr/lib64/R/include ?
Uwe Ligges
> 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
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>