# Cant use Plots inside tmux

**URL:** <https://discourse.julialang.org/t/cant-use-plots-inside-tmux/76911>\
**Category:** General Usage\
**Tags:** plotting, linux\
**Created:** [February 22, 2022, 3:07pm UTC](https://discourse.julialang.org/t/cant-use-plots-inside-tmux/76911 "2022-02-22T15:07:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlomontec](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carlomontec/32/2011_2.png) [@carlomontec](https://discourse.julialang.org/u/carlomontec)\
**Post date:** [February 22, 2022, 3:07pm UTC](https://discourse.julialang.org/t/cant-use-plots-inside-tmux/76911/1 "2022-02-22T15:07:50Z")

</div>

Hello,

seems I cannot load Plots when I open Julia inside a tmux session in PopOS! 20.04 in my local computer:

```julia
carlo@pclinux:/media/carlo/tests/$ julia172 
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.7.2 (2022-02-06)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

julia> using StructArrays

julia> using Plots
ERROR: InitError: could not load library "/home/xxx/.julia/artifacts/b069ad81d556658ea64a543367e128e535fab269/lib/libgobject-2.0.so"
/home/carlo/.julia/artifacts/b069ad81d556658ea64a543367e128e535fab269/lib/libgobject-2.0.so: undefined symbol: g_uri_ref

```

In a normal terminal I can open it without issues. Has anyone else faced a similar issue?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [February 22, 2022, 3:30pm UTC](https://discourse.julialang.org/t/cant-use-plots-inside-tmux/76911/2 "2022-02-22T15:30:24Z")

</div>

My educated guess is that you have `LD_LIBRARY_PATH` set to some system libraries and that’s making `dlopen` pick up some conflicting system libraries. You can verify this hypothesis with:

```julia
ENV["LD_LIBRARY_PATH"]

```

If that’s the case, the solution is to start julia with `LD_LIBRARY_PATH="" julia`

---

<div class="post-metadata">

**Author:** ![carlomontec](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carlomontec/32/2011_2.png) [@carlomontec](https://discourse.julialang.org/u/carlomontec)\
**Post date:** [February 23, 2022, 10:32am UTC](https://discourse.julialang.org/t/cant-use-plots-inside-tmux/76911/3 "2022-02-23T10:32:32Z")

</div>

Thank you for the fast answer!  
It went exactly as you described. For the record, the terminal had loaded somehow some library paths from the AMD AOCC compiler, which seem to be causing issues. This does not seem to represent a problem when loading the Intel OneAPI ( the MKL lib.) variables.
