Re: [R] compiler cannot create executables

From: Dirk Eddelbuettel <>
Date: Wed, 20 Jun 2007 09:10:47 -0500

On Wed, Jun 20, 2007 at 10:25:07PM +1000, Robert Dunne wrote:
> Hi List,
> I get an error message "compiler cannot create executables" when I try
> to install a package.
> Searching the list archives reveals many messages with the same error
> message. The advice is generally to install g++ and development libraries.
> However, I have g++ installed and can compile and run programs as myself
> and via sudo. I got the library to install by using
> %sudo R CMD INSTALL --no-configure e1071_1.5-16.tar.gz

This statement of your conflicts with the msg you show below. Do you, or don't you, succeed?

> can anyone explain this? Also where is the config.log that I should look
> in (see output below)? Isn't that in a tmp directory that is removed
> when the install fails?
> % sudo R CMD INSTALL e1071_1.5-16.tar.gz
> Password:
> * Installing *source* package 'e1071' ...
> checking for C++ compiler default output file name... configure: error:
> C++ compiler cannot create executables
> See `config.log' for more details.
> R 2.3.1 on kubuntu breezy (5.10 I think)

Please try

       $ sudo apt-get install r-base-dev

as you seem to missing g++, and probably a host of other things.


Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 20 Jun 2007 - 14:23:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 20 Jun 2007 - 16:32:08 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.