[R] FreeBSD installation problems
Rainer Hurling
rhurlin at gwdg.de
Sun Oct 21 08:23:28 CEST 2012
On 21.10.2012 02:47 (UTC+2), J. Maxwell wrote:
> R Compiliing or installation failure on FreeBSD
> 9.0-RELEASE FreeBSD ; I386 box.
>
> configuring with the default settings, no 'options' =>
>
> ./configure
Is there any reason that you are not using the FreeBSD ports system, in
this case /usr/ports/math/R? It builds and installs just fine. I am
using it for years now.
In many cases it should be useful to enable the ports option LIBR to get
a R shared library and a dynamically linked R.
Hope this helps,
Rainer
> ...
> ...
> ...
>
> checking whether gcc -std=gnu99 supports -c -o FILE.lo... yes
> checking for gcc -std=gnu99 option to support OpenMP... -fopenmp
> checking how to get verbose linking output from fc... configure:
> WARNING: compilation failed
>
> checking for Fortran 77 libraries of fc...
> checking how to get verbose linking output from gcc -std=gnu99... -v
> checking for C libraries of gcc -std=gnu99... -L/usr/local/lib
> -L/usr/lib -lgcc_s
> checking for dummy main to link with Fortran 77 libraries... none
> checking for Fortran 77 name-mangling scheme... configure: error: in
> `/usr/local/src/R-2.15.1':
> configure: error: cannot compile a simple Fortran program
> See `config.log' for more details
>
> jaymax-#393:# ls config.log
> config.log
>
> jaymax-#394:# wc config.log
> 3859 14227 118427 config.log
>
> jaymax-#395:# tail -30 config.log
> ...
> ...
> ...
> #define HAVE_INTPTR_T 1
> #define HAVE_UINTPTR_T 1
> #define R_INLINE inline
> #define SIZEOF_INT 4
> #define INT_32_BITS 1
> #define SIZEOF_LONG 4
> #define SIZEOF_LONG_LONG 8
> #define SIZEOF_DOUBLE 8
> #define SIZEOF_LONG_DOUBLE 12
> #define SIZEOF_SIZE_T 4
>
> configure: exit 1
> jaymax-#396:#
>
> I then provided the compilers explicitly
> ./configure cc=gcc47 F77=gfortran47 CXX=g++47 FC=gfortran47
>
> which seemed to run to completion w/ 1 SNAFU
>
> R is now configured for i386-unknown-freebsd9.0
>
> Source directory: .
> Installation directory: /usr/local
>
> C compiler: gcc -std=gnu99 -g -O2
> Fortran 77 compiler: gfortran47 -g -O2
>
> C++ compiler: g++47 -g -O2
> Fortran 90/95 compiler: gfortran47 -g -O2
> Obj-C compiler:
>
> Interfaces supported: X11
> External libraries: readline, ICU, lzma
> Additional capabilities: PNG, JPEG, TIFF, NLS, cairo
> Options enabled: shared BLAS, R profiling, Java
>
> Recommended packages: yes
>
> configure: WARNING: inconsolata.sty not found: PDF vignettes and
> package manuals will not be rendered optimally
>
> However,
> jaymax-#492:# make install
>
> installing doc ...
> install: NEWS.rds: No such file or directory
> *** Error code 71
>
> Stop in /usr/local/src/R-2.15.1/doc.
> *** Error code 1
>
> Stop in /usr/local/src/R-2.15.1.
>
> And
>
> jaymax-#493:# make check
>
> ../../bin/R: not found
> *** Error code 127
>
> Stop in /usr/local/src/R-2.15.1/tests/Examples.
> *** Error code 1
>
> Stop in /usr/local/src/R-2.15.1/tests.
> *** Error code 1
>
> Stop in /usr/local/src/R-2.15.1/tests.
> *** Error code 1
>
> Stop in /usr/local/src/R-2.15.1.
>
> jaymax-#494:#
>
> I am at a bit of a loss figuring out the problem here, the log file does
> not seem to give any info
> Need some direction/help
>
> Thanks in advance.
More information about the R-help
mailing list