# Strange Glib\_jll behavior

**URL:** <https://discourse.julialang.org/t/strange-glib-jll-behavior/102168>\
**Category:** General Usage\
**Tags:** question, glib\_jll\
**Created:** [July 27, 2023, 6:23pm UTC](https://discourse.julialang.org/t/strange-glib-jll-behavior/102168 "2023-07-27T18:23:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bojohnson02](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bojohnson02/32/9345_2.png) [@bojohnson02](https://discourse.julialang.org/u/bojohnson02)\
**Post date:** [July 27, 2023, 6:23pm UTC](https://discourse.julialang.org/t/strange-glib-jll-behavior/102168/1 "2023-07-27T18:23:58Z")

</div>

My reseach cluster underwent big changes recently. I was running into errors with my Julia code and have started fresh with a new `juliaup` installation. I’m still getting some strange behavior that I think I’ve isolated is related to the `Glib_jll` package. If I start Julia and `using Glib_jll` I get the error

```julia
ERROR: InitError: could not load library "/home/bojohn/.julia/artifacts/1cfe0ebb804cb8b0d7d1e8f98e5cda94b2b31b3d/lib/libgobject-2.0.so"
/home/bojohn/.julia/artifacts/1cfe0ebb804cb8b0d7d1e8f98e5cda94b2b31b3d/lib/libgobject-2.0.so: undefined symbol: g_pattern_spec_copy

```

followed by a stacktrace. If I do one more `using Glib_jll` there is no further error, it looks like the `libgobject` library is found, and all my code works properly. I’ve read in several places I can start Julia by emptying my `LD_LIBRARY_PATH` environment variable and start Julia, which I’ve done and `using Glib_jll` doesn’t show any errors. This works fine if I am working in the terminal and I can alias `julia` to something like `LD_LIBRARY_PATH="" julia` and not worry about those errors, but the issue persists when I’m running code in VSCode, either with the Julia Extension or in a Jupyter Notebook. These two methods don’t seem to allow me to start using them by some sort of alias like in the terminal and I need to run all code twice in order for the error to go away. Any suggestions on how to permanently fix this error or at least allow VSCode to run Julia by first unsetting the `LD_LIBRARY_PATH` variable?

---

<div class="post-metadata">

**Author:** ![bojohnson02](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bojohnson02/32/9345_2.png) [@bojohnson02](https://discourse.julialang.org/u/bojohnson02)\
**Post date:** [July 28, 2023, 4:10pm UTC](https://discourse.julialang.org/t/strange-glib-jll-behavior/102168/2 "2023-07-28T16:10:34Z")

</div>

I fixed the issue by `add Glib_jll@2.68.3`
