"–with-x=yes (default) and X11 headers/libs are not available"

I am trying to install R in our cluster (the cluster is Red Hat Enterprise Linux 6), where I don’t have root access. I tried:

$wget http://cran.rstudio.com/src/base/R-3/R-3.1.1.tar.gz
$ tar xvf R-3.1.1.tar.gz
$ cd R-3.1.1
$ ./configure --prefix=/home/Kryo/R-3.1.1

But I am getting an error:

configure: error: --with-x=yes (default) and X11 headers/libs are not available
Asked By: Kryo


According to this thread, you should just install libXt-devel package and you should be fine.

But perhaps you also should install xorg-x11-server-devel and libX11-devel?

That would be:

yum install xorg-x11-server-devel libX11-devel libXt-devel
Answered By: Anthony O.

use this command:

./configure --without-x
Answered By: Gamma
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.