Requires Mac OS X 10.6 (Snow Leopard) and Xcode 3.2.3, 3.2.4 or 3.2.5 (it will also work with more recent Xcode such as 4.0 or 4.1 on Snow Leopard since Apple stopped updating gcc)ĭownload: gfortran-42-5659.pkg (for Xcode 3.2.2) This package adds GNU Fortran to Xcode 3.2.3/4/5 for Snow Leopard (Apple's gcc 4.2 build 5664). It works with Xcode 4.0 and 4.1 as well, but there you can use the above smaller Fortran package instead. It is needed for Xcode 4.2 or higher since Apple has dropped gcc-4.2 from Xcode.
This package contains gcc-4.2 (Apple build 5666.3) including GNU Fortran for Mac OS X 10.7 (Lion). Gcc-4.2 (Apple build 5666.3) with GNU Fortran 4.2.4 for Mac OS X 10.7 (Lion):ĭownload: (for Xcode 4.2 and higher) Requires Mac OS X 10.7 (Lion) and Xcode 4.1. This package adds GNU Fortran to Xcode 4.1 for Lion (Apple's gcc 4.2 build 5666.3).
GNU Fortran 4.2.4 for Mac OS X 10.7 (Lion):ĭownload: gfortran-lion-5666-3.pkg (for Xcode 4.1).The following tar-ball contains cairo and its dependencies (FreeType, pkgconfig and png) in static form such that you can compile R the same way it is compiled for CRAN:
There are also other package that take advantage of PNG and JPEG, so it is in general a good idea to install them.Īgain, they are now part of the devpack on CRAN: Tools on CRAN or more recent versions are available from libs. If bitmap manipulation libraries are present, R will add graphics device support for those bitmap formats. Binary for all four architectures is provided from CRAN as a part of the devpack: Tools on CRAN or see libs on this site for more recent versions. It can be obtained from several places, for example as a part of MacTeX.Īlthough Mac OS X comes with readline-replacement library, it lack some functionality like backward search etc. In order to produce documentation, LaTeX is necessary. R can be compiled without them, but they provide additional capabilities to R. The following tools and libraries are optional. Although the Tiger compilers supplied with the Tiger build of R can be used, they will result in slightly different binaries. Then install gfortran-4.2 addition to Apple compilers (see below - you have to pick the one that maches your Xcode version!). Remove them using sudo gfortran-uninstall if you installed them before (unless you want to use both builds in parallel). Make sure gcc-4.2 is selected during the installation (default in recent Xcode versions).ĭo not install Fortran compilers that comde with Tiger builds of R. They can be obtained from Apple's Xcode pages. Xcode Development Tools 3.1 (or higher) from Apple with gcc-4.2.R build can be built with the above requirements, but if you want to use source compilation with the CRAN build of R for Mac OS X 10.5 or higher (aka Leopard build), you will need more recent tools:
16MB, 4.2.0 5 pre-release without cc back-end) That section is also the right place to go if you use the binary Leopard build of R. Note: If you are interested in cutting-edge compilers and/or integration of GNU Fortran and Apple's compilers see gcc 4.2 section below. Make sure you add /usr/local/bin to your PATH in order to use this compiler. gfortran -arch i386 -arch ppc -o tf tf.f). you can build fat binaries with one command (e.g. It supports all four targets (i386, ppc, x86_64 and ppc64) and features Apple's Darwin compiler drivers, i.e. This binary contains gfortran 4.2.3 (release) for both Intel and PowerPC Macs. For convenience we provide a binary of the GNU Fortran compiler, because most other binaries are either incomplete or broken (do not use compilers from HPC, they won't work correctly!). Unfortunately Xcode doesn't contain a Fortran compiler, therefore you will have to install one. Note: The binary Leopard build of R on CRAN requires Xcode 3.1 or higher
However, if your OS X came with Xcode older than version 2.4.0, you will have to download a more recent version from the above site. Also, all recent Mac OS X versions come bundled with Xcode Tools, they are located on the installation DVD. Xcode Development Tools 2.4.0 (or higher) from Apple.In order to compile R for Mac OS X 10.4 or higher, you will need the following tools: (for Mac OS X 10.5 and higher look further down) NOTE: some links may be broken - older binaries have been lost in an incident. IMPORTANT: This page has only historical value.