LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-13-2006, 06:41 AM   #1
hraposo
Member
 
Registered: Aug 2004
Posts: 370

Rep: Reputation: 30
compile a programm error


I tried compile a programm but the output of :/configure was:

checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check

I think that it misses any package concerned with c++.
Who knows the problem?
 
Old 08-13-2006, 06:46 AM   #2
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Is cpp installed?

which cpp
You should end up with: /usr/bin/cpp (or alike), not something like: which: no cpp in (/bin:/usr/.........

If it is installed, is there a link from /lib/cpp to /usr/bin/cpp?

ls -l /lib/cpp
Something like this should appear: lrwxrwxrwx 1 root root 14 May 29 2004 /lib/cpp -> ../usr/bin/cpp

Hope this helps.
 
Old 08-13-2006, 07:00 AM   #3
hraposo
Member
 
Registered: Aug 2004
Posts: 370

Original Poster
Rep: Reputation: 30
the cpp is installed
When a type:
ls -l /lib/cpp
Appears:
lrwxrwxrwx 1 root root 16 2006-08-10 19:25 /lib/cpp -> /usr/bin/cpp-3.3
 
Old 08-13-2006, 07:24 AM   #4
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

What does adding the --verbose option tell you? You could do a cpp --verbose, but you probably need to do a ctrl-c at the end (if you get that far).
 
Old 08-14-2006, 06:45 AM   #5
nuxrl
Member
 
Registered: Jun 2006
Location: NY, USA
Distribution: Slackware, Arch
Posts: 176

Rep: Reputation: 35
Did you check to see if /usr/bin/cpp-3.3 is there?

Could it be a version compatibility problem? Mine has 4.0 installed...
 
Old 08-14-2006, 08:34 AM   #6
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
In Ubuntu, you need to install the build-essential package before compiling will work:
Code:
sudo aptitude install build-essential
--Ian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Several "undefined reference to" error when compiling a C programm acer_peri Programming 8 12-11-2008 05:45 AM
compile a programm hraposo Fedora 5 07-28-2006 01:11 PM
Compile madwifi, ... compile error , how can i do. ERBRMN Linux - Networking 3 03-08-2006 07:56 PM
how to compile programm for suse 9.3? moog Linux - Newbie 6 10-16-2005 07:42 PM
How can I compile a programm that needsGTK 1.xx-2.4 incompatibility GDuru Linux - Newbie 1 10-17-2003 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:59 PM.

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