Discussion:
[R-sig-Debian] configure: error: --with-x=yes (default) and X11 headers/libs are not available
Srinivasan, Sathish K
2013-03-22 03:56:21 UTC
Permalink
Hi everyone,
I am trying to install R.2.15.3 from the source code obtained from http://cran.cnr.Berkeley.edu/src/base/R-2/R-2.15.3.tar.gz in my Debian version: Squeeze box.

In order to have multiple versions of R in my system, I gave this command to configure.

./configure --prefix=/opt/R2.15.3/

Subsequently, I got two warnings and one error message such as the following:

configure: WARNING: you cannot build PDF versions of the R manuals
configure: WARNING: you cannot build PDF versions of vignettes and help pages
configure: error: --with-x=yes (default) and X11 headers/libs are not available

Could someone direct me with a solution to the above issues. From the error messages, I can understand that I am not having the required X11 headers/libs, so what packages in debian squeeze should I have to install for the error messages to disappear during compilation of R source code.

Thank you

-Sathish
Tim Booth
2013-03-22 09:45:59 UTC
Permalink
Hi Sathish,

You can ask Debian to install all the build dependencies for a given
source package like so:

sudo apt-get build-dep r-base

Does that help?

TIM

On Fri, 2013-03-22 at 03:56 +0000, Srinivasan, Sathish K wrote:
> Hi everyone,
> I am trying to install R.2.15.3 from the source code obtained from http://cran.cnr.Berkeley.edu/src/base/R-2/R-2.15.3.tar.gz in my Debian version: Squeeze box.
>
> In order to have multiple versions of R in my system, I gave this command to configure.
>
> ./configure --prefix=/opt/R2.15.3/
>
> Subsequently, I got two warnings and one error message such as the following:
>
> configure: WARNING: you cannot build PDF versions of the R manuals
> configure: WARNING: you cannot build PDF versions of vignettes and help pages
> configure: error: --with-x=yes (default) and X11 headers/libs are not available
>
> Could someone direct me with a solution to the above issues. From the
> error messages, I can understand that I am not having the required X11
> headers/libs, so what packages in debian squeeze should I have to
> install for the error messages to disappear during compilation of R
> source code.
>
> Thank you
>
> -Sathish
>
> _______________________________________________
> R-SIG-Debian mailing list
> R-SIG-Debian at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-debian

--
Tim Booth <tbooth at ceh.ac.uk>
NERC Environmental Bioinformatics Centre

Centre for Ecology and Hydrology
Maclean Bldg, Benson Lane
Crowmarsh Gifford
Wallingford, England
OX10 8BB

http://nebc.nerc.ac.uk
+44 1491 69 2705
Srinivasan, Sathish K
2013-03-22 17:22:30 UTC
Permalink
Hi Tim,
It works!

I did these steps in order to build the r-base dependencies and compile the source code.

su
apt-get build-dep r-base
./configure --prefix=/opt/R2.15.3
make
make install

build-dep is a nice feature of debian apt-get management utility. The manual for apt-get gives a concise description of the build-dep option.

Thanks a ton!

-Sathish
________________________________________
From: r-sig-debian-bounces at r-project.org [r-sig-debian-bounces at r-project.org] On Behalf Of Tim Booth [tbooth at ceh.ac.uk]
Sent: Friday, March 22, 2013 5:45 AM
To: r-sig-debian at r-project.org
Subject: Re: [R-sig-Debian] configure: error: --with-x=yes (default) and X11 headers/libs are not available

Hi Sathish,

You can ask Debian to install all the build dependencies for a given
source package like so:

sudo apt-get build-dep r-base

Does that help?

TIM

On Fri, 2013-03-22 at 03:56 +0000, Srinivasan, Sathish K wrote:
> Hi everyone,
> I am trying to install R.2.15.3 from the source code obtained from http://cran.cnr.Berkeley.edu/src/base/R-2/R-2.15.3.tar.gz in my Debian version: Squeeze box.
>
> In order to have multiple versions of R in my system, I gave this command to configure.
>
> ./configure --prefix=/opt/R2.15.3/
>
> Subsequently, I got two warnings and one error message such as the following:
>
> configure: WARNING: you cannot build PDF versions of the R manuals
> configure: WARNING: you cannot build PDF versions of vignettes and help pages
> configure: error: --with-x=yes (default) and X11 headers/libs are not available
>
> Could someone direct me with a solution to the above issues. From the
> error messages, I can understand that I am not having the required X11
> headers/libs, so what packages in debian squeeze should I have to
> install for the error messages to disappear during compilation of R
> source code.
>
> Thank you
>
> -Sathish
>
> _______________________________________________
> R-SIG-Debian mailing list
> R-SIG-Debian at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-debian

--
Tim Booth <tbooth at ceh.ac.uk>
NERC Environmental Bioinformatics Centre

Centre for Ecology and Hydrology
Maclean Bldg, Benson Lane
Crowmarsh Gifford
Wallingford, England
OX10 8BB

http://nebc.nerc.ac.uk
+44 1491 69 2705
Dirk Eddelbuettel
2013-03-22 17:46:59 UTC
Permalink
On 21 March 2013 at 23:56, Srinivasan, Sathish K wrote:
| Hi everyone,
| I am trying to install R.2.15.3 from the source code obtained from http://cran.cnr.Berkeley.edu/src/base/R-2/R-2.15.3.tar.gz in my Debian version: Squeeze box.

That should exist pre-build. Did you read

http://cran.r-project.org/bin/linux/debian/

and indeed

http://cran.r-project.org/bin/linux/debian/squeeze-cran/

contains 2.15.3 for squeeze.

| In order to have multiple versions of R in my system, I gave this command to configure.
|
| ./configure --prefix=/opt/R2.15.3/
|
| Subsequently, I got two warnings and one error message such as the following:
|
| configure: WARNING: you cannot build PDF versions of the R manuals
| configure: WARNING: you cannot build PDF versions of vignettes and help pages
| configure: error: --with-x=yes (default) and X11 headers/libs are not available
|
| Could someone direct me with a solution to the above issues. From the error messages, I can understand that I am not having the required X11 headers/libs, so what packages in debian squeeze should I have to install for the error messages to disappear during compilation of R source code.

Tim already helped you with this. In essence, you just misread the error message.

But you should not have to build this by hand unless you really need to (and
know how to).

Dirk

--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
Srinivasan, Sathish K
2013-03-22 18:19:46 UTC
Permalink
Hi Dirk,
Thanks for the reply.
I read the link for pre-builds before I posted an email. However, I did not know the way to configure the installation directory using apt-get utility. This is the only reason, why I chose to build and compile the source package where I can configure the installation directory using --prefix option or by passing the directory name to the make command. Do have any suggestion for it please? I mean, if you use apt-get install, it will override the previous installation of R, right? My requirement is to hold onto 2 different versions of R in my system.

Also, this is the first time, I used build-dep feature of apt-get utility, so I have no prior knowledge of building packages for debian.

In one of the stackoverflow answers, http://stackoverflow.com/questions/8343686/how-to-install-2-different-r-versions-on-debian , you mentioned about "local debian build". What is it actually means? You refered diff.gz in your following answers. Could you please expound on it in detail or provide some reading links for it, if possible.

-Sathish
________________________________________
From: Dirk Eddelbuettel [edd at debian.org]
Sent: Friday, March 22, 2013 1:46 PM
To: Srinivasan, Sathish K
Cc: r-sig-debian at r-project.org
Subject: [R-sig-Debian] configure: error: --with-x=yes (default) and X11 headers/libs are not available

On 21 March 2013 at 23:56, Srinivasan, Sathish K wrote:
| Hi everyone,
| I am trying to install R.2.15.3 from the source code obtained from http://cran.cnr.Berkeley.edu/src/base/R-2/R-2.15.3.tar.gz in my Debian version: Squeeze box.

That should exist pre-build. Did you read

http://cran.r-project.org/bin/linux/debian/

and indeed

http://cran.r-project.org/bin/linux/debian/squeeze-cran/

contains 2.15.3 for squeeze.

| In order to have multiple versions of R in my system, I gave this command to configure.
|
| ./configure --prefix=/opt/R2.15.3/
|
| Subsequently, I got two warnings and one error message such as the following:
|
| configure: WARNING: you cannot build PDF versions of the R manuals
| configure: WARNING: you cannot build PDF versions of vignettes and help pages
| configure: error: --with-x=yes (default) and X11 headers/libs are not available
|
| Could someone direct me with a solution to the above issues. From the error messages, I can understand that I am not having the required X11 headers/libs, so what packages in debian squeeze should I have to install for the error messages to disappear during compilation of R source code.

Tim already helped you with this. In essence, you just misread the error message.

But you should not have to build this by hand unless you really need to (and
know how to).

Dirk

--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
Dirk Eddelbuettel
2013-03-22 18:42:40 UTC
Permalink
On 22 March 2013 at 14:19, Srinivasan, Sathish K wrote:
| Hi Dirk,
| Thanks for the reply.
| I read the link for pre-builds before I posted an email. However, I did not know the way to configure the installation directory using apt-get utility. This is the only reason, why I chose to build and compile the source package where I can configure the installation directory using --prefix option or by passing the directory name to the make command. Do have any suggestion for it please? I mean, if you use apt-get install, it will override the previous installation of R, right? My requirement is to hold onto 2 different versions of R in my system.

Sorry, this list supports the packages a few of us provide, pro-bono and in
our spare time. We can't do extra free consulting. You'll need to work
this out.

And yes, it's not hard if you know the details, but I don't have the time or
bandwidth to teach you. Maybe there is a local user group you can tap into.

Otherwise, R itself gives you an entire manual entitled 'R Installation and
Adminstration'. All this is documented.

Sorry, Dirk


|
| Also, this is the first time, I used build-dep feature of apt-get utility, so I have no prior knowledge of building packages for debian.
|
| In one of the stackoverflow answers, http://stackoverflow.com/questions/8343686/how-to-install-2-different-r-versions-on-debian , you mentioned about "local debian build". What is it actually means? You refered diff.gz in your following answers. Could you please expound on it in detail or provide some reading links for it, if possible.
|
| -Sathish
| ________________________________________
| From: Dirk Eddelbuettel [edd at debian.org]
| Sent: Friday, March 22, 2013 1:46 PM
| To: Srinivasan, Sathish K
| Cc: r-sig-debian at r-project.org
| Subject: [R-sig-Debian] configure: error: --with-x=yes (default) and X11 headers/libs are not available
|
| On 21 March 2013 at 23:56, Srinivasan, Sathish K wrote:
| | Hi everyone,
| | I am trying to install R.2.15.3 from the source code obtained from http://cran.cnr.Berkeley.edu/src/base/R-2/R-2.15.3.tar.gz in my Debian version: Squeeze box.
|
| That should exist pre-build. Did you read
|
| http://cran.r-project.org/bin/linux/debian/
|
| and indeed
|
| http://cran.r-project.org/bin/linux/debian/squeeze-cran/
|
| contains 2.15.3 for squeeze.
|
| | In order to have multiple versions of R in my system, I gave this command to configure.
| |
| | ./configure --prefix=/opt/R2.15.3/
| |
| | Subsequently, I got two warnings and one error message such as the following:
| |
| | configure: WARNING: you cannot build PDF versions of the R manuals
| | configure: WARNING: you cannot build PDF versions of vignettes and help pages
| | configure: error: --with-x=yes (default) and X11 headers/libs are not available
| |
| | Could someone direct me with a solution to the above issues. From the error messages, I can understand that I am not having the required X11 headers/libs, so what packages in debian squeeze should I have to install for the error messages to disappear during compilation of R source code.
|
| Tim already helped you with this. In essence, you just misread the error message.
|
| But you should not have to build this by hand unless you really need to (and
| know how to).
|
| Dirk
|
| --
| Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com

--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
Srinivasan, Sathish K
2013-03-22 19:04:31 UTC
Permalink
No problem Dirk :)

Have a good one.
Thanks for chiming in.
-Sathish
_______________________________________
From: Dirk Eddelbuettel [edd at debian.org]
Sent: Friday, March 22, 2013 2:42 PM
To: Srinivasan, Sathish K
Cc: Dirk Eddelbuettel; r-sig-debian at r-project.org
Subject: RE: [R-sig-Debian] configure: error: --with-x=yes (default) and X11 headers/libs are not available

On 22 March 2013 at 14:19, Srinivasan, Sathish K wrote:
| Hi Dirk,
| Thanks for the reply.
| I read the link for pre-builds before I posted an email. However, I did not know the way to configure the installation directory using apt-get utility. This is the only reason, why I chose to build and compile the source package where I can configure the installation directory using --prefix option or by passing the directory name to the make command. Do have any suggestion for it please? I mean, if you use apt-get install, it will override the previous installation of R, right? My requirement is to hold onto 2 different versions of R in my system.

Sorry, this list supports the packages a few of us provide, pro-bono and in
our spare time. We can't do extra free consulting. You'll need to work
this out.

And yes, it's not hard if you know the details, but I don't have the time or
bandwidth to teach you. Maybe there is a local user group you can tap into.

Otherwise, R itself gives you an entire manual entitled 'R Installation and
Adminstration'. All this is documented.

Sorry, Dirk


|
| Also, this is the first time, I used build-dep feature of apt-get utility, so I have no prior knowledge of building packages for debian.
|
| In one of the stackoverflow answers, http://stackoverflow.com/questions/8343686/how-to-install-2-different-r-versions-on-debian , you mentioned about "local debian build". What is it actually means? You refered diff.gz in your following answers. Could you please expound on it in detail or provide some reading links for it, if possible.
|
| -Sathish
| ________________________________________
| From: Dirk Eddelbuettel [edd at debian.org]
| Sent: Friday, March 22, 2013 1:46 PM
| To: Srinivasan, Sathish K
| Cc: r-sig-debian at r-project.org
| Subject: [R-sig-Debian] configure: error: --with-x=yes (default) and X11 headers/libs are not available
|
| On 21 March 2013 at 23:56, Srinivasan, Sathish K wrote:
| | Hi everyone,
| | I am trying to install R.2.15.3 from the source code obtained from http://cran.cnr.Berkeley.edu/src/base/R-2/R-2.15.3.tar.gz in my Debian version: Squeeze box.
|
| That should exist pre-build. Did you read
|
| http://cran.r-project.org/bin/linux/debian/
|
| and indeed
|
| http://cran.r-project.org/bin/linux/debian/squeeze-cran/
|
| contains 2.15.3 for squeeze.
|
| | In order to have multiple versions of R in my system, I gave this command to configure.
| |
| | ./configure --prefix=/opt/R2.15.3/
| |
| | Subsequently, I got two warnings and one error message such as the following:
| |
| | configure: WARNING: you cannot build PDF versions of the R manuals
| | configure: WARNING: you cannot build PDF versions of vignettes and help pages
| | configure: error: --with-x=yes (default) and X11 headers/libs are not available
| |
| | Could someone direct me with a solution to the above issues. From the error messages, I can understand that I am not having the required X11 headers/libs, so what packages in debian squeeze should I have to install for the error messages to disappear during compilation of R source code.
|
| Tim already helped you with this. In essence, you just misread the error message.
|
| But you should not have to build this by hand unless you really need to (and
| know how to).
|
| Dirk
|
| --
| Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com

--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
Srinivasan, Sathish K
2013-03-22 18:36:41 UTC
Permalink
Hi Dirk,
To understand more about the error message, how would I have to properly interpret this error message. I checked my standard output obtained while executing ./configure command. It says, "checking for X... no"

Thanks
-Sathish
_______________________________________
From: Dirk Eddelbuettel [edd at debian.org]
Sent: Friday, March 22, 2013 1:46 PM
To: Srinivasan, Sathish K
Cc: r-sig-debian at r-project.org
Subject: [R-sig-Debian] configure: error: --with-x=yes (default) and X11 headers/libs are not available

On 21 March 2013 at 23:56, Srinivasan, Sathish K wrote:
| Hi everyone,
| I am trying to install R.2.15.3 from the source code obtained from http://cran.cnr.Berkeley.edu/src/base/R-2/R-2.15.3.tar.gz in my Debian version: Squeeze box.

That should exist pre-build. Did you read

http://cran.r-project.org/bin/linux/debian/

and indeed

http://cran.r-project.org/bin/linux/debian/squeeze-cran/

contains 2.15.3 for squeeze.

| In order to have multiple versions of R in my system, I gave this command to configure.
|
| ./configure --prefix=/opt/R2.15.3/
|
| Subsequently, I got two warnings and one error message such as the following:
|
| configure: WARNING: you cannot build PDF versions of the R manuals
| configure: WARNING: you cannot build PDF versions of vignettes and help pages
| configure: error: --with-x=yes (default) and X11 headers/libs are not available
|
| Could someone direct me with a solution to the above issues. From the error messages, I can understand that I am not having the required X11 headers/libs, so what packages in debian squeeze should I have to install for the error messages to disappear during compilation of R source code.

Tim already helped you with this. In essence, you just misread the error message.

But you should not have to build this by hand unless you really need to (and
know how to).

Dirk

--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
Continue reading on narkive:
Search results for '[R-sig-Debian] configure: error: --with-x=yes (default) and X11 headers/libs are not available' (Questions and Answers)
10
replies
What is AIX Box?
started 2006-05-08 15:58:44 UTC
hardware
Loading...