Homebrew.jl
Homebrew.jl copied to clipboard
cannot install Ipopt in Julia 0.6.1 properly
@staticfloat
I just upgraded Julia from 0.5 to 0.6 and after running Pkg.add("Ipopt"), I got following error messages in Julia. Could you advise how to fix this?
julia> using Ipopt
INFO: Precompiling module Ipopt.
ERROR: LoadError: Ipopt not properly installed. Please run Pkg.build("Ipopt")
Stacktrace:
[1] error(::String) at ./error.jl:21
[2] include_from_node1(::String) at ./loading.jl:576
[3] include(::String) at ./sysimg.jl:14
[4] anonymous at ./
julia> Pkg.build("Ipopt") INFO: Building Homebrew Already up-to-date. WARNING: The following packages do not have relocatable bottles, installation may fail! Please report these packages to https://github.com/JuliaLang/Homebrew.jl: git INFO: Building Ipopt Error: staticfloat/juliatranslated/ipopt: cannot load such file -- /Users/XXX/.julia/v0.6/Homebrew/deps/usr/Library/Taps/staticfloat/homebrew-juliatranslated/libgfortran ================================[ ERROR: Ipopt ]================================
LoadError: ArgumentError: brew info failed for String["staticfloat/juliatranslated/ipopt"]!
while loading /Users/XXX/.julia/v0.6/Ipopt/deps/build.jl, in expression starting on line 89
================================[ BUILD ERRORS ]================================
WARNING: Ipopt had build errors.
- packages with build errors remain installed in /Users/XXX/.julia/v0.6
- build the package(s) and all dependencies with
Pkg.build("Ipopt") - build a single package by running its
deps/build.jlscript
================================================================================
fixed by running Homebrew.brew(install libgfortran) and Homebrew.brew(install ipopt).
I'm trying to run the fix but the above instructions trigger installing gcc by building from source which so far has taken over an hour and 20 minutes so any other fixes are welcome :)