[R-sig-Fedora] installing 2.14.0 on fedora

Gavin Simpson gavin.simpson at ucl.ac.uk
Sun Nov 6 21:17:15 CET 2011


On Sat, 2011-11-05 at 21:07 -0400, Mark Leeds wrote:
> Hi All: I did what Gavin explained and I got the error
> 
> "configure: error: --with-readline=yes (default) and headers/libs are not
> available".

su -c "yum install readline-devel"

will install the package required to get passed the configure error you
past that configure error.

> so then i read the R installation manual and it s says that I need libX11,
> libX11-devel, libXt and libXt-devel.
> It also mentioned libtiprc so I used the software manager and installed
> the  devels of above since they hadn't
> been installed.
> 
> I don't know the mechanism that occurs when i do apply with th software
> manager but I tried configure again and I'm still getting the same error.
> Maybe wherever the devels got installed is not on my path ?
> That's the only thing I can think of but i'm not sure how to investigate
> that further. thanks.

Those packages are required for compiling with X11 support - i.e. on
screen graphics via the x11() device.

The same manual also tells you that readline headers are required and as
you haven't/hadn't installed those, the error remained. Had you
installed readline-devel, but not the X packages you mention, configure
would have failed again later.

Whenever R complains about not having headers or libs available or that
it can't find a *.h file then invariably you are missing the required
development headers. In Fedora these are usually in a *-devel package.
So you will have readline installed on your system for example, but not
readline-devel, and hence the need to install the *-devel packages you
mention regarding X.

If you are compiling from source, you'll need to compile from source any
R add-on packages you want. These will also require, in many cases
development headers. You will need to master using yum to find the
missing (Fedora) packages required to compile those packages.

yum search readline

would list a number of packages containing the string readline,
including in their description, whereas

yum list available | grep readline

will list only those packages with readline in their name. You can also
search for particular files, e.g. readline.h - which was mentioned as
missing in the configure output:

yum provides */readline.h

then look through the packages to see which ones provide the correct
headers.

HTH

G

> On Sat, Nov 5, 2011 at 7:20 PM, Gavin Simpson <gavin.simpson at ucl.ac.uk>wrote:
> 
> > On Sun, 2011-11-06 at 10:36 +1300, Steve Taylor wrote:
> > > I'd like to know that too. "yum info R" shows that the repository is
> > > lagging by two versions of R.  I've asked about getting that updated on
> > > fedoraforums.
> >
> > What are you missing from the R Installation and Administration manual?
> >
> > I regularly use svn to checkout the source tree and then it is a
> > configure, make, make check, make install away.
> >
> > Yes you will need *-devel packages to be installed from the repositories
> > using yum, but configure will tell you if you have something missing.
> > The manual I mentioned contains pointers as to which packages you need.
> >
> > I don't know exactly what packages are required to compile R from
> > source, but if you are having problems, post the output from configure
> > and I should be able to point you in the right direction.
> >
> > G
> >
> > >
> > > On 6 November 2011 04:08, Mark Leeds <markleeds2 at gmail.com> wrote:
> > >
> > > > Hi: Does anyone know of instructions for installing R.2.14.0 on
> > > > fedora-linux ( I'm using f14 ) using only the tar.gz file. I don't
> > think
> > > > it's available at the fedora repo so I can't use yum. I've look at the
> > > > R-installation instructions but I didn't get very far with that.  Even
> > just
> > > > an internet link is appreciated. Thanks.
> > > >
> > > >
> > > > Mark
> > > >
> > > >        [[alternative HTML version deleted]]
> > > >
> > > > _______________________________________________
> > > > R-SIG-Fedora mailing list
> > > > R-SIG-Fedora at r-project.org
> > > > https://stat.ethz.ch/mailman/listinfo/r-sig-fedora
> > > >
> > >
> > >       [[alternative HTML version deleted]]
> > >
> > > _______________________________________________
> > > R-SIG-Fedora mailing list
> > > R-SIG-Fedora at r-project.org
> > > https://stat.ethz.ch/mailman/listinfo/r-sig-fedora
> > >
> >
> > --
> > %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
> >  Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
> >  ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
> >  Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
> >  Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
> >  UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
> > %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
> >
> >

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



More information about the R-SIG-Fedora mailing list