Unable to install gcc-c++ 5.4.0-5 [SOLVED]

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Unable to install gcc-c++ 5.4.0-5 [SOLVED]

Postby leon244 » Jul 13th, '18, 13:20

I am trying to compile FreeCad 0.17. When I run cmake I get an error:
Code: Select all
CMake Error at CMakeLists.txt:1 (project):
  No CMAKE_CXX_COMPILER could be found.

I tried installing gcc-c++ 5,4,0-5 and get the error
Code: Select all
Sorry, the following package cannot be selected:
- gcc-c++-5.4.0-5.mga6.x86_64

When I run urpmi from the command line I get:
Code: Select all
The following package cannot be installed because it depends on packages
that are older than the installed ones:
gcc-c++-5.4.0-5.mga6

My installed gcc packages are
Code: Select all
gcc-5.5.0-1.mga6
gcc-plugins-5.5.0-1.mga6
gcc-cpp-5.5.0-1.mga6
libgcc1-5.5.0-1.mga6

I am up to date in all my packages as far as I know. I am able to install gcc3.3++, but the compiler says that is too old and it need a newer version (above 4,2) to run,
Is there a way to see which dependencies are the problem?
Is there a way to install the gcc-c++ compiler?
Thank you.
Last edited by leon244 on Jul 15th, '18, 15:28, edited 1 time in total.
leon244
 
Posts: 74
Joined: Jun 4th, '11, 19:41
Location: Massachusetts, USA

Re: Unable to install gcc-c++ 5.4.0-5

Postby doktor5000 » Jul 13th, '18, 13:27

You don't need to compile it, freeimage can also be installed as appimage, see the recent posts in viewtopic.php?f=7&t=12200

For the gcc+c++ problem, please provide the complete outputs as root of
Code: Select all
urpmq --list-media active --list-url
urpmi --debug gcc-c++
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14539
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Unable to install gcc-c++ 5.4.0-5

Postby leon244 » Jul 13th, '18, 13:45

media active
Code: Select all
Local_RPMs file://Data/Downloads/RPMS
Core Release2 http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/core/release
Core Release Debug http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/debug/core/release
Core Updates http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/core/updates
Core Updates Debug http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/debug/core/updates
Core Updates Testing Debug http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/debug/core/updates_testing
Core Backports http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/core/backports
Nonfree Release2 http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/nonfree/release
Nonfree Updates http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/nonfree/updates
Nonfree Updates Debug http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/debug/nonfree/updates
Nonfree Updates Testing Debug http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/debug/nonfree/updates_testing
Nonfree Backports http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/nonfree/backports
Tainted Release http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/tainted/release
Tainted Updates http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/tainted/updates
Core 32bit Release http://mirror.math.princeton.edu/pub/mageia/distrib/6/i586/media/core/release
Core 32bit Updates http://mirror.math.princeton.edu/pub/mageia/distrib/6/i586/media/core/updates
Nonfree 32bit Release http://mirror.math.princeton.edu/pub/mageia/distrib/6/i586/media/nonfree/release
Nonfree 32bit Updates http://mirror.math.princeton.edu/pub/mageia/distrib/6/i586/media/nonfree/updates
Tainted 32bit Release http://mirror.math.princeton.edu/pub/mageia/distrib/6/i586/media/tainted/release

--debug gcc-c++
Code: Select all
getting lock on urpmi
parsing: /etc/urpmi/mediacfg.d/Official-6-x86_64
loading mirrors cache
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
using mirror http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64
examining synthesis file [/var/lib/urpmi/Local_RPMs/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core Release2/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core Release Debug/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core Updates/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core Updates Debug/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core Updates Testing Debug/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core Backports/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Release2/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Updates/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Updates Debug/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Updates Testing Debug/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Backports/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Tainted Release/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Tainted Updates/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core 32bit Release/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core 32bit Updates/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree 32bit Release/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree 32bit Updates/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Tainted 32bit Release/synthesis.hdlist.cz]
getting exclusive lock on rpm
search_packages: found gcc-c++-5.4.0-5.mga6.x86_64 matching gcc-c++
found package(s): gcc-c++-5.4.0-5.mga6.x86_64
opening rpmdb (root=, write=)
selecting gcc-c++-5.4.0-5.mga6.x86_64
requiring gcc[== 5.4.0-5.mga6],libstdc++-devel[== 5.4.0],libstdc++6[== 5.4.0] for gcc-c++-5.4.0-5.mga6.x86_64
chosen libstdc++-devel-5.4.0-5.mga6.x86_64 for libstdc++-devel[== 5.4.0]
the more recent libstdc++-devel-5.5.0-1.mga6.x86_64 is installed, but does not provide libstdc++-devel[== 5.4.0] whereas libstdc++-devel-5.4.0-5.mga6.x86_64 does
selecting libstdc++-devel-5.4.0-5.mga6.x86_64
unselecting libstdc++-devel-5.4.0-5.mga6.x86_64
unselecting gcc-c++-5.4.0-5.mga6.x86_64
requiring libstdc++6[== 5.4.0-5.mga6] for libstdc++-devel-5.4.0-5.mga6.x86_64
The following package cannot be installed because it depends on packages
that are older than the installed ones:
gcc-c++-5.4.0-5.mga6
Continue installation anyway? (Y/n)
scheduled sets of transactions:
unlocking urpmi database
unlocking rpm database
While some packages may have been installed, there were failures.
The following package cannot be installed because it depends on packages
that are older than the installed ones:
gcc-c++-5.4.0-5.mga6


Thank you, I will also look at the AppImage
leon244
 
Posts: 74
Joined: Jun 4th, '11, 19:41
Location: Massachusetts, USA

Re: Unable to install gcc-c++ 5.4.0-5

Postby doktor5000 » Jul 13th, '18, 16:17

Well, you have quite the mixup there, a lot of debug, testing and backports repositories active. And at some point you installed some packages from there, and now you can't install gcc-c++ because one of the dependencies is newer then what the normal package from the repositories permits. Apart from that you're also missing Tainted 32bit Updates.

Please disable at least the following repositories permanently:
leon244 wrote:
Code: Select all
Core Release Debug http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/debug/core/release
Core Updates Debug http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/debug/core/updates
Core Updates Testing Debug http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/debug/core/updates_testing
Core Backports http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/core/backports
Nonfree Updates Debug http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/debug/nonfree/updates
Nonfree Updates Testing Debug http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/debug/nonfree/updates_testing
Nonfree Backports http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/nonfree/backports


leon244 wrote:chosen libstdc++-devel-5.4.0-5.mga6.x86_64 for libstdc++-devel[== 5.4.0]
the more recent libstdc++-devel-5.5.0-1.mga6.x86_64 is installed, but does not provide libstdc++-devel[== 5.4.0] whereas libstdc++-devel-5.4.0-5.mga6.x86_64 does
selecting libstdc++-devel-5.4.0-5.mga6.x86_64
unselecting libstdc++-devel-5.4.0-5.mga6.x86_64
unselecting gcc-c++-5.4.0-5.mga6.x86_64
requiring libstdc++6[== 5.4.0-5.mga6] for libstdc++-devel-5.4.0-5.mga6.x86_64
The following package cannot be installed because it depends on packages
that are older than the installed ones:
gcc-c++-5.4.0-5.mga6


This is what's available in regular repositories:

Code: Select all
[doktor5000@Mageia6]─[16:16:16]─[~] urpmf -m -f --name libstdc++-devel
Core Release:libstdc++-devel-5.4.0-5.mga6.x86_64
Core Updates:libstdc++-devel-5.5.0-1.mga6.x86_64
Core 32bit Release:libstdc++-devel-5.4.0-5.mga6.i586
Core 32bit Updates:libstdc++-devel-5.5.0-1.mga6.i586
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14539
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Unable to install gcc-c++ 5.4.0-5

Postby leon244 » Jul 13th, '18, 17:19

Thank you. I will get to work
leon244
 
Posts: 74
Joined: Jun 4th, '11, 19:41
Location: Massachusetts, USA

Re: Unable to install gcc-c++ 5.4.0-5

Postby leon244 » Jul 13th, '18, 17:38

I tried to clean everything up. Removed the media and removed the libstdc++-5.5. I ran the --debug and found I also have gcc-5.5.0-1.mga6 and this will not allow the install of gcc++. If I try to remove it I get a message that a lot of other stuff need to be removed including kernels and dkms. I will just go with the AppImage for now. Thank yoiu
leon244
 
Posts: 74
Joined: Jun 4th, '11, 19:41
Location: Massachusetts, USA

Re: Unable to install gcc-c++ 5.4.0-5

Postby doktor5000 » Jul 14th, '18, 11:24

What you could do is run urpmq --not-available which will show you all packages that are not contained in the currently enabled repositories.
Then you could run urpmi --downgrade on all of those packages together to downgrade all of them in one go, then it will not remove any package.
Best post the output of
Code: Select all
urpmq --list-media active --list-url
urpmq --not-available
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14539
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Unable to install gcc-c++ 5.4.0-5

Postby leon244 » Jul 14th, '18, 12:37

not_available_list_071418.txt
List of unavailable packages per request
(37.43 KiB) Downloaded 4 times
output of --list-media active
Code: Select all
Local_RPMs file://Data/Downloads/RPMS
Core Release2 http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/core/release
Core Updates http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/core/updates
Nonfree Release2 http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/nonfree/release
Nonfree Updates http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/nonfree/updates
Tainted Release http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/tainted/release
Tainted Updates http://mirror.math.princeton.edu/pub/mageia/distrib/6/x86_64/media/tainted/updates
Core 32bit Release http://mirror.math.princeton.edu/pub/mageia/distrib/6/i586/media/core/release
Core 32bit Updates http://mirror.math.princeton.edu/pub/mageia/distrib/6/i586/media/core/updates
Nonfree 32bit Release http://mirror.math.princeton.edu/pub/mageia/distrib/6/i586/media/nonfree/release
Nonfree 32bit Updates http://mirror.math.princeton.edu/pub/mageia/distrib/6/i586/media/nonfree/updates
Tainted 32bit Release http://mirror.math.princeton.edu/pub/mageia/distrib/6/i586/media/tainted/release
Tainted 32bit Updates http://mirror.math.princeton.edu/pub/mageia/distrib/6/i586/media/tainted/updates

output of --not-available is a list of 1000 packages, so I am not sure you want the whole list. Filtered for gcc I get
Code: Select all
gcc-5.5.0-1.mga6.x86_64
gcc-plugins-5.5.0-1.mga6.x86_64
gcc-cpp-5.5.0-1.mga6.x86_64
libgcc1-5.5.0-1.mga6.x86_64
and for c++
Code: Select all
libstdc++6-5.5.0-1.mga6.x86_64
lib64flac++6-1.3.2-1.1.mga6.x86_64

The complete list is in the attached text file
leon244
 
Posts: 74
Joined: Jun 4th, '11, 19:41
Location: Massachusetts, USA

Re: Unable to install gcc-c++ 5.4.0-5

Postby doktor5000 » Jul 14th, '18, 19:59

So you already have more then 1000 packages installed from the testing and backports repositories, which is not really a good or consistent state ...

You can try the downgrade with urpmi but I believe you also need to specify the version that you want to downgrade TO (unlike with yum/dnf). You can try with
Code: Select all
urpmi --downgrade gcc gcc-plugins gcc-cpp libstdc++6
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14539
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Unable to install gcc-c++ 5.4.0-5

Postby leon244 » Jul 14th, '18, 23:25

doktor5000 wrote:You can try the downgrade with urpmi but I believe you also need to specify the version that you want to downgrade TO (unlike with yum/dnf). You can try with

Code: Select all
urpmi --downgrade gcc gcc-plugins gcc-cpp libstdc++6


So I tried exactly as you wrote and 14 packages were identified and downgraded putting me back to gcc 5.4, I then rebooted and all seemed OK. I installed gcc-c++ 5.4 without a problem. Now I will just wait and make sure my system stays stable before doing anything further.
Thank you for your patience and help.
leon244
 
Posts: 74
Joined: Jun 4th, '11, 19:41
Location: Massachusetts, USA

Re: Unable to install gcc-c++ 5.4.0-5

Postby leon244 » Jul 15th, '18, 15:27

Everything seems OK now. I will mark SOLVED
leon244
 
Posts: 74
Joined: Jun 4th, '11, 19:41
Location: Massachusetts, USA


Return to Basic support

Who is online

Users browsing this forum: doktor5000 and 0 guests