aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: compilation in red hat 9  (Read 10184 times)

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: compilation in red hat 9
« Reply #15 on: May 28, 2006, 11:05:55 PM »

masster, stai linistit ;)

Sorry, but this is the way a package manager works. It tells you that you need a C preprocessor (=cpp) for the C compiler (=gcc). So you need the C preprocessor first, and afterwards you can install the C compiler.

You have to learn how to read the error messages correctly. The error message means that the same versions of cpp and gcc are needed. Trying to use a certain version of cpp with a different version gcc will not work. In other words, you have to update all of them at once.

To resolve the issue, you can do the following: Download everything you need into an otherwise empty directory. This includes at least cpp and gcc, but probably more. An then, change into this directory and execute:
Code: [Select]
rpm -Uvh * --testIf this doesn't return any error messages, you have everything you need and can perform the actual installation:
Code: [Select]
rpm -Uvh *If there are still error messages, you need more packages from the above site. Feel free to post them if you need help, but keep in mind that the actual error messages are much more helpful than emotions. ;)

This is especially important if you ran into the same problem in the past, as you said. rpm is a very helpful tool, but it's necessary to learn it, actually. An update to a recent release of Fedora Core could make your life much easier because it includes yum, a frontend to rpm that handles packages with complex inter-dependencies much better.

As far as it concerns my recommendation, I don't quite understand. You don't want to try compiling aMule 2.1.2 with GCC 3.2 because the installation of GCC 3.3 failed? Why? After the failed installation of GCC 3.3, GCC 3.2 is still your only compiler, why not use it?

Servus ;)
« Last Edit: May 28, 2006, 11:08:14 PM by Gerd78 »
Logged

masster

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: compilation in red hat 9
« Reply #16 on: May 29, 2006, 12:02:52 AM »

ok... I don't get it where it comes this need of telling me the ABC of Linux (such as a needed order when installing packages). This time I'll get over. And only because I didn't mention all errors. So here they are:

1. I downloaded ALL RH9 precompiled RPMs from http://www.trilithium.com/software/misc/ (although not all were needed)

2. I started with cpp-3.3.3-1.i386.rpm (obviously, doh, I knew that). Result:
error: Failed dependencies:
   cpp = 3.2.2-5 is needed by (installed) gcc-3.2.2-5

But cpp 3.2.2.5 IS ALREADY INSTALLED, because when I try to re-install cpp-3.2.2-5.i386.rpm (the SAME one I used to upgrade some 3 months ago) I get:

package cpp-3.2.2-5 is already installed

So how about that??? Installed? Not installed? What is this? Twilight zone? Or a Laurel&Hardy movie?

Oh, and another thing about version 2.1.2 compiled against gcc 3.2.
It DOESN'T WORK, got exactly the same error as the author of this thread (except in English :))
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: compilation in red hat 9
« Reply #17 on: May 29, 2006, 01:39:00 AM »

The error message means that you cannot upgrade cpp from 3.2.2-5 to 3.3.3-1, because the installed gcc-3.2.2-5 requires cpp-3.2.2-5 to be installed, so you canot uninstall it. In order to be able to upgrade, you either
1) install ALL 3.3.3-1 packages with the same command (e.g. rpm -i cpp-3.3.3-1.i386.rpm gcc-3.3.3-1.i386.rpm ...), or
2) first uninstall 3.2.2-5 versions of gcc, cpp, etc, then install the 3.3.3-1 versions.

I do not guarantee that these techniques work as I said, I used rpm long-long time ago, but something similar will be the solution for sure.
Logged
concordia cum veritate

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: compilation in red hat 9
« Reply #18 on: May 29, 2006, 10:11:49 AM »

Quote
Originally posted by masster
2. I started with cpp-3.3.3-1.i386.rpm (obviously, doh, I knew that). Result:
error: Failed dependencies:
   cpp = 3.2.2-5 is needed by (installed) gcc-3.2.2-5

But cpp 3.2.2.5 IS ALREADY INSTALLED, because when I try to re-install cpp-3.2.2-5.i386.rpm (the SAME one I used to upgrade some 3 months ago) I get:

package cpp-3.2.2-5 is already installed

So how about that??? Installed? Not installed? What is this? Twilight zone? Or a Laurel&Hardy movie?
Sorry, masster, please calm down read my posts twice, if needed, and more carefully.

Again: This error message means that cpp-3.2.2-5 is needed by the already installed gcc-3.2.2-5. It is not needed by the to-be-installed gcc-3.3.3-1, but by the old one you already have. You cannot update cpp without updating gcc at the same time (i.e., with the same command) because cpp and gcc must be exactly the same version.

So, please, do the following:

1. Create an empty directory somewhere on your harddisk. Let's say, /tmp/gcc_update:
Code: [Select]
mkdir -p /tmp/gcc_update2. Change into that directory:
Code: [Select]
cd /tmp/gcc_update3. Download the new cpp package into that directory.
4. Test installing all packages that are stored in this directory (cpp only, at the moment):
Code: [Select]
rpm -Uvh * --test5. The error message will be the same as above. And know, after knowing what the error message means, you know that you must update gcc in the same command. Therefore:
6. Download the new gcc package into the same directory
7. Execute the same command as above, again (now it will cover cpp and gcc):
Code: [Select]
rpm -Uvh * --testThis time the error message will be different, and you are one step further. It will tell you that even more packages need to be updated at the same time.
8. Download the new versions of the packages it complains about in step 7. and then repeat step 7.
9. Repeat step 7. for all packages it complains about, until the command
Code: [Select]
rpm -Uvh * --testdoes not return any error message.
10. If you're done resolving the dependencies and the command
Code: [Select]
rpm -Uvh * --testdoes not return any error messages any more, you can perform the real installation:
Code: [Select]
rpm -Uvh *OK?
Logged

masster

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: compilation in red hat 9
« Reply #19 on: May 29, 2006, 02:17:34 PM »

It finally worked!

Thank you Gerd78 and everybody :)
Logged
Pages: 1 [2]