# Juliacall cant use a package that builds fine outside juliacall \<random file path ending in "artifacts"\>/libgobject-2.0.so: undefined symbol: g\_uri\_ref

**URL:** https://discourse.julialang.org/t/juliacall-cant-use-a-package-that-builds-fine-outside-juliacall-random-file-path-ending-in-artifacts-libgobject-2-0-so-undefined-symbol-g-uri-ref/68289
**Category:** General Usage
**Tags:** question, artifacts, juliacall, glib\_jll
**Created:** [September 16, 2021, 11:10pm UTC](https://discourse.julialang.org/t/juliacall-cant-use-a-package-that-builds-fine-outside-juliacall-random-file-path-ending-in-artifacts-libgobject-2-0-so-undefined-symbol-g-uri-ref/68289 "2021-09-16T23:10:26Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![alexjaffray](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alexjaffray/32/30607_2.png) [@alexjaffray](https://discourse.julialang.org/u/alexjaffray)
#### Post date: [November 8, 2021, 11:21pm UTC](https://discourse.julialang.org/t/juliacall-cant-use-a-package-that-builds-fine-outside-juliacall-random-file-path-ending-in-artifacts-libgobject-2-0-so-undefined-symbol-g-uri-ref/68289/9 "2021-11-08T23:21:37Z")

</div>

If I start Julia with:

`LD_LIBRARY_PATH="" LD_PRELOAD="" Julia`

then the output of:

```julia
using Libdl
filter!(lib -> occursin("glib", lib), dllist())

```

is:

```julia
String[]

```

This is consistent with what should happen when clearing the LD\_LIBRARY\_PATH env variable. I have discovered the reason why I was getting the error before. The LD\_LIBRARY\_PATH variable was being set improperly (or not at all). Prepending /lib to LD\_LIBRARY\_PATH solved my problem.

---

_[View the full topic](https://discourse.julialang.org/t/juliacall-cant-use-a-package-that-builds-fine-outside-juliacall-random-file-path-ending-in-artifacts-libgobject-2-0-so-undefined-symbol-g-uri-ref/68289)._
