[R] R installation
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Thu Feb 17 08:24:52 CET 2000
On Wed, 16 Feb 2000 Brian.O'Gorman at noaa.gov wrote:
> To get R-0.99.0a to execute in a directory other than /usr/local, I've
> had to do the following
> setenv R_HOME /export/trichodon2/R/R-0.99.0a
> ./configure --prefix=/export/trichodon2/R/R-0.99.0a
> make install
> make check
> add to the path $R_HOME/bin, eg. in my .cshrc
> /export/trichodon2/R/R-0.99.0a is where I gunzip and tar the
> R-0.99.0a.tar.gz on my Solaris 2.7 Unix machine.
All I do to run R from the directory tree in which I unpacked is to
link /export/trichodon2/R/R-0.99.0a/bin/R to somewhere in my path. That is,
I do not set R_HOME and I do not `make install'. Setting R_HOME will
just cause confusion if there is more than one copy of R around: the
`R' scripts sets it as required. As an example:
ln -s /export/trichodon2/R/R-0.99.0a/bin/R ~/bin
[optionally, make clean]
You only need to `install' to move the operational parts of the built
sources somewhere else. To install a stable version for public use, I use,
ln -s /packages/R/0.99.0a/bin/R /usr/local/bin
and then remove the directory in which I unpacked.
In each case `rehash' (I use tcsh/csh) and `R' runs R.
> Peter Dalgaard BSA wrote:
> > Brian.O'Gorman at noaa.gov writes:
> > > --simple boundary
> > > Content-Type: text/plain; charset=ISO-8859-1
> > > Content-Transfer-Encoding: 7bit
> > > Content-Description: "cc:Mail Note Part"
> > >
> > > I've decided to install in R in a directory other than /usr/local, but
> > > I'm having difficulty in setting the correct paths, i.e. PATH or path.
> > > I've set my R_HOME, and sure enough there's a bin and lib directory
> > > there but R just won't execute (something like GUI 'X11' is not
> > > supported. However when R is installed in /usr/local then everything is
> > > OK...Any help or comments appreciated...
> > The official way is to use --prefix=/path/to/mydir on the configure
> > command before building, but you should be able to get away with
> > altering the relevant line in the startup script (bin/R) which sets
> > R_HOME.
> > (The error message is admittedly cryptic and comes from checking
> > whether $R_HOME/R.X11 is there. 1.0.0 will have a direct check for the
> > existence of $R_HOME first.)
> > --
> > O__ ---- Peter Dalgaard Blegdamsvej 3
> > c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
> > (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
> > ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
> > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> > Send "info", "help", or "[un]subscribe"
> > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
> > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help