LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-06-2011, 07:10 AM   #1
milarze
LQ Newbie
 
Registered: Apr 2011
Distribution: Mandriva, Ubuntu 11.04
Posts: 24

Rep: Reputation: 0
Cannot install gcc4.2-c++ package.


Hello
I am very new to linux, so please bear with my ignorance.
I am running Mandriva Linux 2010.2 KDE on my Dell Dimension 5150 desktop. Using the software manager, I tried selecting the gcc4.2-c++ package for the compiler but I get the message:
Quote:
Sorry, the following package cannot be selected:

- gcc4.2-c++-4.2.3-6mnb2.i586
Can anyone tell me what is wrong?

Thank you
 
Old 05-06-2011, 11:29 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
May be : # urpmi.update -a


The command # urpmi gcc4.2-c++
... installs gcc4.2-c++ here without any problems.

'gcc4.2-c++' is in the main repo :
http://distrib-coffee.ipsl.jussieu.f.../main/release/

..
 
Old 05-07-2011, 03:52 AM   #3
milarze
LQ Newbie
 
Registered: Apr 2011
Distribution: Mandriva, Ubuntu 11.04
Posts: 24

Original Poster
Rep: Reputation: 0
I ran the two commands, and I got:

Code:
[root@localhost ezralim]# urpmi.update -a
medium "Main" is up-to-date
medium "Contrib Updates" is up-to-date
medium "Non-free" is up-to-date
medium "Non-free Updates" is up-to-date
medium "PLF Free" is up-to-date
medium "PLF Non-free" is up-to-date
medium "PLF Free2" is up-to-date
medium "PLF Non-free2" is up-to-date
medium "PLF Free3" is up-to-date
medium "PLF Non-free3" is up-to-date
[root@localhost ezralim]# urpmi gcc4.2-c++
The following packages can't be installed because they depend on packages
that are older than the installed ones:
glibc-devel-2.11.1-8mnb2
gcc4.2-4.2.3-6mnb2
gcc4.2-c++-4.2.3-6mnb2
Continue installation anyway? (Y/n)
Should I continue? Or do I have to install older packages?
 
Old 05-07-2011, 06:41 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
It seems that you have an updated glibc*. (I have the release version.)

Suggest : # rpm -Uvh --nodeps gcc4.2-4.2.3-6mnb2* gcc4.2-c++-4.2.3-6mnb2*


It shouldn't really matter, that glibc* was updated.
I can only see the issue as an error in the gcc4.2 install scripts.
 
Old 05-08-2011, 09:32 AM   #5
milarze
LQ Newbie
 
Registered: Apr 2011
Distribution: Mandriva, Ubuntu 11.04
Posts: 24

Original Poster
Rep: Reputation: 0
I did as you suggested and I got this:
Quote:
# rpm -Uvh --nodeps gcc4.2-4.2.3-6mnb2* gcc4.2-c++-4.2.3-6mnb2*
error: File not found by glob: gcc4.2-4.2.3-6mnb2*
error: File not found by glob: gcc4.2-c++-4.2.3-6mnb2*
So i guess I dont have the file.
 
Old 05-08-2011, 03:18 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
If you have downloaded the files at your install attempt,
using the 'software manager', they may still be present in
/var/cache/urpmi/rpms/ .


Else you will have to download both packages :
32bits
http://distrib-coffee.ipsl.jussieu.f.../main/release/
64bits
http://distrib-coffee.ipsl.jussieu.f.../main/release/
..
 
1 members found this post helpful.
Old 05-09-2011, 01:05 AM   #7
milarze
LQ Newbie
 
Registered: Apr 2011
Distribution: Mandriva, Ubuntu 11.04
Posts: 24

Original Poster
Rep: Reputation: 0
Does that mean I have to install both packages as well?
 
Old 05-09-2011, 01:11 AM   #8
milarze
LQ Newbie
 
Registered: Apr 2011
Distribution: Mandriva, Ubuntu 11.04
Posts: 24

Original Poster
Rep: Reputation: 0
Now when I try to install the 64bit package, I get this:

Quote:
[root@localhost Downloads]# urpmi gcc4.2-c++-4.2.3-6mnb2.x86_64.rpm
Incompatible architecture for rpm [gcc4.2-c++-4.2.3-6mnb2.x86_64.rpm]
error registering local packages
[root@localhost Downloads]#
I am wondering now if I downloaded the correct file.
 
Old 05-09-2011, 05:03 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Sorry, it was indicated in post # 1, that you have "i586" = 32bits.

Required packages : 1) gcc4.2-4.2.3-6mnb2.i586.rpm
ftp://ftp.sunet.se/pub/Linux/distrib...6mnb2.i586.rpm
2) gcc4.2-c++-4.2.3-6mnb2.i586.rpm
ftp://ftp.sunet.se/pub/Linux/distrib...6mnb2.i586.rpm

The rpm.pbone provided "ftp.sunet.se" link (devel) is much faster
than the direct Mandriva link ( //distrib-coffee.ipsl..).


Official link "ftp.sunet.se/pub/Linux/distributions/Mandriva/official/2010.2" =
ftp://ftp.sunet.se/pub/Linux/distrib.../main/release/

..

Last edited by knudfl; 05-09-2011 at 05:20 AM.
 
Old 05-10-2011, 12:42 AM   #10
milarze
LQ Newbie
 
Registered: Apr 2011
Distribution: Mandriva, Ubuntu 11.04
Posts: 24

Original Poster
Rep: Reputation: 0
I still get the message that packages canīt be installed because they depend on other packages older than those installed. Anyone have an idea what I should do?

Thanks!
 
Old 05-10-2011, 04:35 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
1) # rpm -Uvh --nodeps gcc4.2-4.2.3-6mnb2.i586.rpm

2) # rpm -Uvh --nodeps gcc4.2-c++-4.2.3-6mnb2.i586.rpm
 
1 members found this post helpful.
Old 05-12-2011, 02:00 AM   #12
milarze
LQ Newbie
 
Registered: Apr 2011
Distribution: Mandriva, Ubuntu 11.04
Posts: 24

Original Poster
Rep: Reputation: 0
Thanks! It seems to install properly now, but I still get the message that packages canīt be installed because they depend on other packages older than those installed, this occurs when I try to install Code::blocks. If I continue with the installation, it kind of installs but i canīt use the program.

Quote:
[root@localhost Downloads]# urpmi codeblocks-10.05-0.mdv2010.i586.rpm
The following packages can't be installed because they depend on packages
that are older than the installed ones:
glibc-devel-2.11.1-8mnb2
gcc-4.4.3-2mnb2
libwxgtku2.8-devel-2.8.10-6mdv2010.1
libmesaglu1-devel-7.8.1-6mdv2010.1
codeblocks-10.05-0.mdv2010
libSDL-devel-1.2.14-1mdv2010.1
Continue installation anyway? (Y/n) y
[root@localhost Downloads]#
Thereīs nothing after this and I canīt run Code::Blocks on my machine either.

Thanks!
 
Old 05-13-2011, 04:26 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Version 10.05 : codeblocks-10.05-0.mdv2010.i586.rpm is really too old.
It is not the version for 2010.2.

Please use : codeblocks-10.05-1mdv2010.1.i586.rpm from
"Mandriva/official/2010.2/i586/media/contrib/backports/"
ftp://ftp.sunet.se/pub/os/Linux/dist...010.1.i586.rpm

ftp://ftp.sunet.se/pub/os/Linux/dist...rib/backports/
Quote:
Continue installation anyway? (Y/n) y
No means : Nothing gets installed.
Yes means: Nothing gets installed. Unless everything fits together.
It's a peculiarity with urpmi / the 'Package Installer' :
Has been that way all years.
( I started out with Mandrake 8.2, year 2002 ( Slackware 8.1 was my main OS.))

..
 
1 members found this post helpful.
Old 05-13-2011, 09:08 AM   #14
dimpleboy
LQ Newbie
 
Registered: May 2011
Location: quezon city, philippines
Posts: 13

Rep: Reputation: 0
im not sure with this, but isn't there any compatibility issue/requirement issue between the gcc4.2-c++ against your machine?
 
Old 05-13-2011, 09:26 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
If you mean any install problems : No.
Everything is installed smoothly, with no errors at all.


If you mean using the gcc4.2-c++ compiler, then please tell
which errors this is about.
 
  


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
What are the steps to build and install a Slackware package from a RPM package? sudeepkulkarni Slackware 6 04-25-2011 01:51 PM
RH9.3 install gcc4.2.2 ,libstdc++.so.6 problem bangqian.chen Linux - Software 4 12-11-2007 09:44 PM
[SOLVED] gcc4.1.1 install issue. brave heart Red Hat 8 08-27-2007 05:13 AM
install GCC3.2 but remain GCC4.1 in FC6 oneday Linux - Software 1 08-22-2007 06:51 AM
trying to install gcc4.3 from downloaded archive piccolo solo Linux - Software 15 04-09-2006 04:19 AM


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