On 5/29/21 9:47 AM, JRR wrote:
> Am 29.05.21 um 07:50 schrieb Ganesh Sundaram:
>> Hello.
>>
>> I'm new to Mac.
>> How does one reliably install gfortran in mac osx?
>> Xcode Tools and command line tools have already installed.
>> If there a way install gfortran from xcode itself?
>> Or should I download from GitHub
>>
https://github.com/fxcoudert/gfortran-for-macOS/releases
>> and install the package?
>> Apple says it cannot verify the package.
>>
>> Any input on this will be appreciated.
>> Thanks and regards,
>> Ganesh
>>
>
> Hi Ganesh,
> I always install gcc by hand, downloading the three
> dependency packages, libgmp, libmpfr and libmpc and then
> just do configure, make, make install as usual.
If you want the latest version, then this is the best way to install it.
The package managers, including fink, are usually a few months behind in
the release schedule. For example, you can install gcc11 straight this
way, but with fink right now, gcc10 is the most recent version available.
One difference is where the software gets installed. With the straight
installs, it goes into /usr/local, /usr/local/bin, and so on in the
system directories. With fink it goes into its own subdirectory, either
/sw or /opt/sw depending on which version of MacOS you are running. This
makes it easy to uninstall, or update later, when necessary without
leaving remnants behind.
Also, the package managers have hundreds of software packages available,
from gnuplot to various versions of python, that one might also want. So
if you are going to install the package manager anyway for these other
utilities, then gcc fits in. But if you only want gcc/gfortran and
nothing else, then the package managers are just a redundant step.
$.02 -Ron Shepard