[R] Building R on RHEL 5

Jason Edgecombe jason at rampaginggeek.com
Sat Jan 21 01:43:18 CET 2012


Why not use the pre-compiled RPM's from EPEL ( 
http://fedoraproject.org/wiki/EPEL )?

Version 2.14 of R is still in the testing folder here: 
http://download.fedora.redhat.com/pub/epel/testing/5/

Jason

On 01/20/2012 02:34 PM, Erik Wright wrote:
> Hello,
>
> I am trying to upgrade to the latest R release on a machine running Red Hat el5.  Previously I was successful at building R 2.11, but now I am having troubles with R 2.14.
>
> Configure goes fine, but then make throws a lot of errors (output below).  Any idea what I am doing wrong this time around?
>
> Thanks in advance,
> Erik
>
> make output:
> ...
> gcc -std=gnu99 -I../../src/extra/zlib -I../../src/extra/bzip2 -I../../src/extra/pcre -I../../src/extra  -I../../src/extra/xz/api -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H     -g -O2 -c vfonts.c -o vfonts.o
> gfortran    -g -O2 -c xxxpr.f -o xxxpr.o
> ar cr libR.a CConverters.o CommandLineArgs.o Rdynload.o Renviron.o RNG.o agrep.o apply.o arithmetic.o array.o attrib.o base.o bind.o builtin.o character.o coerce.o colors.o complex.o connections.o context.o cov.o cum.o dcf.o datetime.o debug.o deparse.o deriv.o devices.o dotcode.o dounzip.o dstruct.o duplicate.o engine.o envir.o errors.o eval.o format.o fourier.o gevents.o gram.o gram-ex.o gramLatex.o gramRd.o graphics.o grep.o identical.o inlined.o inspect.o internet.o iosupport.o lapack.o list.o localecharset.o logic.o main.o mapply.o match.o memory.o model.o names.o objects.o optim.o optimize.o options.o par.o paste.o platform.o plot.o plot3d.o plotmath.o print.o printarray.o printvector.o printutils.o qsort.o random.o raw.o registration.o relop.o rlocale.o saveload.o scan.o seq.o serialize.o size.o sort.o source.o split.o sprintf.o startup.o subassign.o subscript.o subset.o summary.o sysutils.o unique.o util.o version.o vfonts.o xxxpr.o   libs/*o
> ranlib libR.a
> gcc -std=gnu99 -Wl,--export-dynamic   -L/usr/local/lib64 -o R.bin Rmain.o libR.a -L../../lib -lRblas -lgfortran -lm   -lreadline -lncurses  -lrt -ldl -lm
> libR.a(main.o): In function `feof_unlocked':
> /usr/include/bits/stdio.h:123: multiple definition of `feof_unlocked'
> Rmain.o:/usr/include/bits/stdio.h:123: first defined here
> libR.a(main.o): In function `ferror_unlocked':
> /usr/include/bits/stdio.h:130: multiple definition of `ferror_unlocked'
> Rmain.o:/usr/include/bits/stdio.h:130: first defined here
> libR.a(main.o): In function `putchar_unlocked':
> /usr/include/bits/stdio.h:104: multiple definition of `putchar_unlocked'
> Rmain.o:/usr/include/bits/stdio.h:104: first defined here
> libR.a(main.o): In function `putc_unlocked':
> /usr/include/bits/stdio.h:97: multiple definition of `putc_unlocked'
> Rmain.o:/usr/include/bits/stdio.h:97: first defined here
> libR.a(main.o): In function `fputc_unlocked':
> ...
> several thousand similar errors...
> ...
> /usr/include/stdlib.h:330: multiple definition of `atof'
> libR.a(main.o):/usr/include/stdlib.h:330: first defined here
> collect2: ld returned 1 exit status
> make[3]: *** [R.bin] Error 1
> make[3]: Leaving directory ...
>
> ______________________________________________
> 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.
>



More information about the R-help mailing list