LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-10-2004, 09:54 AM   #1
Steagr
LQ Newbie
 
Registered: Dec 2004
Location: Finland
Distribution: Debian Lenny
Posts: 6

Rep: Reputation: 0
the MDK compile problem


Well, I have the same problem as nearly everyone else with Mandrake, my version is 10.1. When I try to do the ./configure in just any program I have tried since I installed my first *nix about 3 days ago, I get the error:

configure: error: C++ preprocessor "/lib/cpp" fails sanity check

so I have tried to install the gcc and such, but when i tried to install gcc-cpp, I get the following error:

[root@localhost Downloads]# rpm -ivh gcc-cpp-3.4.1-4mdk.i586.rpm
warning: gcc-cpp-3.4.1-4mdk.i586.rpm: V3 DSA signature: NOKEY, key ID 70771ff3
Preparing... ########################################### [100%]
file /usr/bin/cpp-3.4.1 from install of gcc-cpp-3.4.1-4mdk conflicts with file from package gcc-cpp-3.4.1-3mdk
file /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/cc1 from install of gcc-cpp-3.4.1-4mdk conflicts with file from package gcc-cpp-3.4.1-3mdk
file /usr/share/man/man1/cpp.1.bz2 from install of gcc-cpp-3.4.1-4mdk conflicts with file from package gcc-cpp-3.4.1-3mdk

how can i fix the problem? I think I removed the cpp-3.4.1, cc1 and cpp.1.bz2 things with rm command, but it still says the same. I suppose I'm doing completely wrong things, what could fix the ./configure problem?

Last edited by Steagr; 12-10-2004 at 09:57 AM.
 
Old 12-10-2004, 10:35 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
instead of "rpm -ivh", try "rpm -Uvh" to let rpm know that you want to upgrade an existing package. By the way the best method to manage packages on Mandrake is to use urpmi. There are instructions on the easyurpmi website. Once configured you can use Mandrake Control Center software tool or the command line to upgrade, install or remove packages.
 
Old 12-10-2004, 11:10 AM   #3
Steagr
LQ Newbie
 
Registered: Dec 2004
Location: Finland
Distribution: Debian Lenny
Posts: 6

Original Poster
Rep: Reputation: 0
Ok, thanks! It worked, but I still have a problem:

[root@localhost Downloads]# rpm -Uvh gcc-cpp-3.4.1-4mdk.i586.rpm
warning: gcc-cpp-3.4.1-4mdk.i586.rpm: V3 DSA signature: NOKEY, key ID 70771ff3
error: Failed dependencies:
gcc-cpp = 3.4.1-3mdk is needed by (installed) gcc-3.4.1-3mdk
[root@localhost Downloads]#

I just can't figure out what does that mean. Am I trying to install a wrong version of gcc-cpp?
 
Old 12-10-2004, 12:25 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
You need to upgrade gcc and gcc-cpp at the same time. What your error means is that you are trying to install a newer version of gcc-cpp without upgrading gcc first.

Anyway I looked at your initial error message, before upgrading anything try doing the following as root,

ln -s /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/cc1 /usr/bin/cc1plus
 
Old 12-12-2004, 08:38 AM   #5
Steagr
LQ Newbie
 
Registered: Dec 2004
Location: Finland
Distribution: Debian Lenny
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks, compiling works now after upgrading gcc and gcc-cpp.
 
Old 12-13-2004, 12:22 PM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
You are welcome
 
  


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
Hydrogen compile on mdk 10.1 buzz3953 Linux - Software 4 04-19-2005 04:41 PM
MDK 10.1 - QT 3.3.3 Won't Compile DoddyUK Linux - Software 2 01-21-2005 07:14 PM
Cyrus 2.2.3 won't compile on MDK 9.2 tisource Linux - Networking 0 02-04-2004 08:38 PM
a few 2.6 compile problems on mdk 9.2 rainchill Linux - Software 1 10-16-2003 08:56 AM
How do i re-compile the MDK 9.0 KERNEL? apostglen46 Mandriva 2 08-23-2003 10:27 AM


All times are GMT -5. The time now is 12:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration