Opened 11 years ago
Last modified 11 years ago
#42157 closed defect
py27-scipy fails to install due to missing fortran compiler dependency — at Version 3
Reported by: | edwardmoon (Edward Moon) | Owned by: | sean@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | michaelld@… | |
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 (3)
comment:1 follow-up: 2 Changed 11 years ago by edwardmoon (Edward Moon)
comment:2 Changed 11 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 11 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.
Forgot to mention that I am on a late 2013 MacBook Pro running Mac OS 10.9 (Mavericks).