JuliaSparse / Pardiso.jl

Calling the PARDISO library from Julia
Other
100 stars 27 forks source link

Error in loading libgfortran, from updating to gfortran 9 #41

Closed wrs28 closed 5 years ago

wrs28 commented 5 years ago

I had the same error as in #37, but incremented by one.

By seeding the main_ver variable with 8 in line 152, the search for the gfortran library fails, and therefore loading libgfortran does as well.

Changing the line to gfortran_v = PARDISO_VERSION == 6 ? 9 : 7 corrects the problem.

What triggered this for me was doing a brew upgrade. This updated gcc to 9.1, which is why line 152 breaks. Alternatively, pin brew gcc to version 8.

KristofferC commented 5 years ago

Since this is effectively the same as https://github.com/JuliaSparse/Pardiso.jl/issues/37 let's keep the discussion there.