Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] gcc won't upgrade to 4.6 after successful emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Spewface
n00b
n00b


Joined: 17 Apr 2013
Posts: 7
Location: Colorado, USA

PostPosted: Mon Apr 22, 2013 9:25 pm    Post subject: [SOLVED] gcc won't upgrade to 4.6 after successful emerge Reply with quote

Hi everyone. Here is my predicament: I'm trying to get gcc >= 4.6 (currently the one available is 4.6.3) for the C++11 feeatures. Anyway, it appears that I have it installed, but when I run `gcc --version`, I don't get the right one. Here's the details:

This is the output I get from `emerge -s gcc` (minus the boring bits):

Code:

*  sys-devel/gcc
      Latest version available: 4.6.3
      Latest version installed: 4.6.3
      Size of files: 70,355 kB
      Homepage:      http://gcc.gnu.org/
      Description:   The GNU Compiler Collection
      License:       GPL-3+ LGPL-3+ || ( GPL-3+ libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.3+


and this is what I get when I do `gcc --version`:

Code:

gcc (Gentoo 4.5.4 p1.0, pie-0.4.7) 4.5.4
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


I also looked for an eselect switch, but couldn't find one for gcc. Is there some environment variable or something I'm missing? Any help would be awesome :) Thanks in advance!!!
_________________
~Spewface

"The most incomprehensible thing about the universe is that it is comprehensible." -Einstein


Last edited by Spewface on Tue Apr 23, 2013 9:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4733
Location: Saint Amant, Acadiana

PostPosted: Mon Apr 22, 2013 9:27 pm    Post subject: Reply with quote

gcc-config

http://www.gentoo.org/doc/en/gcc-upgrading.xml
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Spewface
n00b
n00b


Joined: 17 Apr 2013
Posts: 7
Location: Colorado, USA

PostPosted: Mon Apr 22, 2013 9:31 pm    Post subject: Reply with quote

Thank you sir. You saved me a lot of headache.
_________________
~Spewface

"The most incomprehensible thing about the universe is that it is comprehensible." -Einstein
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4733
Location: Saint Amant, Acadiana

PostPosted: Mon Apr 22, 2013 9:34 pm    Post subject: Reply with quote

You are welcome! :)

Something tells me you haven't bookmarked it yet: http://www.gentoo.org/doc/en/list.xml
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Spewface
n00b
n00b


Joined: 17 Apr 2013
Posts: 7
Location: Colorado, USA

PostPosted: Mon Apr 22, 2013 9:48 pm    Post subject: Reply with quote

I actually have the handbook printed out >< I'm just a noob - this is my first time getting into the nitty gritty of gnu/linux. Thanks again for the help, though. On a side note, do you have any experience with pkg-config? I've installed a few pkg-config compatible libraries, but pkg-config doesn't see them.
_________________
~Spewface

"The most incomprehensible thing about the universe is that it is comprehensible." -Einstein
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4733
Location: Saint Amant, Acadiana

PostPosted: Mon Apr 22, 2013 10:30 pm    Post subject: Reply with quote

Hmmm ... the link I provided is to Gentoo documentation, useful after installation.
Now, what do you mean by installing libraries? If you install something by hand (discouraged, you should do it Gentoo way) you have to run ldconfig.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Spewface
n00b
n00b


Joined: 17 Apr 2013
Posts: 7
Location: Colorado, USA

PostPosted: Tue Apr 23, 2013 9:36 pm    Post subject: Reply with quote

Yeah that seems really difficult. I'm trying to compile and install this one program I found on the 'net (it's called ingen: http://drobilla.net/software/ingen/). The issue is that it uses a bleeding-edge edition of lv2 (1.4.1), while portage only provides 1.4.0. So I had to compile it from source and install it.

The problem is that ingen uses pkg-config to locate and link against libraries found in the system, yet pkg-config isn't working correctly. It's not finding the file that describes where lv2's .so's are, even though it's containing folder is in it's config path. I think it's a problem for a separate thread to be honest :) Thanks for the help though!!
_________________
~Spewface

"The most incomprehensible thing about the universe is that it is comprehensible." -Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum