Skip to content

Compiling from sources (ubuntu and x11)

3 messages · stephen sefick, Jakson A. Aquino, Dirk Eddelbuettel

#
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.
kind regards,
#
On Thu, Nov 19, 2009 at 11:34:22PM -0600, stephen sefick wrote:
Looking at output of the configure script you should be able to
know what specific file is missing. Then you can "Search the
contents of packages" at http://packages.ubuntu.com/ to know what
package contains the missing file.
#
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