LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-03-2004, 09:51 PM   #1
ducttapeBigSexy
LQ Newbie
 
Registered: Dec 2004
Location: Southeast WI
Distribution: Mandrake
Posts: 3

Rep: Reputation: 0
MDK 10.1 CE and gcc-c++


I've been working on this problem for a while, and I am completely lost and getting pretty frustrated!

Whenever I try to compile a C++ program, I get the error that it can't find a suitable C++ compiler. In addition, I've tried installing rpm-build 4.2.2, and it gives me the following error:

Quote:
Some package requested cannot be installed:
rpm-build-4.2.2-15mdk.i586 (due to unsatisfied gcc-c++)
I've installed the entire development directory in the package manager, but I'm still having these problems.

If it makes any difference, the only thing I've really changed under it is that I'm running the 2.4 enterprise kernel (the one shipped with 10.1) instead of the default 2.6 kernel (I'm trying to make a LiveCD with the mklivecd scripts from www - linuxminicd - org / mklivecd /, and I know live cds don't play too well with the 2.6 kernel).

Any ideas on what I can do?
 
Old 12-04-2004, 10:21 PM   #2
ducttapeBigSexy
LQ Newbie
 
Registered: Dec 2004
Location: Southeast WI
Distribution: Mandrake
Posts: 3

Original Poster
Rep: Reputation: 0
Just an update, I've tried running Mandrake under the default 2.6 kernel that's included with it, and I also installed the kernel source (idk if it's true, but I've heard that many c++ programs require the kernel to be installed for the programs to compile). I'm still getting the same errors whenever I try to compile a program ("configure: error: C++ preprocessor "/lib/cpp" fails sanity check") and when I try to install rpm-build.

If it makes any difference at all (I doubt it does), I'm running this under VMware 4.5.2 under Windows XP Home SP2.

I am seriously out of ideas (switching to the 2.6 kernel was my last lead I had). Do you think I should just try and figure out how to install gcc myself? I want to try to keep that option until the end b/c from what I've read, installing gcc manually is a huge pain in the neck.
 
Old 12-05-2004, 01:39 PM   #3
ducttapeBigSexy
LQ Newbie
 
Registered: Dec 2004
Location: Southeast WI
Distribution: Mandrake
Posts: 3

Original Poster
Rep: Reputation: 0
Well, I figured it out on my own. Apparently MDK 10.1 CE doesn't really come with gcc (or it's just really outdated). I just downloaded gcc, gcc-cpp, and gcc-c++ off of pbone.net and it's working great. Ah well - thanks anyway!
 
Old 12-05-2004, 05:44 PM   #4
ben_build#2.1.0
Member
 
Registered: Apr 2004
Distribution: Fedora Core 3
Posts: 240

Rep: Reputation: 30
for anyone trying this, configure urpmi (read the sticky on top of this forum) and type in "urpmi gcc-c++". (without the quotes). It solved my problem.
 
  


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
Cant access linux filesystem ext3 after upgrading from mdk 9.1 to mdk 10 drewineal Linux - Newbie 1 02-27-2005 03:45 PM
Diff between mdk 10.1 official and mdk 10.1 community Damitha Mandriva 2 12-13-2004 02:01 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM
gcc problems in MDK 9.0 m4rqs Linux - General 1 10-08-2002 02:34 PM

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

All times are GMT -5. The time now is 02:03 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