Re: how to install a Fortran compiler on NetBSD?

2022-04-04 Thread Adam Russell

nia wrote:

On Thu, Mar 31, 2022 at 10:12:18PM -0400, Adam Russell wrote:

There doesn't seem to be a fortran compiler available in pkgsrc? I saw
some mentions of gfortran but that must be out of date information as I
cannot find it. I understand, of course, that gfortran is part of the
gcc suite but that doesn't help me as I cannot seem to grasp how to
specify it should be installed.

How do you get a fortran compiler on NetBSD?


If you install gcc7 from pkgsrc, it will install gfortran to
${PREFIX}/gcc7/bin/gfortran. Make sure gccX/bin is in your $PATH.


Ah! Thanks for the tip. Yes, apparently /usr/pkg/gcc7/bin/ is not in the 
$PATH by default. I see the gfortran binary now.





Re: how to install a Fortran compiler on NetBSD?

2022-04-01 Thread Michael van Elst
ac.russ...@live.com (Adam Russell) writes:

>There doesn't seem to be a fortran compiler available in pkgsrc? I saw
>some mentions of gfortran but that must be out of date information as I
>cannot find it. I understand, of course, that gfortran is part of the
>gcc suite but that doesn't help me as I cannot seem to grasp how to
>specify it should be installed.

>How do you get a fortran compiler on NetBSD?

The gcc packages (GNU Compiler Collection) also include the gfortran frontend.




Re: how to install a Fortran compiler on NetBSD?

2022-04-01 Thread nia
On Thu, Mar 31, 2022 at 10:12:18PM -0400, Adam Russell wrote:
> There doesn't seem to be a fortran compiler available in pkgsrc? I saw
> some mentions of gfortran but that must be out of date information as I
> cannot find it. I understand, of course, that gfortran is part of the
> gcc suite but that doesn't help me as I cannot seem to grasp how to
> specify it should be installed.
> 
> How do you get a fortran compiler on NetBSD?

If you install gcc7 from pkgsrc, it will install gfortran to
${PREFIX}/gcc7/bin/gfortran. Make sure gccX/bin is in your $PATH.