Jump to content

Two gcc at the same time? OO


Guest Azru
 Share

Recommended Posts

After 4 days of downloading and installing rpms I finally got rid of all dependencies, installed X and Qt libraries and ./configure`ed Kdevelop. I run make and got an internal compiler error. *depressed*

I thought that maybe I should upgrade the version of gcc to a more stable version and so this happened:

[root@localhost xlib]# rpm -ivh gcc4.0-4.0.0-0.1mdk.i586.rpm

I received a message that gcc4.0-4.0.0-0.1mdk.i586.rpm has been installed already.

[root@localhost xlib]# urpmi gcc4.0-4.0.0-0.1mdk.i586.rpm

-- it said everything is installed. I tried to check the version of gcc:

[root@localhost xlib]# gcc --version

gcc (GCC) 3.4.1 (Mandrakelinux 10.1 3.4.1-4mdk)

:unsure: And then what packages I have installed on my system:

[root@localhost xlib]# rpm - qa | grep gcc

gcc-cpp-3.4.1-4mdk

gcc4.0-4.0.0-0.1mdk

gcc-3.4.1-4mdk

gcc4.0-cpp-4.0.0-0.1mdk

gcc4.0-c++-4.0.0-0.1mdk

libgcc1-3.4.1-3mdk

Duh... two gcc`s? :o I want to have and run gcc4.0.0. What should I do to get rid of the older version and get the newest one working by default? Any help would be very apprecieated, Im trying to get this working for about 5 days already and have almost no hope left. Thanks in advance.

 

[moved from Software by spinynorman - welcome aboard :)]

Link to comment
Share on other sites

Just run update-alternatives --config gcc and follow the steps (as always read the man page before).

[root@paleo root]# update-alternatives --config gcc
                                                                             
There are 2 programs which provide `gcc'.
                                                                             
 Selection    Command
-----------------------------------------------
*+    1        /usr/bin/gcc-3.4.1
     2        /usr/bin/gcc-4.0.0
                                                                             
Enter to keep the default[*], or type selection number:

 

do the same with c++ and gpp links if you wish. Once gcc's link points to the right version of gcc, you can unisntall the rpm package you don't want (or just keep both versions of gcc installed)

 

HTH

Edited by aru
Link to comment
Share on other sites

Thanks a lot -- it worked. Still... this gave me nothing becouse, Im still getting the damn "internal compiler error" when trying to install Kdevelop even when using gcc4.0.0. But thanks anyway, I learned how to use update-alternatives so its not that bad...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...