How to get Juno to access $PATH?

juno

#1

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 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?


#2

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)?


#3

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.