JuliaOpt / CoinOptServices.jl

Julia interface to COIN-OR Optimization Services https://projects.coin-or.org/OS
Other
16 stars 4 forks source link

Homebrew issue on OS X #23

Closed ccoffrin closed 8 years ago

ccoffrin commented 8 years ago

In Julia 0.4.6 I am getting the following,

julia> Pkg.add("CoinOptServices")
INFO: Installing Cbc v0.2.1
INFO: Installing Clp v0.2.1
INFO: Installing CoinOptServices v0.1.2
INFO: Installing LightXML v0.2.1
INFO: Building Homebrew
...
INFO: Building CoinOptServices
Error: No available formula with the name "homebrew/science/cppad" 
Please tap it and then try again: brew tap homebrew/science
===========================[ ERROR: CoinOptServices ]===========================

LoadError: ArgumentError: `brew info` failed for Union{ASCIIString,UTF8String}["pkg-config","homebrew/science/cppad"]!
while loading /Users/cjc/.julia/v0.4/CoinOptServices/deps/build.jl, in expression starting on line 69

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

Had now issues a few months ago, so this seems to be a fairly recent development.

tkelman commented 8 years ago

what's your Pkg.status() ?

cppad is still there https://github.com/Homebrew/homebrew-science/blob/master/cppad.rb @staticfloat is something wrong with any_skip_relocation and auto tapping?

ccoffrin commented 8 years ago
julia> Pkg.status()
6 required packages:
 - BaseTestNext                  0.2.1
 - Gurobi                        0.2.2
 - Ipopt                         0.2.2
 - JSON                          0.6.0
 - JuMP                          0.13.2
 - SCS                           0.2.4
14 additional packages:
 - BinDeps                       0.4.2
 - Calculus                      0.1.15
 - Compat                        0.8.6
 - DataStructures                0.4.5
 - ForwardDiff                   0.1.8
 - Homebrew                      0.3.3
 - Lazy                          0.10.1
 - MacroTools                    0.3.0
 - MathProgBase                  0.5.1
 - NaNMath                       0.2.1
 - ReverseDiffSparse             0.5.6
 - SHA                           0.2.0
 - URIParser                     0.1.5
staticfloat commented 8 years ago

Yep, this was fixed in https://github.com/JuliaLang/Homebrew.jl/commit/dce70509034267969a86bae8903528c78630e306. Please try Pkg.checkout("Homebrew") and try again. If that fixes it, this will be bundled into the new Homebrew.jl release that I'm cooking up, should be public in a day or two.

tkelman commented 8 years ago

0.3.3 was tagged and included that commit

ccoffrin commented 8 years ago

@staticfloat I tried checking out master with Pkg.checkout("Homebrew"), the results were similar.

INFO: Building CoinOptServices
Error: No available formula with the name "homebrew/science/cppad" 
Please tap it and then try again: brew tap homebrew/science
===========================[ ERROR: CoinOptServices ]===========================

LoadError: ArgumentError: `brew info` failed for Union{ASCIIString,UTF8String}["pkg-config","homebrew/science/cppad"]!
while loading /Users/cjc/.julia/v0.4/CoinOptServices/deps/build.jl, in expression starting on line 69

================================================================================
staticfloat commented 8 years ago

Wow, I am truly disappointed in my past self and the solution that I came up with to the previous problem. I've pushed a much better fix in a0d0489b7a54c9cdfc6c4cf1a757595f25366f45, I will merge that presently, and then, after a bit more testing to make sure all issues are addressed, will tag a new release.

staticfloat commented 8 years ago

Please Pkg.update() and try again. :)

ccoffrin commented 8 years ago

Workin' like a charm! Thanks a bunch!