Fortran Compiler For Mac Os X 10.6

Posted on
Fortran Compiler For Mac Os X 10.6 Rating: 6,4/10 716 votes

The OS X Fortran compiler supports a full range of project targets including command line programs and GUI based applications. It provides a complete 64 and 32 bit OS X Fortran compiler solution and supports mixed language development by interfacing with Apple’s Xcode C/C compiler. Absoft Pro Fortran Is A Complete Package. Fortran Compiler Installation Instructions for OS X. The Mac OS X operating system is a variant of unix (called Darwin, which is a derivative of BSD unix). It is a versatile computing platform suitable both for computational chemistry calculations and for developing and compiling programs. I'm running 32-bit Mac OS X 10.6. Is there a way to install NetCDF on my computer? Where can I download the proper distribution? You didn't say if the problems are with the Fortran compiler you're using. If you only need a C interface, the 4.1.1 distribution (or the 4.1.2-beta1 distribution) builds 'out of the box' using the standard. The problem is that PGPLOT source is actually a mix of Fortran and C. The Fortran compilers compile into 32-bit by default (g77 is only 32 bit capable) and the C compiler now compiles into 64 bit by default. So ranlib has to mix 32 and 64 bit object files and it can't do that. This is why it only became a problem with 64 bit Macs and OS X 10.6. Sep 05, 2010  To begin, select the.dmg from the HPC website that corresponds to the Mac operating system you are using (either 10.5 or 10.6). For example, I downloaded the file gfortran-snwleo-intel.bin.tar.gz since I am running Mac OS X 10.6, aka Snow Leopard. Once the.dmg has been downloaded, open a Terminal window and 'cd' to the folder where the file. R for Mac OS X. This directory contains binaries for a base distribution and packages to run on Mac OS X (release 10.6 and above). Mac OS 8.6 to 9.2 (and Mac OS X 10.1) are no longer supported but you can find the last supported release of R for these systems (which is R 1.7.1) here.Releases for old Mac OS X systems (through Mac OS X 10.5) and PowerPC Macs can be found in the old directory.

Absoft Pro Fortran 2020 For macOS and OS X

Fully compatible with macOS Catalina (10.15)

Pro Fortran builds faster code with exclusive Dynamic AP load balancing, SMP analysis, and advanced optimization. The AbsoftTools integrated development environment speeds program development and maintenance. Complete command line development support is also provided. The OS X Fortran compiler supports a full range of project targets including command line programs and GUI based applications. It provides a complete 64-bit macOS/OS X Fortran compiler solution and supports mixed language development by interfacing with Apple’s Xcode C/C++ compiler.

Absoft Pro Fortran Is A Complete Package

  • Extended Fortran compiler with advanced optimization technology
  • AbsoftTools IDE a Fortran-centric development environment
  • Fx3 source level debugger the best GUI Fortran/C debugger for OS X
  • AWE Fortran application framework adds modern GUIs to legacy code
  • AMDAL high-performance libraries for math, graphics, and data access
  • Precompiled IDE plugins for HDF5, NetCDF4, and other libraries
  • Pro Fortran 2020 OS X Product Specification

Fortran Environment designed by Fortran Experts

The AbsoftTools development environment simplifies code development by solving the problems associated with IDEs such as Visual Studio and Xcode – excellent for C++, but with no knowledge of Fortran. The Absoft Fortran IDE supports both Fortran and C and automatically provides proper syntax sensitivity, array indexing, etc. for each language. It includes everything you need: full Fortran 95 compiler with F2003 and F2008 features, programmer’s editor, Fx3 source-level debugger, application framework, graphics and optimized math libraries in a single, easy-to-use package.

Pro Fortran for macOS System Requirements

  • Intel CPU based system – multi-core suggested for best performance
  • macOS Sierra (10.12) through macOS Catalina (10.15)
  • OS X Snow Leopard (10.6) through OS X El Capitan (10.11)
  • 2 GB RAM – 4 GB recommended for best performance
  • 1 GB free disk space for complete installation

Order Pro Fortran for OS X

Obtain your copy of Absoft Pro Fortran by selecting one of these options.

New Commercial License

Prices Starting at $699

New Academic License

Prices Starting at $299

Upgrade Existing License

Prices Starting at $299

Upgrade to Absoft from Competitor

Prices Starting at
$599

While most product configurations are available online, we understand you may have different requirements. If you have questions or desire specific configuration not listed online, your Absoft Sales Team is ready to help.

Compiling PGPLOT on Mac OS X

a guide for the perplexed

Benjamin Weiner, May 2012

Mac os gfortran

Install Fortran On Mac

PGPLOT

PGPLOTis a library of plotting subroutines written by Tim Pearson,callable from Fortran and C,that have been used in a variety of astronomy programs, andsome other software packages.PGPLOTis free for non-commercial use and downloadable as source.Although a new version has not appeared for some time, it is convenient, flexible, and many people anda number of useful programs depend on it.

OS X issues

Historically you typically installed PGPLOT by either compilingfrom source or installing a software package that includeda compiled library (libpgplot.a) and various other stuff likefonts. This used to be fairly easy on Linux or Mac, butstarting around OS X 10.6 and/or 64-bit CPU Macs, I and otherpeople had difficulty compiling PGPLOT on OS X. Typicallyone gets an error message like: /usr/bin/ranlib: archive member:libpgplot.a(grdate.o) cputype (16777223) does not match previousarchive members cputype (7) (all members must match).

If you googlearound you can find lots of puzzled people, and a number of webpages that suggest workarounds (not all of which are specificallyfor 10.6; none have solved theproblem for me). I've diagnosed the issue and provide herea couple of configuration files which you can add to a regularPGPLOT source distribution so it will compile correctly.

Instructions for fixing and installing PGPLOT

  • You will need a gcc compiler - Apple's gcc compiler is known to work and is installed with Xcode - and your favorite Fortran compiler, either g77 or gfortran. If you don't have the compilers installed look at http://hpc.sourceforge.net.
  • Download PGPLOT from Tim Pearson's site.
  • Make the parent source directory, e.g. sudo mkdir /usr/local/src
  • cd to this parent source directory, e.g. cd /usr/local/src , copy PGPLOT distribution there and untar it, which will create a pgplot/ subdirectory: sudo tar zxvf pgplot5.2.tar.gz
  • NEW STEP: download a tar archive of my config files pgplot_macosx_conf.tar and untar them in the /usr/local/src/pgplot directory: cd /usr/local/src/pgplot ; sudo tar xvf pgplot_macosx_conf.tar. This will make a subdirectory called sys_macosx with three configuration files.
  • make a directory in which to compile the library, e.g. sudo mkdir /usr/local/lib/pgplot
  • cd to this compilation directory, e.g. cd /usr/local/lib/pgplot
  • choose device drivers: sudo cp /usr/local/src/pgplot/drivers.list /usr/local/lib/pgplot
  • edit drivers.list to uncomment the drivers you want (remove the ! at the beginning of each desired line). I recommend /GIF, /NULL, /PS, /VPS, /CPS, /VCPS, /XTERM, /XWINDOW, and /XSERVE. Trying /PNG or /TPNG will cause a compilation failure; a note on how to fix this is below.
  • run the makemake configuration script using one of my new config files: choose one depending on whether you will compile other programs with g77 or gfortran and in 32 or 64 bit.
    EITHER: sudo /usr/local/src/pgplot/makemake /usr/local/src/pgplot macosx g77_gcc_32
    OR: sudo /usr/local/src/pgplot/makemake /usr/local/src/pgplot macosx gfortran_gcc_32
    OR: sudo /usr/local/src/pgplot/makemake /usr/local/src/pgplot macosx gfortran_gcc_64
  • Compile the library and demo programs: sudo make all
  • If you have a problem compiling the demo programs, you can skip them and just make the libraries with sudo make lib grfont.dat pgplot.doc pgxwin_server , but this should not usually happen.
  • If you need the library libcpgplot.a for compatibility with C programs, you can make it with sudo make cpg.
  • If you mess up at some point and want to start over, in the library directory do a sudo make clean ; sudo rm libpgplot.a . This will remove any intermediate partially-compiled libraries.
You now have a library, libpgplot.a.

If you ran sudo make cpg you will also have libcpgplot.a.

Compiling and running programs

To compileprograms using it, link to /usr/local/lib/pgplot/libpgplot.a/usr/X11/lib/libX11.dylib

For example g77 -o myprog myprog.f /usr/local/lib/pgplot/libpgplot.a/usr/X11/lib/libX11.dylib

Java 6 for mac yosemite. The problem is that i don't have any applications that require Java runtime except for browsers. The only way I can get rid of the box is to start up in Safe Mode.

To run programs with PGPLOT, don't forget to set the environmentvariable PGPLOT_DIR to the library directory. Otherwise itcan't find the fonts at runtime. This is best done in a startup filelike .bash_profile or .cshrc, for example for bash: export PGPLOT_DIR=/usr/local/lib/pgplot ; and for csh: setenv PGPLOT_DIR /usr/local/lib/pgplot

You must use the same compiler foryour program that you used for the library: g77 OR gfortran. Youcould compile PGPLOT libraries with the two compilers in two differentdirectories and use one or the other as needed.

The /xs device should work when run from a mac Terminal, but /xtwon't. /xt will work when run from an xterm under X11.

If you want to get the /PNG driver to work, uncomment it indrivers.list, and after running makemake andbefore compiling, edit the makefile to comment out the following line:pndriv.o : ./png.h ./pngconf.h ./zlib.h ./zconf.h . This hasan incorrect location for the PNG library header files which causescompilation to fail.

If for some reason you need to make the libpgplot.so shared object (dynamically loaded) library, you should be able to do this by uncommentingthe lines in the .conf file (gfortran_gcc_32.conf or similar)that read SHARED_LIB='libpgplot.so' and SHARED_LD='gcc -shared -o $SHARED_LIB', before running the 'makemake' step.

Configuration files on github

The new configuration files and these instructions are also availablefrom my github page for PGPLOT configuration. You can fork them or issue a pull request if you have modifications.

Why this works

Mac OS X for 64-bit machines allows you to run 32 or 64 bitbinaries. But the inexplicable error message from ranlib above iscomplaining that it can't mix object files compiled for 32 bit cputype(i386) and 64 bit (x86_64) into a single object library archive, thelibpgplot.a file.

The problem is that PGPLOT source is actually a mix of Fortran andC. The Fortran compilers compile into 32-bit by default (g77is only 32 bit capable) and the C compiler now compiles into 64 bit bydefault. So ranlib has to mix 32 and 64 bit object files and it can'tdo that. This is why it only became a problem with 64 bit Macs andOS X 10.6. The new config files force the C compiler to compile in 32bit with the '-m32' option. So then the files are all 32-bitand it compiles ok. For 64 bit the config file forces gfortran tocompile in 64 bit with '-m64'.With Apple's C compiler you can also use '-arch i386' and '-archx86_64' to force 32 or 64 bit. The '-m32' and '-m64' options shouldwork with a non-Apple gcc, although I have not tested them.

Other notes: I have not tested all the more exotic drivers and library locations, and if you do something arcane like use aPGPLOT-Tk interface, it may require adjustment.See above for how to get the PNG driver to work by editing the makefile.

I tested this on OS X 10.6 Snow Leopard, and have not tested PGPLOT on OS X 10.7 Lion myself, although users have reported it working on later OSes including Mavericks. I have a reportthat forcing the 64-bit option by using a configuration similar to'gfortran_gcc_64' will work, so try that.

Where to get compilers

Apple's gcc C compiler comes with Xcode, their development kit. Xcodewas on my OS X install CDs, but is not installed by default. You canalso download it from Apple.

Mac OS X versions of gfortran, g77, and non-Apple versions of gcc can be downloaded from http://hpc.sourceforge.net/.The HPC page does not have quick links to binaries of the compilersfor older versions of Mac OS X, but they are in the file tree athttp://sourceforge.net/projects/hpc/files/hpc/. Some other useful information about Fortran and Mac is listed here.

Fortran Compiler Mac Os

Contact:

My software page.

Back to my home page.

Intel Fortran Compiler Mac

Benjamin Weiner, email bjw at as.arizona.edu

Mac Os Fortran Compiler

29 May 2012, updated 6 June 2012, 10 April 2013, 18 Nov 2014