Opened 10 years ago

Closed 10 years ago

#42157 closed defect (invalid)

py27-scipy fails to install due to missing fortran compiler dependency

Reported by: edwardmoon (Edward Moon) Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: michaelld (Michael Dickens)
Port: py27-scipy

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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 (5)

comment:1 Changed 10 years ago by edwardmoon (Edward Moon)

Forgot to mention that I am on a late 2013 MacBook Pro running Mac OS 10.9 (Mavericks).

comment:2 in reply to:  1 Changed 10 years ago by seanfarley (Sean Farley)

Replying to edwardsmoon@…:

Forgot to mention that I am on a late 2013 MacBook Pro running Mac OS 10.9 (Mavericks).

1) I will be able to provide a nicer interface for this once my patch series here is pushed: https://lists.macosforge.org/pipermail/macports-dev/2014-January/025718.html

2) You forgot to upload the log.

3) Do not install gfortran from gcc.gnu.org. This isn't supported in MacPorts.

Quick fix: you probably just want to install with the gcc48 variant. Run:

$ sudo port clean py27-scipy
$ sudo port -v install py27-scipy +gcc48

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: michaelld@… added
Description: modified (diff)
Keywords: py27-scipy fortran compiler removed
Owner: changed from macports-tickets@… to sean@…
Port: py27-scipy added

Please don't install things in /usr/local when using MacPorts; it causes problems. See wiki:FAQ#usrlocal.

comment:4 Changed 10 years ago by edwardmoon (Edward Moon)

I removed the symlinks I created and followed the steps to clean and reinstall py27-scipy, I experience no errors and was able to verify that scipy was working as expect in ipython.

Thanks,

comment:5 Changed 10 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.