Juno and using LD_PRELOAD



Does anyone know how I could use the LD_PRELOAD trick (see here https://github.com/JuliaPy/PyPlot.jl/issues/151) so as to get Julia working properly with several Python based libraries (e.g. PyPlot, Pandas) in Juno. Tried putting it into the Julia path in settings, as well as trying to create a shell script and using that in the path …


So I have solved this by just putting this in a bash script:

LD_PRELOAD=/home/nic/.julia/v0.6/Conda/deps/usr/lib/libz.so julia $@

and setting the name of the script in the Julia path in settings - I had forgotten to pass on arguments that Juno gives


You can export the variable: in your .bashrc, write

export LD_PRELOAD=/home/nic/.julia/v0.6/Conda/deps/usr/lib/libz.so

and call Julia from the command line.


A stupid question: What does @ mean at the end? Can I replace the command by julia instead of julia6 @ ?


Could you please tell me where to save the script file? I set the Julia path in the settings and got “permission denied” error


$@ holds an array of the input parameters to the bash script (see documentation on bash). Yes replace julia6 by julia, I just use aliases to distinguish different versions of julia. Will edit answer.


you will have to make your script executable e.g something like chmod +x script_name


thank you, I have done the experiment and now understand more!