Installation of macports gcc and gfortran€¦ · Now that is’s finished, you need to start XCode...
Transcript of Installation of macports gcc and gfortran€¦ · Now that is’s finished, you need to start XCode...
Installationofmacportsgccandgfortran1.gotothelinkhttp://www.macports.org/install.php
2.Afterconsideringyourspecificlaptop,downloadit.Ithasawalkthroughthatcomeswiththepackage.(you’llanadministratorpasswordtocompleteit).
3.DownloadandinstallXcodeattheAppStorebysearchingxcodeatthetopright-handcorner.
4.Downloadit(You’llneedanAppleIDinordertodownloadXcode)
5.Itisabigdownloadof4.5GB.It’lltakeawhile…6.Afteritfinisheddownloadingbegininstallation.Thatcanalsotakeawhile…7.Nowthatis’sfinished,youneedtostartXCodetoallowittoinstalladditionalcomponents.(you’lladministratorpasswordtocompleteit).
8.Onceitisopen,theadditionalcomponentshavebeeninstalledandyoucancloseit.
9.NowyouneedinstalltheCommandLineTools.Openyourterminalandtypexcode-select–install
10.Thefollowingwindowwillopen.Clickinstall.
11.Afteryouhavesuccessfullyinstalledthecommandlinetools,openyourterminalandtypewhichgcc
12.Thecommandshouldreturnthepath/usr/local/binor/usr/local/gcc.Allofthisshouldhavebeentakencareofautomatically.
13.Now,downloadgfortranfromthelinkhttp://gcc.gnu.org/wiki/GFortranBinaries#MacOS
14.Afterconsideringyourspecificlaptop,downloadit.Ithasawalkthroughthatcomeswiththepackage.Double-clickonthefolderthandouble-clickonthepackage.
15.Ifyougetthefollowingmessage,gotoSystemPreferences,Security&PrivacyandOpenitAnyway.
16.gfortranalsohasawalkthroughthatcomeswiththepackage.You’llneedagainandadministratorpassword
17.Afteryouhavesuccessfullyinstalledthegfortran,openyourterminalandtypewhichgfortrananditshouldbesuccessfullyinstalledin/usr/local/bin