LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   the MDK compile problem (https://www.linuxquestions.org/questions/linux-newbie-8/the-mdk-compile-problem-264846/)

Steagr 12-10-2004 08:54 AM

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? :(

reddazz 12-10-2004 09:35 AM

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.

Steagr 12-10-2004 10:10 AM

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? :(

reddazz 12-10-2004 11:25 AM

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

Steagr 12-12-2004 07:38 AM

Thanks, compiling works now after upgrading gcc and gcc-cpp. :)

reddazz 12-13-2004 11:22 AM

You are welcome :D


All times are GMT -5. The time now is 02:13 AM.