[R] Compiling from sources (ubuntu and x11)

Dirk Eddelbuettel edd at debian.org
Fri Nov 20 14:00:04 CET 2009


On 19 November 2009 at 23:34, stephen sefick wrote:
|  am using ubuntu 9.10 and I am getting and x11 lib/headers not found.
| I have installed libx11-dev.  I thought this would solve the problem,
| but it is not.  Any help would be appreciated.

You can try 'sudo apt-get build-dep r-base' which will use the package info to get
the required packages. You may need deb-src entries for that.

Or look at the diff.gz on the mirrors to read the entry:

  Build-Depends: gcc (>= 4:4.1.0), g++ (>= 4:4.1.0), gfortran (>= 4:4.1.0),
    libblas-dev, liblapack-dev (>= 3.1.1), tcl8.5-dev, tk8.5-dev, bison,
    groff-base, libncurses5-dev, libreadline-dev, debhelper (>= 7.2.3),
    texi2html, texinfo (>= 4.1-2), libbz2-dev, libpcre3-dev, xdg-utils,
    zlib1g-dev, libpng12-dev, libjpeg62-dev, libx11-dev, libxt-dev,
    x11proto-core-dev, libpango1.0-dev, libcairo2-dev, libtiff4-dev, xvfb,
    xauth, xfonts-base, texlive-base, texlive-latex-base,
    texlive-generic-recommended, texlive-fonts-recommended,
    texlive-extra-utils, texlive-latex-recommended, texlive-latex-extra,
    texinfo, texi2html, openjdk-6-jdk [!arm !hppa !kfreebsd-i386
    !kfreebsd-amd64 !hurd-i386]

so 'libx11-dev, libxt-dev, x11proto-core-dev' are what you need, but you
probably also need the headers for devices etc.

Or, as suggested, look at the configure output.

Or read the 'R Adminstration' manual which details some of this too, and
recommends the xorg-dev package on Debian (and Ubuntu should be close).

Dirk

-- 
Three out of two people have difficulties with fractions.




More information about the R-help mailing list