Juno and using LD_PRELOAD

question
juno

#1

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 …


#2

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


#3

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.


#4

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


#5

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


#6

$@ 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.


#7

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


#8

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