You are not logged in.

#1 2015-05-02 14:45:33

Arcoth
Member
Registered: 2015-05-02
Posts: 2

How to install GCC 5.1 [SOLVED]

Hi all,

I'm trying to install the [testing]-version of GCC 5.1. It requires gcc-libs 5.1 [testing] to be installed, so I downloaded the corresponding tar.xz file and tried to pacman -U it.
However, gcc-libs 5.1 requires 4.9.2-4 to be installed. Which it is. But apparently it isn't recognized.

[xxx@ccc Downloads]$ sudo pacman -U gcc-libs-5.1.0-1-x86_64.pkg.tar.xz
[sudo] Passwort für xxx:
Lade Pakete...
Löse Abhängigkeiten auf...
Suche nach in Konflikt stehenden Paketen...
Fehler: Konnte den Vorgang nicht vorbereiten (Kann Abhängigkeiten nicht erfüllen)
:: gcc: benötigt gcc-libs=4.9.2-4
[xxx@ccc Downloads]$ sudo pacman -U gcc-libs-4.9.2-4-x86_64.pkg.tar.xz
Lade Pakete...
Warnung: gcc-libs-4.9.2-4 ist aktuell -- Reinstalliere
Löse Abhängigkeiten auf...
Suche nach in Konflikt stehenden Paketen...

Pakete (1) gcc-libs-4.9.2-4

Gesamtgröße der zu installierenden Pakete:  13,26 MiB
Größendifferenz der Aktualisierung:        0,00 MiB

:: Installation fortsetzen? [J/n] n

Is that a bug or am I missing something?

Last edited by Arcoth (2015-05-02 23:04:09)

Offline

#2 2015-05-02 15:04:16

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: How to install GCC 5.1 [SOLVED]

Arcoth wrote:

am I missing something?

You should enable the [testing] repositories in /etc/pacman.conf rather than try to install individual packages.
https://wiki.archlinux.org/index.php/Of … es#testing

Also, prepend commands with `LC_ALL=C` to get them to output in English.

Offline

#3 2015-05-02 15:06:36

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: How to install GCC 5.1 [SOLVED]

You need to enable the testing repo in /etc/pacman.conf and then refresh your pacman database.  Also I good idea to set your LC_ALL=C for English when troubleshooting in the forums.  Welcome to Arch.

Last edited by graysky (2015-05-02 15:14:33)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2015-05-02 15:13:52

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,868
Website

Re: How to install GCC 5.1 [SOLVED]

Not everyone has the en_US.UTF-8 locale generated, Graysky. LC_ALL=C is the recommended setting.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2015-05-02 15:14:41

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: How to install GCC 5.1 [SOLVED]

Thanks WM.   Edited.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2015-05-02 15:57:46

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: How to install GCC 5.1 [SOLVED]

Arcoth wrote:

However, gcc-libs 5.1 requires 4.9.2-4 to be installed. Which it is. But apparently it isn't recognized.

No, the gcc package that you currently have installed (presumably 4.9.2-4) requires gcc-libs-4.9.2-4, which you are trying to upgrade to 5.1 -- you can't do that without breaking gcc (or upgrading gcc in the same transaction).

Offline

#7 2015-05-02 16:12:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to install GCC 5.1 [SOLVED]

Arcoth wrote:

Is that a bug or am I missing something?

You misunderstood pacman's output. Read https://bbs.archlinux.org/viewtopic.php … 0#p1524530 , it's a similar issue.

Offline

#8 2015-05-02 17:11:23

Arcoth
Member
Registered: 2015-05-02
Posts: 2

Re: How to install GCC 5.1 [SOLVED]

karol wrote:
Arcoth wrote:

Is that a bug or am I missing something?

You misunderstood pacman's output.

I just now saw it. smile

I'm currently compiling GCC from source anyway though, to keep the bleeding-edge, so I won't need that package. Once it becomes official I'll just upgrade as usual.

Thanks, everyone!

Offline

#9 2015-05-02 23:02:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to install GCC 5.1 [SOLVED]

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB