Re: install ggplot2 on Linux failed

133 views
Skip to first unread message

Winston Chang

unread,
Mar 17, 2013, 10:16:02 PM3/17/13
to Yasutaka Hirasawa, ggp...@googlegroups.com
It might be that you need a newer version of gcc:
http://stackoverflow.com/questions/14865976/r-packages-fail-to-compile-with-gcc

-Winston

On Tue, Mar 12, 2013 at 8:14 AM, Yasutaka Hirasawa <dank...@gmail.com> wrote:
Hello,

I am trying to isntall ggplot2 on RHEL5 but failing with the following message.  Appreciate your help.

> install.packages('ggplot2', dep = TRUE)
Installing package(s) into â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15â
(as âlibâ is unspecified)
also installing the dependencies âcolorspaceâ, âmunsellâ, âSparseMâ, âspâ, âmvtnormâ, âdigestâ, âscalesâ, âquantregâ, âHmiscâ, âmapprojâ, âmapsâ, âhexbinâ, âmaptoolsâ, âmultcompâ, âtestthatâ

Content type 'application/x-gzip' length 240581 bytes (234 Kb)
opened URL
==================================================
downloaded 234 Kb
Content type 'application/x-gzip' length 87713 bytes (85 Kb)
opened URL
==================================================
downloaded 85 Kb

Content type 'application/x-gzip' length 749740 bytes (732 Kb)
opened URL
==================================================
downloaded 732 Kb

Content type 'application/x-gzip' length 706629 bytes (690 Kb)
opened URL
==================================================
downloaded 690 Kb

Content type 'application/x-gzip' length 322279 bytes (314 Kb)
opened URL
==================================================
downloaded 314 Kb

Content type 'application/x-gzip' length 80083 bytes (78 Kb)
opened URL
==================================================
downloaded 78 Kb

Content type 'application/x-gzip' length 39429 bytes (38 Kb)
opened URL
==================================================
downloaded 38 Kb

Content type 'application/x-gzip' length 2347423 bytes (2.2 Mb)
opened URL
==================================================
downloaded 2.2 Mb

Content type 'application/x-gzip' length 578451 bytes (564 Kb)
opened URL
==================================================
downloaded 564 Kb

Content type 'application/x-gzip' length 25325 bytes (24 Kb)
opened URL
==================================================
downloaded 24 Kb

Content type 'application/x-gzip' length 1427826 bytes (1.4 Mb)
opened URL
==================================================
downloaded 1.4 Mb
Content type 'application/x-gzip' length 576852 bytes (563 Kb)
opened URL
==================================================
downloaded 563 Kb

Content type 'application/x-gzip' length 856146 bytes (836 Kb)
opened URL
==================================================
downloaded 836 Kb

Content type 'application/x-gzip' length 562540 bytes (549 Kb)
opened URL
==================================================
downloaded 549 Kb

Content type 'application/x-gzip' length 25685 bytes (25 Kb)
opened URL
==================================================
downloaded 25 Kb

Content type 'application/x-gzip' length 2330942 bytes (2.2 Mb)
opened URL
==================================================
downloaded 2.2 Mb

* installing *source* package âcolorspaceâ ...
** package âcolorspaceâ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c colorspace.c -o colorspace.o
colorspace.c:1: error: bad value (generic) for -mtune= switch
make: *** [colorspace.o] Error 1
ERROR: compilation failed for package âcolorspaceâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/colorspaceâ
* installing *source* package âSparseMâ ...
** package âSparseMâ successfully unpacked and MD5 sums checked
** libs
gfortran -m64   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c bckslv.f -o bckslv.o
bckslv.f:0: error: bad value (generic) for -mtune= switch
make: *** [bckslv.o] Error 1
ERROR: compilation failed for package âSparseMâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/SparseMâ
* installing *source* package âspâ ...
** package âspâ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c Rcentroid.c -o Rcentroid.o
Rcentroid.c:1: error: bad value (generic) for -mtune= switch
make: *** [Rcentroid.o] Error 1
ERROR: compilation failed for package âspâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/spâ
* installing *source* package âmvtnormâ ...
** package âmvtnormâ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c miwa.c -o miwa.o
miwa.c:1: error: bad value (generic) for -mtune= switch
make: *** [miwa.o] Error 1
ERROR: compilation failed for package âmvtnormâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/mvtnormâ
* installing *source* package âdigestâ ...
** package âdigestâ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c aes.c -o aes.o
aes.c:1: error: bad value (generic) for -mtune= switch
make: *** [aes.o] Error 1
ERROR: compilation failed for package âdigestâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/digestâ
* installing *source* package âHmiscâ ...
** package âHmiscâ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c Hmisc.c -o Hmisc.o
Hmisc.c:1: error: bad value (generic) for -mtune= switch
make: *** [Hmisc.o] Error 1
ERROR: compilation failed for package âHmiscâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/Hmiscâ
* installing *source* package âmapsâ ...
** package âmapsâ successfully unpacked and MD5 sums checked
** libs
** arch -
gcc -m64 -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -I/usr/local/include -L/usr/local/lib64  Gmake.c   -o Gmake
Gmake.c:1: error: bad value (generic) for -mtune= switch
make: *** [Gmake] Error 1
ERROR: compilation failed for package âmapsâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/mapsâ
* installing *source* package âhexbinâ ...
** package âhexbinâ successfully unpacked and MD5 sums checked
** libs
gfortran -m64   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c hbin.f -o hbin.o
hbin.f:0: error: bad value (generic) for -mtune= switch
make: *** [hbin.o] Error 1
ERROR: compilation failed for package âhexbinâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/hexbinâ
ERROR: dependency âcolorspaceâ is not available for package âmunsellâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/munsellâ
ERROR: dependency âSparseMâ is not available for package âquantregâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/quantregâ
ERROR: dependency âmapsâ is not available for package âmapprojâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/mapprojâ
ERROR: dependency âspâ is not available for package âmaptoolsâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/maptoolsâ
ERROR: dependency âmvtnormâ is not available for package âmultcompâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/multcompâ
ERROR: dependency âdigestâ is not available for package âtestthatâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/testthatâ
ERROR: dependency âmunsellâ is not available for package âscalesâ
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/scalesâ
ERROR: dependencies âdigestâ, âscalesâ are not available for package âggplot2â
* removing â/u/yasutaka/R/x86_64-redhat-linux-gnu-library/2.15/ggplot2â

The downloaded source packages are in
        â/tmp/RtmpD6M8QR/downloaded_packagesâ
There were 16 warnings (use warnings() to see them)

--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
 
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
 
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages