[Rcpp-devel] difference between install from source and install from repositories

Pratibha Rana prana at Vertica.com
Thu Sep 18 15:47:26 CEST 2014


Hi,

What is the difference between the R installation from source and the R
installation from ubuntu repositories. Specifically when I install
R-3.1.1 on ubuntu 14.04 from sources ldflags and CXXFLAGS are different
that those from the installation from a repo.

Installation from sources:

R CMD config --ldflags

-Wl,--export-dynamic -fopenmp  -L/home/prana/prana_R/third-party/install/lib/R/lib -lR -lrt -ldl -lm

R CMD config CXXFLAGS



Installation from repo:

 R CMD config --ldflags

-Wl,--export-dynamic -fopenmp  -L/usr/lib/R/lib -lR -lpcre -llzma -lbz2 -lz -lrt -ldl -lm

R CMD config CXXFLAGS

-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g

These are the steps that I followed to install from sources

./configure  --enable-R-shlib --with-x=no --with-readline=no
--prefix=/home/prana/software/install/
make
make install



Pratibha


More information about the Rcpp-devel mailing list