Re: [R] compiler cannot create executables

From: Dirk Eddelbuettel <edd_at_debian.org>
Date: Wed, 20 Jun 2007 09:34:57 -0500

On Wed, Jun 20, 2007 at 09:10:47AM -0500, Dirk Eddelbuettel wrote:
> 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.

I don't have access to a 'breezy' box anymore but what it could be is that R expects a different compiler version then the system has as default -- g++-4.0 vs g++-3.4.

What does 'grep g++ /etc/R/Makeconf' yield?

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

______________________________________________
R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 20 Jun 2007 - 15:26:34 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 Thu 21 Jun 2007 - 00:32:13 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.