Homebrew.jl icon indicating copy to clipboard operation
Homebrew.jl copied to clipboard

cannot install Ipopt in Julia 0.6.1 properly

Open coiacy opened this issue 7 years ago • 2 comments

@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 ./:2 while loading /Users/XXX/.julia/v0.6/Ipopt/src/Ipopt.jl, in expression starting on line 10 ERROR: Failed to precompile Ipopt to /Users/XXX/.julia/lib/v0.6/Ipopt.ji. Stacktrace: [1] compilecache(::String) at ./loading.jl:710 [2] _require(::Symbol) at ./loading.jl:497 [3] require(::Symbol) at ./loading.jl:405

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.jl script

================================================================================

coiacy avatar Nov 27 '17 18:11 coiacy

fixed by running Homebrew.brew(install libgfortran) and Homebrew.brew(install ipopt).

coiacy avatar Nov 29 '17 22:11 coiacy

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 :)

iamed2 avatar Jan 09 '18 20:01 iamed2