NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: how to install a Fortran compiler on NetBSD?



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.




Home | Main Index | Thread Index | Old Index