Skip to content

R-1.2.0 installation problems...

3 messages · Peter Dalgaard, Diego Kuonen

#
Dear all,

I have some problems installing R-1.2.0 under Red Hat Linux 6.0 
using Kernel 2.2.46 on an i686.
   
   $ pwd
   /usr/R-1.2.0
   $ ./configure --with-f2c --prefix=/usr/R-1.2.0
   ...
   $ make
   $ make install
   ...
   $ bin/R

nothing happens...

   $ ls -al bin/R
   -rwxr-xr-x   1 root     root            0 Dec 16 09:50 bin/R

shows me that the file is empty :-(

I finally remarked that after "make"

   $ ls -al bin/R
   -rwxr-xr-x   1 root     root         4661 Dec 16 09:52 bin/R

it's still there, but after the the "installing executables" in 
"make install" the file becomes empty. I produced a copy of "bin/R" 
before "make install", and recopied it after "make install" to "bin/R".
I don't think that this affects what follows as "bin/R" is a simply shell
script.

Then the call of

   $ bin/R

produces a "Segmentation fault", more specifically

   $ bin/R --verbose
   R : Copyright 2000, The R Development Core Team
   Version 1.2.0  (2000-12-15)
   ...
   Type `q()' to quit R.

   now dyn.load(/usr/R-1.2.0/library/ctest/libs/ctest.so)..
    >R_ReplConsole(): before "for(;;)" {main.c}
   Segmentation fault

Moreover, producing the call

   dyn.load("/usr/R-1.2.0/library/ctest/libs/ctest.so")

within R 1.0.0 works

   $ R --version
   R 1.0.0  (February 29, 2000)
   Copyright (C) 2000 R Development Core Team

   $ R
   R : Copyright 2000, The R Development Core Team
   Version 1.0.0  (February 29, 2000)
   ...
   > dyn.load("/usr/R-1.2.0/library/ctest/libs/ctest.so")
   > is.loaded("swilk")
   [1] TRUE

Any help would be appreciated.

Greets

  Diego
#
Diego Kuonen <Diego at kuonen.com> writes:
I don't think R is happy with having its install directory equal to
its build directory (and I don't think that can be expected to work).
Try unpacking the sources in /usr/src/R-1.2.0 instead. Either that or
just don't run make install, since the binaries will be in
/usr/R-1.2.0/bin already after make.
#
Peter Dalgaard BSA wrote:
Up to now, I always installed R in this way, and I never had problems 
with the installation under Linux.
Ok. Thanks. This time, I unpacked the sources in /usr/R-1.2.0, but installed
in /usr/R. The problem with the R shell file getting empty disappears, but...

   $ pwd
   /usr/R-1.2.0
   $ make clean
   $ ./configure --with-f2c --prefix=/usr/R
   $ make
   $ make install
   $ /usr/R/bin/R --verbose
   R : Copyright 2000, The R Development Core Team
   Version 1.2.0  (2000-12-15)
   ...
   Type `q()' to quit R.

   now dyn.load(/usr/R/lib/R/library/ctest/libs/ctest.so)..
    >R_ReplConsole(): before "for(;;)" {main.c}
   Segmentation fault

Greets

  Diego