Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

issue: "using Gtk" : could not load library "libgobject-2.0" #363

Closed
zhaotianjing opened this issue Aug 16, 2018 · 13 comments
Closed

issue: "using Gtk" : could not load library "libgobject-2.0" #363

zhaotianjing opened this issue Aug 16, 2018 · 13 comments

Comments

@zhaotianjing
Copy link

zhaotianjing commented Aug 16, 2018

  • Background
    Julia Version 0.7.0 64bit
    Gtk v0.16.1
    win10 64bit

  • Issue when using Gtk
    image

I've seen JuliaImages/ImageView.jl#146 but I'm already using Julia from terminal outside the IDE.

@zhaotianjing
Copy link
Author

zhaotianjing commented Aug 16, 2018

image
Same on Mac with Julia 1.0, Gtk v0.16.1

@zhaotianjing
Copy link
Author

I figured it out.
The problem is about the package "LibCURL"
When we use Julia as user, instead of Admin, this package has bug, cannot build successful. BTW I'm win10.
So I login as Admin, and solve the problem.
I've reported the issue, I believe this bug will be fixed by "LibCURL" soon. :)

@tknopp
Copy link
Collaborator

tknopp commented Aug 16, 2018

thanks for investigating

@bjce
Copy link

bjce commented Jul 26, 2019

Hello

I posted a similar problem about a year ago . I just installed the freshest Julia Pro version (1.1.1.1) but the problem unfortunately persists. Do you have any Idea how the problem could be solved?

@arinrb
Copy link

arinrb commented Jul 27, 2019

Hello

I posted a similar problem about a year ago . I just installed the freshest Julia Pro version (1.1.1.1) but the problem unfortunately persists. Do you have any Idea how the problem could be solved?

Ditto

@rtdietrich
Copy link

I have the same Problem under Win10. Login as Administrator does not help.

Any Idea?

julia> using Gtk
[ Info: Precompiling Gtk [4c0ca9eb-093a-5379-98c5-f87ac0bbbf44]
ERROR: LoadError: LoadError: error compiling top-level scope: could not load library "libgobject-2.0-0"
The specified module could not be found.

@tknopp
Copy link
Collaborator

tknopp commented Oct 30, 2019

Maybe build again, i.e. go to Pkg mode: ] build Gtk. The point is that the download it done at build time not precompile time.

@rtdietrich
Copy link

ty for your quick answer:

I tried it and got this:

(v1.3) pkg> build Gtk
Building LibCURL ─→ C:\Users\rtdietrich\.julia\packages\LibCURL\lWJxD\deps\build.log
Building WinRPM ──→ C:\Users\rtdietrich\.julia\packages\WinRPM\Y9QdZ\deps\build.log
┌ Error: Error building WinRPM:
│ ERROR: LoadError: LoadError: error compiling version: could not load library "zlib1"
│ The specified module could not be found.

@tknopp
Copy link
Collaborator

tknopp commented Oct 30, 2019

you are on Julia 1.3?

@tknopp
Copy link
Collaborator

tknopp commented Oct 30, 2019

I suggest switching to Julia 1.2 for the moment if you want a stable environment. Julia 1.3 introduces a new binary management system that will change substantially how dependencies are handled. See #447

@rtdietrich
Copy link

rtdietrich commented Oct 30, 2019

yes.... ok i will try it out

@rtdietrich
Copy link

Switching from 1.3 to Julia 1.2 feels like a miracle. All my Problems are gone.

Thank you so much for your hint!!!!

@colearendt
Copy link

colearendt commented Oct 27, 2021

For any future finders, a variation of this error was resolved in my environment by unsetting the LD_LIBRARY_PATH variable / setting LD_LIBRARY_PATH= to a blank value. Something on the LD_LIBRARY_PATH was causing issues in package installation / compilation.

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

No branches or pull requests

6 participants