# Libfortran not found

**URL:** https://discourse.julialang.org/t/libfortran-not-found/4142
**Category:** General Usage
**Created:** [June 7, 2017, 4:35pm UTC](https://discourse.julialang.org/t/libfortran-not-found/4142 "2017-06-07T16:35:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)
#### Post date: [June 7, 2017, 4:35pm UTC](https://discourse.julialang.org/t/libfortran-not-found/4142/1 "2017-06-07T16:35:58Z")

</div>

Compiling master on a Mac, I get the following error. I guess this is to do with the Fortran version that is installed.

```julia
LoadError("sysimg.jl", 406, LoadError("sparse/sparse.jl", 41, LoadError("sparse/umfpack.jl", 61, ErrorException("error compiling anonymous: could not load library \"libsuitesparse_wrapper\"\ndlopen(libsuitesparse_wrapper.dylib, 1): Library not loaded: /usr/local/lib/gcc/5/libgfortran.3.dylib\n Referenced from: /Users/davidsanders/development/julia-dev/usr/lib//libopenblas64_.dylib\n Reason: image not found"))))
***This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`.***

```

Here is `versioninfo()` from RC2:

```julia
julia> versioninfo()
Julia Version 0.6.0-rc2.0
Commit 68e911be53 (2017-05-18 02:31 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin13.4.0)
  CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, haswell)

```

---

<div class="post-metadata">

### Author: ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)
#### Post date: [June 7, 2017, 4:55pm UTC](https://discourse.julialang.org/t/libfortran-not-found/4142/2 "2017-06-07T16:55:46Z")

</div>

Homebrew upgraded gcc underneath you. Do `make -C deps distclean-openblas distclean-suitesparse distclean-arpack distclean-openspecfun` and rebuild

---

<div class="post-metadata">

### Author: ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)
#### Post date: [June 7, 2017, 5:21pm UTC](https://discourse.julialang.org/t/libfortran-not-found/4142/3 "2017-06-07T17:21:52Z")

</div>

Thanks; I did ` make -C deps distcleanall` and everything is now fine.
