R Compilation Parameters

Asked by Laurence Mayer

Hello,
Is there a way to know what compilation parameters were used to compile the R package
that is available via apt-get?

I am specifically looking for the output of the ./configure, as would be when I run ./configure
to compile R locally.

e.g:
./configure
  Source directory: .
  Installation directory: /usr/local

  C compiler: gcc -std=gnu99 -g -O2
  Fortran 77 compiler: gfortran -g -O2

  C++ compiler: g++ -g -O2
  Fortran 90/95 compiler: gfortran -g -O2
  Obj-C compiler:

  Interfaces supported: X11, tcltk
  External libraries: readline
  Additional capabilities: iconv, MBCS, NLS
  Options enabled: shared BLAS, R profiling, Java

  Recommended packages: yes

Thanks
Laurence

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu r-base Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
John Haitas (jhaitas) said :
#1

Laurence,

Have you tried the following command?

$ apt-get source r-base

This will retrieve the exact source used to build the R

You can learn how to build it through on the following guide https://wiki.ubuntu.com/PackagingGuide

Revision history for this message
Laurence Mayer (laurence-istraresearch) said :
#2

Thanks, but this does not give me the parameters used when it was compiled for apt-get.

Surely this should be recorded somewhere?

Revision history for this message
John Haitas (jhaitas) said :
#3

When a package is built for apt-get, the information you are looking for will be in the debian/ directory.

Packaging software for Debian (Ubuntu is based on Debian) involves a level of abstraction that allows the package to be installed on diverse configurations. So building the package is a somewhat different process than the traditional './configure; make; make test; sudo make install' process you seem to already be familiar with.

Can you help with this problem?

Provide an answer of your own, or ask Laurence Mayer for more information if necessary.

To post a message you must log in.