# How to get Juno to access $PATH?

**URL:** <https://discourse.julialang.org/t/how-to-get-juno-to-access-path/6991>\
**Category:** New to Julia\
**Tags:** juno\
**Created:** [November 10, 2017, 11:30am UTC](https://discourse.julialang.org/t/how-to-get-juno-to-access-path/6991 "2017-11-10T11:30:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amrods](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amrods/32/2543_2.png) [@amrods](https://discourse.julialang.org/u/amrods)\
**Post date:** [November 10, 2017, 11:30am UTC](https://discourse.julialang.org/t/how-to-get-juno-to-access-path/6991/1 "2017-11-10T11:30:50Z")

</div>

I recently installed KNITRO and got it working with JuMP from the REPL. However in Juno, I get the error  
`LoadError: error compiling loadproblem!: error compiling Type: could not load library "libknitro"`

Checking the Github for [KNITRO.jl](https://github.com/JuliaOpt/KNITRO.jl/issues/46) I found that setting `ENV["LD_LIBRARY_PATH"]` to the location of “libknitro” is a possible solution. However, it works on the Juno console but not from an open script file.

I tried adding `ENV["LD_LIBRARY_PATH"] = ...` to the juliarc.jl file, but again this only works when working in the Juno console.

Do you have any suggestions on how I can get Juno to access `$PATH`?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [November 10, 2017, 11:42am UTC](https://discourse.julialang.org/t/how-to-get-juno-to-access-path/6991/2 "2017-11-10T11:42:12Z")

</div>

There’s no difference in how the Juno console and a script handle environment variables – are you sure you have everything set up correctly? In particular, what does `ENV["LD_LIBRARY_PATH"]` return in the console (and a script, just to be sure)?

---

<div class="post-metadata">

**Author:** ![amrods](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amrods/32/2543_2.png) [@amrods](https://discourse.julialang.org/u/amrods)\
**Post date:** [November 10, 2017, 11:58am UTC](https://discourse.julialang.org/t/how-to-get-juno-to-access-path/6991/3 "2017-11-10T11:58:26Z")

</div>

Hmm, they both return the correct path for libknitro… I’m not sure what is happening, then. If I `include` the script in the REPL it works perfectly, but it doesn’t work in Juno.
