LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-27-2006, 07:40 AM   #1
digicutkid
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Rep: Reputation: 0
cannot compile simple c++?


Hi

I cannot compile simple c++ packages I install gcc-c++ but I get the error message when configuring

"configure: error: Your Installation isn't able to compile simple C++ programs.
Check config.log for details - if you're using a Linux distribution you might miss-"

(the text is cut off at miss)
 
Old 04-27-2006, 07:43 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Probably a $PATH error. Did you look at the config.log file for the details? What did it say?

Edit: Also, why is this posted in "General" instead of "Programming?"

Last edited by PTrenholme; 04-27-2006 at 07:44 AM.
 
Old 04-27-2006, 08:10 PM   #3
digicutkid
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Here is my config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ /home/Sam/moonshine/configure

## --------- ##
## Platform. ##
## --------- ##

hostname = linux
uname -m = i686
uname -r = 2.6.13-15.8-default
uname -s = Linux
uname -v = #1 Tue Feb 7 11:07:24 UTC 2006

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /bin
PATH: /usr/games
PATH: /opt/gnome/bin
PATH: /opt/kde3/bin
PATH: /usr/lib/jvm/jre/bin
PATH: /usr/lib/mit/bin
PATH: /usr/lib/mit/sbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1561: checking build system type
configure:1579: result: i686-pc-linux-gnu
configure:1587: checking host system type
configure:1601: result: i686-pc-linux-gnu
configure:1609: checking target system type
configure:1623: result: i686-pc-linux-gnu
configure:1670: checking for a BSD-compatible install
configure:1725: result: /usr/bin/install -c
configure:1740: checking for -p flag to install
configure:1753: result: yes
configure:1764: checking whether build environment is sane
configure:1807: result: yes
configure:1827: checking for gawk
configure:1843: found /usr/bin/gawk
configure:1853: result: gawk
configure:1863: checking whether make sets $(MAKE)
configure:1883: result: yes
configure:1895: error: source directory already configured; run "make distclean" there first
 
Old 04-28-2006, 02:59 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Does running make distclean help (as suggested at the end of the log-file.
Quote:
Originally Posted by PTrenholme
Edit: Also, why is this posted in "General" instead of "Programming?"
Maybe it's a package that TS want's to install
 
Old 04-28-2006, 03:55 AM   #5
digicutkid
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Original Poster
Rep: Reputation: 0
how do I run distclean?
 
Old 04-28-2006, 05:30 AM   #6
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
What Wim Sturkenboom suggested was to run "make distclean", not "distclean".
 
Old 04-29-2006, 01:31 AM   #7
digicutkid
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Original Poster
Rep: Reputation: 0
I tried installing again and it says i need libstd++-dev
 
Old 05-02-2006, 01:45 AM   #8
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Then download the -devel (development) version of libstd++.
libstd++ is the standard C++ library. Installing the "-devel" extension just
gives you the header files (include files) you'll need to develop code
using libstd++.

In other words, without the -devel extension, you don't get to
#include some_part_of_libstd++
You can only use programs that are dynamically linked to the lib.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple program wont compile BACTRATE Linux - Software 14 07-24-2008 12:57 PM
Simple compile questions raypen Slackware 1 04-02-2006 03:32 PM
Simple C++ code won't compile on 2 out of 3 systems JimChristiansen Programming 4 12-06-2005 04:52 PM
Simple Kernel Compile Question. murphaph Linux - Software 7 03-16-2004 02:49 PM
Why doesn't this simple program compile? SparceMatrix Programming 4 08-27-2002 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration