Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Issue on Mac #8

Closed
econotron opened this issue May 7, 2014 · 17 comments
Closed

Installation Issue on Mac #8

econotron opened this issue May 7, 2014 · 17 comments

Comments

@econotron
Copy link

I am a novice Julia user on all dimensions. Ipopt did not install properly on my Mac, for either 0.2.1 or 0.3 pre-release Julia binaries. Here is the output for 0.2.1:

julia> Pkg.add("Ipopt")
INFO: Cloning cache of Ipopt from git://github.com/JuliaOpt/Ipopt.jl.git
INFO: Cloning cache of MathProgBase from git://github.com/JuliaOpt/MathProgBase.jl.git
INFO: Installing Ipopt v0.0.0
INFO: Installing MathProgBase v0.1.6
INFO: Building Homebrew
HEAD is now at c588ffb Remove git rebasing code that slipped through
HEAD is now at 53d9d57 Bump coinmp bottle
INFO: Building Ipopt
==> Installing ipopt dependency: gfortran
==> Downloading http://archive.org/download/julialang/bottles/gfortran-4.8.2.mav

################################################################### 100.0%

==> Pouring gfortran-4.8.2.mavericks.bottle.tar.gz
🍺 /Users/jtfox/.julia/v0.2/Homebrew/deps/usr/Cellar/gfortran/4.8.2: 5 files, 3.4M
==> Installing ipopt
==> Downloading http://archive.org/download/julialang/bottles/ipopt-3.11.7.snow_

################################################################### 100.0%

==> Pouring ipopt-3.11.7.snow_leopard_or_later.bottle.1.tar.gz
🍺 /Users/jtfox/.julia/v0.2/Homebrew/deps/usr/Cellar/ipopt/3.11.7: 64 files, 5.6M
================================[ ERROR: Ipopt ]================================

Provider PackageManager failed to satisfy dependency libipopt
at /Users/jtfox/.julia/v0.2/Ipopt/deps/build.jl:61

================================[ BUILD ERRORS ]================================

WARNING: Ipopt had build errors.

  • packages with build errors remain installed in /Users/jtfox/.julia/v0.2
  • build a package and all its dependencies with Pkg.build(pkg)
  • build a single package by running its deps/build.jl script

INFO: REQUIRE updated.

@mlubin
Copy link
Member

mlubin commented May 7, 2014

What version of OS X are you on?

Try Pkg.update() also, the latest version of Ipopt.jl is 0.1.1, while it seems you've installed 0.0.0.

@econotron
Copy link
Author

I am using OS X 10.9.2. Pkg.update() gives (deleting irrelevant output)

INFO: Upgrading Ipopt: v0.0.0 => v0.1.1

INFO: Building Ipopt

================================[ ERROR: Ipopt ]================================

Provider PackageManager failed to satisfy dependency libipopt

at /Users/jtfox/.julia/v0.2/Ipopt/deps/build.jl:81

On Tue, May 6, 2014 at 7:29 PM, Miles Lubin notifications@github.com wrote:

What version of OS X are you on?

Try Pkg.update() also, the latest version of Ipopt.jl is 0.1.1, while it seems you've installed 0.0.0.


Reply to this email directly or view it on GitHub.

@mlubin
Copy link
Member

mlubin commented May 7, 2014

Try this in Julia and let us know the output:

dlopen("/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/lib/libipopt")

@econotron
Copy link
Author

In Julia 0.2.1,

_julia> _dlopen("/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/lib/libipopt")

ERROR: could not load module
/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/lib/libipopt:
dlopen(/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/lib/libipopt.dylib, 1):
Library not loaded:
/usr/local/Cellar/gfortran/4.8.2/gfortran/lib/libquadmath.0.dylib

  • Referenced from:
    /Users/jtfox/.julia/v0.2/Homebrew/deps/usr/Cellar/gfortran/4.8.2/gfortran/lib/libgfortran.3.dylib*
  • Reason: image not found*
  • in dlopen at c.jl:29*

On Tue, May 6, 2014 at 8:07 PM, Miles Lubin notifications@github.comwrote:

Try this in Julia and let us know the output:

dlopen("/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/lib/libipopt")


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-42385216
.

@mlubin
Copy link
Member

mlubin commented May 7, 2014

CC @staticfloat

@staticfloat
Copy link
Contributor

Hmmm. That's not good. I'm honestly surprised this worked as long as it did.

I've updated the bottle and formula, please Homebrew.rm("gfortran"), Homebrew.update() and try again.

@econotron
Copy link
Author

I did so. If I do

Pkg.build("Ipopt")

I get

INFO: Building Homebrew

HEAD is now at c588ffb Remove git rebasing code that slipped through

HEAD is now at af5f20d Update gfortran bottle to correctly change install
names

INFO: Building Ipopt

================================[ ERROR: Ipopt
]================================

Provider PackageManager failed to satisfy dependency libipopt

at /Users/jtfox/.julia/v0.2/Ipopt/deps/build.jl:81

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

================================[ BUILD ERRORS
]================================

WARNING: Ipopt had build errors.

    • packages with build errors remain installed in /Users/jtfox/.julia/v0.2*
    • build a package and all its dependencies with Pkg.build(pkg)*
    • build a single package by running its deps/build.jl script*

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

On Wed, May 7, 2014 at 12:26 AM, Elliot Saba notifications@github.comwrote:

Hmmm. That's not good. I'm honestly surprised this worked as long as it
did.

I've updated the bottle and formula, please Homebrew.rm("gfortran"),
Homebrew.update() and try again.


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-42397099
.

@mlubin
Copy link
Member

mlubin commented May 7, 2014

Could you rerun dlopen("/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/lib/libipopt") and post the output again? Hopefully it's changed.

@staticfloat
Copy link
Contributor

Could you also run otool -L /Users/jtfox/.julia/v0.2/Homebrew/deps/usr/Cellar/gfortran/4.8.2/gfortran/lib/libgfortran.3.dylib?

I'm typing on my phone so I may have mispelled something.

@econotron
Copy link
Author

_julia> _dlopen("/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/lib/libipopt")

ERROR: could not load module
/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/lib/libipopt:
dlopen(/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/lib/libipopt.dylib, 1):
Library not loaded:
/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/Cellar/gfortran/4.8.2/gfortran/lib/libgfortran.3.dylib

  • Referenced from:
    /Users/jtfox/.julia/v0.2/Homebrew/deps/usr/lib/libipopt.dylib*
  • Reason: image not found*
  • in dlopen at c.jl:29*

On Wed, May 7, 2014 at 7:45 AM, Miles Lubin notifications@github.comwrote:

Could you rerun
dlopen("/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/lib/libipopt") and
post the output again? Hopefully it's changed.


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-42436026
.

@econotron
Copy link
Author

There is no gfortran directory under Cellar, i.e. there is

/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/Cellar/

but no further gfortran.

On Wed, May 7, 2014 at 9:15 AM, Elliot Saba notifications@github.comwrote:

Could you also run otool -L
/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/Cellar/gfortran/4.8.2/gfortran/lib/libgfortran.3.dylib
?

I'm typing on my phone so I may have mispelled something.


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-42448195
.

@mlubin
Copy link
Member

mlubin commented May 7, 2014

Maybe

using Homebrew
Homebrew.add("gfortran")

is needed?

@econotron
Copy link
Author

This added a gfortran directory where there was none before. Running the
previous otool command gives

/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/Cellar/gfortran/4.8.2/gfortran/lib/libgfortran.3.dylib:

/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/lib/libgfortran.3.dylib
(compatibility version 4.0.0, current version 4.0.0)

/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/Cellar/gfortran/4.8.2/gfortran/lib/libquadmath.0.dylib
(compatibility version 1.0.0, current version 1.0.0)

/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
169.3.0)

/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/Cellar/gfortran/4.8.2/gfortran/lib/libgcc_s.1.dylib
(compatibility version 1.0.0, current version 1.0.0)

Running the previous dlopen command gives

_julia> _dlopen("/Users/jtfox/.julia/v0.2/Homebrew/deps/usr/lib/libipopt")

Ptr{Void} @0x0000000107febaf0

I then reran

Pkg.build("Ipopt")

and got

_julia> _Pkg.build("Ipopt")

INFO: Building Homebrew

HEAD is now at c588ffb Remove git rebasing code that slipped through

HEAD is now at af5f20d Update gfortran bottle to correctly change install
names

INFO: Building Ipopt

I then ran the test file hs071.jl and got

_julia> _include("hs071.jl")

ERROR: createProblem not defined

  • in include at boot.jl:238*
  • in include_from_node1 at loading.jl:114*

at /Users/jtfox/Documents/Julia exampls/hs071.jl:107

On Wed, May 7, 2014 at 10:06 AM, Miles Lubin notifications@github.comwrote:

Maybe

using Homebrew
Homebrew.add("gfortran")

is needed?


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-42454445
.

@mlubin
Copy link
Member

mlubin commented May 7, 2014

It seems like the install was successful. Try starting a new Julia session.

@econotron
Copy link
Author

It worked, thanks a lot! I hope you can update the installation
instructions...

On Wed, May 7, 2014 at 10:26 AM, Miles Lubin notifications@github.comwrote:

It seems like the install was successful. Try starting a new Julia session.


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-42456867
.

@mlubin
Copy link
Member

mlubin commented May 7, 2014

Great! I think the original issue has been fixed, so a clean reinstall should "just work" at this point.

@mlubin mlubin closed this as completed May 7, 2014
@staticfloat
Copy link
Contributor

Awesome, glad it worked out. Sometimes we have to try kicking it a few times after implementing a fix, but clean installs should be okay now. It's just the inconsistent state of a failed installation being fixed that can be tricky sometimes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants