[MacPorts] #34597: gcc44 installs correctly but default gcc is still used

MacPorts noreply at macports.org
Wed May 23 12:27:13 PDT 2012


#34597: gcc44 installs correctly but default gcc is still used
-------------------------------------+--------------------------------------
  Reporter:  JosieZiegler@…          |       Owner:  macports-tickets@…                   
      Type:  defect                  |      Status:  closed                               
  Priority:  Normal                  |   Milestone:                                       
 Component:  ports                   |     Version:  2.1.1                                
Resolution:  invalid                 |    Keywords:                                       
      Port:                          |  
-------------------------------------+--------------------------------------
Changes (by macsforever2000@…):

  * keywords:  gcc compiler =>
  * status:  new => closed
  * resolution:  => invalid


Old description:

> This is probably a very unix newby question so I'm sorry to ask it, but I
> can't find a good solution in the current tickets, guide or via
> googling...
>
> I followed this guide (http://jswails.wikidot.com/mac-os-x) to install
> macports, and use it to update to v 4.4 of the gcc compiler.  Note that I
> am not doing this for the purpose of using the program that the guide-
> maker is trying to install (amber).  I need gcc4.4 for another reason
> entirely.
>
> Everything appears to be installed properly based on the output when I
> run "install" and "select" again.  However, when I run gcc, it's clear
> that gcc 4.2 (the default for me) is still being used  (see below).
>
> How do I get my computer to actually use the ported version (gcc4.4)?
>
> --------------------------------
>
> $ sudo port install gcc44 gcc_select
> Password:
> --->  Computing dependencies for gcc44
> --->  Cleaning gcc44
> --->  Cleaning gcc_select
> --->  Scanning binaries for linking errors: 100.0%
> --->  No broken files found.
> $ sudo port select gcc mp-gcc44
> Selecting 'mp-gcc44' for 'gcc' succeeded. 'mp-gcc44' is now active.
> $ gcc
> i686-apple-darwin10-gcc-4.2.1: no input files

New description:

 This is probably a very unix newby question so I'm sorry to ask it, but I
 can't find a good solution in the current tickets, guide or via
 googling...

 I followed this guide (http://jswails.wikidot.com/mac-os-x) to install
 macports, and use it to update to v 4.4 of the gcc compiler.  Note that I
 am not doing this for the purpose of using the program that the guide-
 maker is trying to install (amber).  I need gcc4.4 for another reason
 entirely.

 Everything appears to be installed properly based on the output when I run
 "install" and "select" again.  However, when I run gcc, it's clear that
 gcc 4.2 (the default for me) is still being used  (see below).

 How do I get my computer to actually use the ported version (gcc4.4)?

 --------------------------------
 {{{
 $ sudo port install gcc44 gcc_select
 Password:
 --->  Computing dependencies for gcc44
 --->  Cleaning gcc44
 --->  Cleaning gcc_select
 --->  Scanning binaries for linking errors: 100.0%
 --->  No broken files found.
 $ sudo port select gcc mp-gcc44
 Selecting 'mp-gcc44' for 'gcc' succeeded. 'mp-gcc44' is now active.
 $ gcc
 i686-apple-darwin10-gcc-4.2.1: no input files
 }}}

--

Comment:

 Trac is not for tech support. Please use the
 [http://lists.macosforge.org/mailman/listinfo.cgi/macports-users Macports
 Users Mailing List] instead.

-- 
Ticket URL: <https://trac.macports.org/ticket/34597#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list