Opened 10 years ago

Last modified 10 years ago

#42157 closed defect

py27-scipy fails to install due to missing fortran compiler dependency — at Initial Version

Reported by: edwardmoon (Edward Moon) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: py27-scipy

Description

When attempting to install py27-pandas on Jan 15, 2014 I had errors trying to install py27-scipy.

The error in the log referred to missing a fortran compiler.

I installed a fortran compiler with 'sudo port install f95'. This fortran compiler was still not recognized when install py27-scipy. I did not see a f77 or f90 compiler (from the scipy log) listed when I ran 'sudo port search fortran'.

I ended up installing gfortran 4.8.2 from binaries available at this location: http://gcc.gnu.org/wiki/GFortranBinariesMacOS

After installing gfortran, I had to make 2 symlinks for the py27-scipy to install:

sudo ln -s /usr/local/gfortran/bin/gfortran /opt/local/bin/gfortran

sudo ln -s /opt/local/bin/gfortran/gfortran /opt/local/bin/gfortran/gfortran-mp-4.8

After manually installing gfortran and the 2 symlinks, I was able to successfully run 'sudo port install py27-pandas'.

I verified that py27-scipy was working by typing in the ipython commands shown at: http://www.scipy.org/getting-started.html

I was able successfully create and save the graph shown in the example.

Change History (0)

Note: See TracTickets for help on using tickets.