Can't build ODEInterface on MacOS, "ld: library not found for -ldylib1.o"

I’m trying to use ODEInterface and ODEInterfaceDiffEq but encountered the following problem. I’m not sure what the issue is or how to resolve it? I am using Julia 1.0.3 on macOS Mojave 10.14.6.

Have you installed XCode and gfortran?

Yes, I have xcode 11.1 (11A1027) and gfortran installed. I also opened xcode once, which prompts it to install additional components, although it didn’t show details.

Not sure at all, but it would be worth downloading those “additional components” - they usually include command line interfaces etc (AFAIK) and are a good idea to have in general.


Yes, when I opened xcode it asks to download and install those additional components, which I agreed to. Still get the same error when building ODEInterface though.

OK that was good to do. Sorry I can’t offer more help on this… Good luck though…


Open an issue on ODEInterface.jl.

Solved by updating gfortran to 8.2 for Mojave (

1 Like