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

Package Installation Fails on OS X Julia v0.5 #23

Closed
cortner opened this issue Nov 24, 2016 · 3 comments
Closed

Package Installation Fails on OS X Julia v0.5 #23

cortner opened this issue Nov 24, 2016 · 3 comments

Comments

@cortner
Copy link
Contributor

cortner commented Nov 24, 2016

julia> Pkg.add("Dierckx")
INFO: Installing Dierckx v0.1.9
INFO: Building Dierckx
make: Nothing to be done for `all'.
julia> import Dierckx
INFO: Precompiling module Dierckx.
WARNING: Module Compat with uuid 210707374708653 is missing from the cache.
This may mean module Compat does not support precompilation but is imported by a module that does.
ERROR: LoadError: Declaring __precompile__(false) is not allowed in files that are being precompiled.
 in require(::Symbol) at ./loading.jl:385
 in require(::Symbol) at /Users/ortner/gits/julia/usr/lib/julia/sys.dylib:?
 in include_from_node1(::String) at ./loading.jl:488
 in include_from_node1(::String) at /Users/ortner/gits/julia/usr/lib/julia/sys.dylib:?
 in macro expansion; at ./none:2 [inlined]
 in anonymous at ./<missing>:?
 in eval(::Module, ::Any) at ./boot.jl:234
 in eval(::Module, ::Any) at /Users/ortner/gits/julia/usr/lib/julia/sys.dylib:?
 in process_options(::Base.JLOptions) at ./client.jl:239
 in _start() at ./client.jl:318
 in _start() at /Users/ortner/gits/julia/usr/lib/julia/sys.dylib:?
while loading /Users/ortner/.julia/v0.5/Dierckx/src/Dierckx.jl, in expression starting on line 5
ERROR: Failed to precompile Dierckx to /Users/ortner/.julia/lib/v0.5/Dierckx.ji.
 in compilecache(::String) at ./loading.jl:593
 in require(::Symbol) at ./loading.jl:422
 in require(::Symbol) at /Users/ortner/gits/julia/usr/lib/julia/sys.dylib:?

If I then still try to import it,

julia> using Dierckx

julia> s = Spline1D(linspace(0,1,10), rand(10))
ERROR: error compiling #Spline1D#1: could not load library "/Users/ortner/.julia/v0.5/Dierckx/src/../deps/src/ddierckx/libddierckx"
dlopen(/Users/ortner/.julia/v0.5/Dierckx/src/../deps/src/ddierckx/libddierckx.dylib, 1): Library not loaded: /usr/local/opt/gcc/lib/gcc/5/libgfortran.3.dylib
  Referenced from: /Users/ortner/.julia/v0.5/Dierckx/deps/src/ddierckx/libddierckx.dylib
  Reason: image not found
 in Dierckx.Spline1D(::LinSpace{Float64}, ::Array{Float64,1}) at /Users/ortner/.julia/v0.5/Dierckx/src/Dierckx.jl:119

I checked and on my system /usr/local/opt/gcc/lib/gcc/5/libgfortran.3.dylib does not exist, instead the library is under .../6/....

@kbarbary
Copy link
Owner

I'm surprised by the line make: Nothing to be done for 'all'. ... did you previously build Dierckx, maybe with gcc 5? Just to be sure, can you try cleaning and rebuilding the library? You should be able to run make clean in the ~/.julia/v0.5/Dierckx/deps/src/ddierckx directory to clean before rebuilding.

@cortner
Copy link
Contributor Author

cortner commented Nov 24, 2016

Thank you, that did it. I had previously removed Pkg.rm("Dierckx") but it seems this was not sufficient? Apologies for the noise here.

@cortner cortner closed this as completed Nov 24, 2016
@kbarbary
Copy link
Owner

No problem. Pkg.rm doesn't "fully" remove packages, which has caused some debate.

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

No branches or pull requests

2 participants