Skip to content

Compilation problems

2 messages · André Z. D. A., Jeroen Ooms

#
Hello,

I'm trying to compile and install R for my user in a machine without admin privileges. I have done this before, so this is fine. But I have 2 problems with R compilation right now.


After ./configure --prefix=/home/me/dir/ I get this:

================================

R is now configured for x86_64-unknown-linux-gnu

  Source directory:          .
  Installation directory:    /home/balacobaco/bbin

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

  C++ compiler:              g++  -g -O2
  C++ 11 compiler:           g++  -std=c++11 -g -O2
  Fortran 90/95 compiler:    gfortran -g -O2
  Obj-C compiler:	      

  Interfaces supported:      X11, tcltk
  External libraries:        readline, ICU
  Additional capabilities:   PNG, JPEG, TIFF, NLS, cairo
  Options enabled:           shared BLAS, R profiling

  Recommended packages:      yes

configure: WARNING: neither inconsolata.sty nor zi4.sty found: PDF vignettes and package manuals will not be rendered optimally

================================

Problem 1) How do I get rid of this warning about "inconsolata.sty" and "zi4.sty". Can I have this file locally for my installation or compilation? Where do I download it? Where do I put them?


Problem 2) The compilation fails with the following message:

================================
(...)
configuring Java ...
Java interpreter : /usr/bin/java
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap

*** Java interpreter doesn't work properly.

make[1]: [stamp-java] Error 1 (ignored)
make[1]: Leaving directory `/home/me/dir'

================================

What happened? What's wrong with my server's java? What caused this error, so I can try to fix or skip it, if possible.

Thank you,

Andre'
4 days later
#
On Sat, Aug 9, 2014 at 10:56 AM, Andr? Z. D. A. <andrezda10 at yandex.com> wrote:
I have seen this error before when running java inside a vm container
(openvz, lxc) where the kernel does not give java permission to query
the amount of available memory, and hence java assumes it must be 0.
In these cases you need to manually set the MaxHeapSize by passing a
parameter to java, see:
http://stackoverflow.com/questions/4401396/could-not-reserve-enough-space-for-object-heap.

I am not sure where in the compilation that java gets invoked, and if
there is a way to pass parameters. Perhaps you can use the
_JAVA_OPTIONS environment variable.