Re: [Rd] R CMD config for R >= 3.0.1

2013-09-10 Thread crunch
I need to build R on a Centos machine where I have no admin privileges.
Believe I have to build from source, but cannot find the configure script in
the source bundle.  Am I missing something?



--
View this message in context: 
http://r.789695.n4.nabble.com/R-CMD-config-for-R-3-0-1-tp4667399p4675813.html
Sent from the R devel mailing list archive at Nabble.com.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] R CMD config for R >= 3.0.1

2013-09-10 Thread crunch
Also have no cooperation from the admin of the machine, so can't ask for a
yum install.



--
View this message in context: 
http://r.789695.n4.nabble.com/R-CMD-config-for-R-3-0-1-tp4667399p4675814.html
Sent from the R devel mailing list archive at Nabble.com.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] [MASS.ts] Error 1

2013-09-11 Thread crunch
I'm making progress building R on Centos, but make is dying just after "begin
installing recommended package MASS" where it complains "Error in
untar2(tarfile, files, list, exdir, restore_times) :
  incomplete block on file
make[2]: *** [MASS.ts] Error 1

I have $R_SHELL defined as /bin/sh, $R_HOME/bin in my $PATH and I
successfully installed the MASS package using: R CMD INSTALL
MASS_7.3-29.tar.gz
just before I ran make a second time.

Do I have a bad package?  What can I do?




--
View this message in context: 
http://r.789695.n4.nabble.com/R-CMD-config-for-R-3-0-1-tp4667399p4675838.html
Sent from the R devel mailing list archive at Nabble.com.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] JDK not registered

2013-09-16 Thread crunch
Given:
$JAVA_HOME=~/jdk1.7.0_40
$R_SHELL=/bin/sh
$PATH=$R_HOME/bin:$JAVA_HOME/bin:...

which jar --> ~/jdk1.7.0_40/bin/jar
which javac --> ~/jdk1.7.0_40/bin/javac
which javah --> ~/jdk1.7.0_40/bin/javah
which java --> '', even though there is one in $JAVA_HOME/bin
whereis java -->
java: /bin/java /usr/bin/java /sbin/java /usr/sbin/java /lib/java
/usr/lib/java /usr/local/bin/java /usr/share/java
   obviously missing the 1.7.0_40 version in $JAVA_HOME/bin as well as the
1.5 version in /usr/bin

If I push into the Rserve package directory and run ./configure, I get:
...
checking Java support in R... present:
interpreter : ''
archiver: ''
compiler: ''
header prep.: ''
cpp flags   : ''
java libs   : ''
configure: error: Java Development Kit (JDK) is missing or not registered.

Of course that may be because I have not yet successfully completed a make
of R

if I run R CMD javareconf -e
I get:
Java interpreter : /home1/optimal1/jdk1.7.0_40/jre/bin/java   (why
not the one in the jdk/bin?)
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Error occurred during initialization of VM
Could not reserve enough space for object heap

*** Java interpreter doesn't work properly.

I have found that $JAVA_HOME/bin/java (and the one in the jre/bin directory)
each complain 
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

but, if I define:
alias java='$JAVA_HOME/bin/java -Xmx668m -XX:MaxPermSize=128m'
I can run java in SSH, though R CMD javareconf -e
still fails to initialize the VM.

What can I do to get javareconf to run java with those memory limits?




--
View this message in context: 
http://r.789695.n4.nabble.com/R-build-issues-tp4676149p4676286.html
Sent from the R devel mailing list archive at Nabble.com.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel