Using gcc/gfortran 4.8 in MacPorts

2013-12-09 Thread Gustavo Seabra
Hi all,

Please forgive-me the ignorance if this seems to simple a question.

I installed gcc4.8 from MacPorts, and now I want to use its compilers,
especially gfortran. However, although they are in the path, their names
are different, such as gfortran-mp-4.8, such as they are not seen when
the command gfortran is issued.

I tried to see what is working and got:

$ port select --list gcc

Available versions for gcc:

mp-gcc48

none (active)

however, for gfortran:

$ port select --list gfortran

Warning: Unable to get active selected version: The specified group
'gfortran' does not exist.

Error: The 'list' command failed: The specified group 'gfortran' does not
exist.

I tried to activate the MacPorts gcc set by:

$ sudo port select --set gcc mp-gcc48

Password:

Selecting 'mp-gcc48' for 'gcc' succeeded. 'mp-gcc48' is now active.

And now the correct gcc is working:

$ which gcc

/opt/local/bin/gcc

however, still nothing is set for gfortran:

$ which gfotran

$
(returns nothing)


So, my question is this: how should I activate the whole gcc48 set?
Especially, I need to use gcc/gfortran.

BTW, shouldn't this be activated by default when I install gcc48?

Thanks,
Gustavo Seabra http://goo.gl/7Cphf
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Using gcc/gfortran 4.8 in MacPorts

2013-12-09 Thread Brandon Allbery
On Mon, Dec 9, 2013 at 9:30 AM, Gustavo Seabra gustavo.sea...@gmail.comwrote:

 however, still nothing is set for gfortran:

 $ which gfotran

 $
 (returns nothing)


pyanfar:10004 Z$ type gfortran
gfortran is /opt/local/bin/gfortran

Check for typos :)

-- 
brandon s allbery kf8nh   sine nomine associates
allber...@gmail.com  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Using gcc/gfortran 4.8 in MacPorts

2013-12-09 Thread Gustavo Seabra
Oops.. Sorry!

Gustavo Seabra http://goo.gl/7Cphf
Professor Adjunto, Departamento de Química Fundamental
Coordenador, CENAPAD-PE
Universidade Federal de Pernambuco
Fone: +55-81-2126-7450


On Mon, Dec 9, 2013 at 11:42 AM, Brandon Allbery allber...@gmail.comwrote:

 On Mon, Dec 9, 2013 at 9:30 AM, Gustavo Seabra 
 gustavo.sea...@gmail.comwrote:

 however, still nothing is set for gfortran:

 $ which gfotran

 $
 (returns nothing)


 pyanfar:10004 Z$ type gfortran
 gfortran is /opt/local/bin/gfortran

 Check for typos :)

 --
 brandon s allbery kf8nh   sine nomine
 associates
 allber...@gmail.com
 ballb...@sinenomine.net
 unix, openafs, kerberos, infrastructure, xmonad
 http://sinenomine.net

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Using gcc/gfortran 4.8 in MacPorts

2013-12-09 Thread Ryan Schmidt
On Dec 9, 2013, at 08:30, Gustavo Seabra wrote:

 BTW, shouldn't this be activated by default when I install gcc48?

No; MacPorts doesn’t distinguish between ports you requested to install and 
ports that were installed as a dependency. If gcc48 is installed, MacPorts 
doesn’t know whether you want “gcc” et al to be changed to point to it. You 
might even have multiple gcc ports installed. You inform MacPorts which one you 
want “gcc” to point to, if any, by using “port select gcc”.


___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Using gcc/gfortran 4.8 in MacPorts

2013-12-09 Thread Gustavo Seabra
On Mon, Dec 9, 2013 at 4:03 PM, Ryan Schmidt ryandes...@macports.orgwrote:

 On Dec 9, 2013, at 08:30, Gustavo Seabra wrote:

  BTW, shouldn't this be activated by default when I install gcc48?

 No; MacPorts doesn’t distinguish between ports you requested to install
 and ports that were installed as a dependency. If gcc48 is installed,
 MacPorts doesn’t know whether you want “gcc” et al to be changed to point
 to it. You might even have multiple gcc ports installed. You inform
 MacPorts which one you want “gcc” to point to, if any, by using “port
 select gcc”.


OK, I see now.
Thanks,
Gustavo Seabra http://goo.gl/7Cphf
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users