[ESS] Installing ESS on CentOS?

Steven McKinney smckinney at bccrc.ca
Wed Oct 27 04:11:29 CEST 2010


Hi Spencer,

Emacs and ESS work so well in so many different configurations, that
even if you "put it there", all you have to do is tell emacs where
you put ESS, crude or no.  Emacs will look for ESS wherever you
tell emacs to look, and will load ESS if found or leave you a message
(not crude) if not found.


You can just set up ESS in your home directory.  This will be
straightforward as you are allowed to do that in unix.  You
may have problems trying to put ESS into some central location such
as /user/local depending on the permissions of such a directory.
If you are not very unixed, I'm guessing you don't have administrator
level knowledge or privileges.

In unix, at a command prompt,
just type

$ cd ~

then

$ pwd

[smckinney at godel ~]$ cd ~
[smckinney at godel ~]$ pwd
/opt/home/smckinney

and you'll know where your home directory lives in the file system.

You downloaded ess-5.11.tgz - I'll suggest you copy it to your
home directory, and unzip it there.

$ tar xzf ess-5.11.tgz

You should now see a new directory in your home directory, named
ess-5.11 or similar (it may have an additional minor version number,
e.g. ess-5.11.2 ).

Next you need to tell emacs where to find ess.  You need a line of code
similar to this

(load "/opt/home/smckinney/ess-5.11/lisp/ess-site")

in your .emacs file, which sits in your home directory.

Use your favourite editor to edit .emacs and enter such a line
of code at the end of the .emacs file.  Put your home directory
information in there in place of mine.  Put the name of the
directory that was created when you unzipped the ESS file
in place of my /ess-5.11

Fire up emacs and look in the *Messages* buffer - that's where
you'll see a message of success or failure on whether emacs
found ESS, wherever you put it.

HTH

Steven McKinney



> -----Original Message-----
> From: ess-help-bounces at stat.math.ethz.ch [mailto:ess-help-bounces at stat.math.ethz.ch] On Behalf Of
> spencerg
> Sent: October-26-10 4:16 PM
> To: Erik Iverson
> Cc: ess-help
> Subject: Re: [ESS] Installing ESS on CentOS?
> 
> Hi, Eric and Rodney:
> 
> 
>        Thanks for your replies.  Unfortunately, I'm not very unixed, and
> I can't find the installation directory for Emacs.  I couldn't find ESS
> or Emacs Speaks Statistics listed as available via Package Manager.
> Moreover, /user/local/share does not contain an emacs subdirectory, as
> indicated in
> "http://ess.r-project.org/Manual/ess.html#Unix-installation".   I
> downloaded ess-5.11.tgz, and know where it is, but I don't know where to
> put it.  I spent my time in the military, and I can think of a thousand
> crude suggestions for "where to put it", but none of them seem likely to
> solve this problem.
> 
> 
>        Any suggestions?
> 
> 
>        Thanks again,
>        Spencer
> 
> 
> On 10/26/2010 2:15 PM, Erik Iverson wrote:
> > Spencer,
> >
> > I always use the same procedure for installing ESS on Linux,
> > which is to download the .tar.gz file of the latest release,
> > unpack it, and then load ESS from my .emacs initialization file.
> >
> > The 'package manager' route has some appeal, but since ESS is
> > so trivial to install using the method above, I just go ahead
> > and do it.
> >
> > So, simply download
> > http://ess.r-project.org/downloads/ess/ess-5.11.tgz
> >
> > Unpack the file using, e.g.,
> >
> > tar xvfz ess-5.11.tgz
> >
> > And then in your .emacs file:
> >
> > (load "/path/to/ess-5.11/lisp/ess-site")
> >
> > adjusting the string to match your local setup.
> >
> > Simple as that!
> >
> > I might suggest having your sysadmin (or you) install a more
> > recent version of Emacs, version 21 is *very* old!
> >
> > The most recent version (23.2) has some nice advantages,
> > including image support and antialiased font support,
> > among others.
> >
> > --Erik
> >
> > Spencer Graves wrote:
> >>       What procedure do you suggest to install ESS in CentOS 5.5,
> >> which includes Emacs 21.4.1?
> >>
> >>
> >>       "http://ess.r-project.org/index.php?Section=download" says,
> >> "ESS for Linux:  On some distributions of Linux ESS can be installed
> >> as an offical RPM package via the package manager. For other
> >> distributions the RPM packages are provided by private users."  I
> >> could not find either ESS or Emacs Speaks Statistics searching for
> >> "All packages" or "Available packages" from the "Package Manager".
> >>
> >>
> >>
> >>       Thanks,
> >>       Spencer
> >> p.s.  At a command prompt, "R" brings up "version 2.12.0 (2010-10-15)
> >> ... Platform:  x86_64-unknown-linux-gnu (64 bit)".
> 
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list