You are not logged in.

#1 2010-09-18 11:14:31

CheatCat
Member
Registered: 2009-07-10
Posts: 54

[Solved] Install gcc 4.5.1 and all dependencies

There is anyway to install gcc 4.5.1 using pacman? It have lots of (unstable?) dependencies and it's time consuming to install them one by one.
Sorry if that question have be asked many times, but I can't find any solutions other than download them manually.

Last edited by CheatCat (2010-09-18 12:59:33)

Offline

#2 2010-09-18 11:38:06

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [Solved] Install gcc 4.5.1 and all dependencies

pacman -S gcc   !!!

Offline

#3 2010-09-18 11:49:41

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [Solved] Install gcc 4.5.1 and all dependencies

Allan wrote:

pacman -S gcc   !!!

Wtf is pacman? oO


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2010-09-18 11:57:01

CheatCat
Member
Registered: 2009-07-10
Posts: 54

Re: [Solved] Install gcc 4.5.1 and all dependencies

That gives the 4.5.0-1 version, I need the 4.5.1 one. Maybe I missed something obvious, like include include an unstable repository or something. Cannot find any mirrors for that trough.

Last edited by CheatCat (2010-09-18 11:57:23)

Offline

#5 2010-09-18 12:00:55

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [Solved] Install gcc 4.5.1 and all dependencies

└─> pacman -Si gcc
Repository     : core
Name           : gcc
Version        : 4.5.1-1
URL            : http://gcc.gnu.org
Licenses       : GPL  LGPL  custom
Groups         : base-devel
Provides       : None
Depends On     : binutils>=2.20.1  libmpc>=0.8.1-2  cloog-ppl>=0.15.9-2  elfutils
Optional Deps  : None
Conflicts With : None
Replaces       : None
Download Size  : 16481.65 K
Installed Size : 63604.00 K
Packager       : Allan McRae <allan@ilovedropbears.org>
Architecture   : x86_64
Build Date     : Wed 11 Aug 2010 02:46:59 PM CEST
MD5 Sum        : 62089d2da9c42ffa6a3ef5f1b0524ea2
Description    : The GNU Compiler Collection

Try "pacman -Syu gcc" (or "-Syyu" to force a database update). If your mirror really doesn't have the latest version (which is over a month old), use a different mirror. wink


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2010-09-18 12:14:41

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [Solved] Install gcc 4.5.1 and all dependencies

-Sc your forum cache and you will find this thread is now part of the group "Newbie Corner".


ᶘ ᵒᴥᵒᶅ

Offline

#7 2010-09-18 12:44:24

CheatCat
Member
Registered: 2009-07-10
Posts: 54

Re: [Solved] Install gcc 4.5.1 and all dependencies

Xyne wrote:

Try "pacman -Syu gcc"

Do not refresh the package list when installing packages (i.e. pacman -Sy package_name); this can lead to dependency issues.[1] Upgrade  explicitly first; before installing new packages.

Last time I did that the whole system crashed...

Last edited by CheatCat (2010-09-18 12:44:39)

Offline

#8 2010-09-18 12:46:37

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: [Solved] Install gcc 4.5.1 and all dependencies

sudo pacman -Syy to update your local database
sudo pacman -S gcc to then install the new gcc

this will not affect other packages, only gcc and the required dependencies

things may always break when updating, welcome to linux.

Last edited by stefanwilkens (2010-09-18 12:47:20)


Arch i686 on Phenom X4 | GTX760

Offline

#9 2010-09-18 12:47:11

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [Solved] Install gcc 4.5.1 and all dependencies

Read again:

pacman -Syu gcc

The "u" forces the upgrade and then installs gcc (if needed).

You may need to change to a more up to date mirror.

Offline

#10 2010-09-18 12:59:12

CheatCat
Member
Registered: 2009-07-10
Posts: 54

Re: [Solved] Install gcc 4.5.1 and all dependencies

Thank you, it must be added newly then, my mirror was synced today.

Offline

#11 2010-09-18 13:03:57

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [Solved] Install gcc 4.5.1 and all dependencies

Yeah...  gcc-4.5.1 is over a month old...

Offline

Board footer

Powered by FluxBB