# GLMakie.jl install error

**URL:** <https://discourse.julialang.org/t/glmakie-jl-install-error/37141>\
**Category:** General Usage\
**Tags:** question\
**Created:** [April 7, 2020, 4:41am UTC](https://discourse.julialang.org/t/glmakie-jl-install-error/37141 "2020-04-07T04:41:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhangliye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhangliye/32/3208_2.png) [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Post date:** [April 7, 2020, 4:41am UTC](https://discourse.julialang.org/t/glmakie-jl-install-error/37141/1 "2020-04-07T04:41:59Z")

</div>

I got the following error when I try to compile GLMakie.jl

```julia
julia> using GLMakie
[Info: Precompiling GLMakie [e9467ef8-e4e7-5192-8a1a-b1aee30e663a]
ERROR: LoadError: could not open file /home/liye/.julia/packages/GLMakie/aNKYB/deps/deps.jl
Stacktrace:
 [1] include at ./boot.jl:328 [inlined]
 [2] include_relative(::Module, ::String) at ./loading.jl:1105
 [3] include at ./Base.jl:31 [inlined]
 [4] include(::String) at /home/liye/.julia/packages/GLMakie/aNKYB/src/GLMakie.jl:1
 [5] top-level scope at /home/liye/.julia/packages/GLMakie/aNKYB/src/GLMakie.jl:40
 [6] include at ./boot.jl:328 [inlined]
 [7] include_relative(::Module, ::String) at ./loading.jl:1105
 [8] include(::Module, ::String) at ./Base.jl:31
 [9] top-level scope at none:2
 [10] eval at ./boot.jl:330 [inlined]
 [11] eval(::Expr) at ./client.jl:425
 [12] top-level scope at ./none:3
in expression starting at /home/liye/.julia/packages/GLMakie/aNKYB/src/GLMakie.jl:40
ERROR: Failed to precompile GLMakie [e9467ef8-e4e7-5192-8a1a-b1aee30e663a] to /home/liye/.julia/compiled/v1.3/GLMakie/nfnZR_CEdvK.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1283
 [3] _require(::Base.PkgId) at ./loading.jl:1024
 [4] require(::Base.PkgId) at ./loading.jl:922
 [5] require(::Module, ::Symbol) at ./loading.jl:917

```

I run Julia from Windows Subsystem for Linux ( _WSL_ ), on windows10, 64.  
The system information of WSL is as follows.

```julia
julia> versioninfo()
Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

```

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [April 7, 2020, 9:28am UTC](https://discourse.julialang.org/t/glmakie-jl-install-error/37141/2 "2020-04-07T09:28:16Z")

</div>

You need properly setup opengl drivers for GL (OpenGL) makie!  
There is a high chance, that it isn’t easily possible for `WSL` 😉

---

<div class="post-metadata">

**Author:** ![zhangliye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhangliye/32/3208_2.png) [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Post date:** [April 8, 2020, 1:31am UTC](https://discourse.julialang.org/t/glmakie-jl-install-error/37141/3 "2020-04-08T01:31:14Z")

</div>

Thanks! It should be the problem of OpenGL driver in WSL. It is not easy to solve in WSL ( [OpenGL in WSL](https://bowenzhai.ca/2018/04/15/OpenGL-Development-on-WSL-From-Setting-Up-to-Giving-Up-And-What-I-Learned/) ). Hopefully, WSL2 or WSL3 could solve this problem.
