# Juno and using LD\_PRELOAD

**URL:** <https://discourse.julialang.org/t/juno-and-using-ld-preload/6658>\
**Category:** General Usage\
**Tags:** question, juno\
**Created:** [October 24, 2017, 3:36pm UTC](https://discourse.julialang.org/t/juno-and-using-ld-preload/6658 "2017-10-24T15:36:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![njwalker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/njwalker/32/7524_2.png) [@njwalker](https://discourse.julialang.org/u/njwalker)\
**Post date:** [October 24, 2017, 3:36pm UTC](https://discourse.julialang.org/t/juno-and-using-ld-preload/6658/1 "2017-10-24T15:36:08Z")

</div>

Does anyone know how I could use the LD\_PRELOAD trick (see here [https://github.com/JuliaPy/PyPlot.jl/issues/151](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 …

---

<div class="post-metadata">

**Author:** ![njwalker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/njwalker/32/7524_2.png) [@njwalker](https://discourse.julialang.org/u/njwalker)\
**Post date:** [October 24, 2017, 3:37pm UTC](https://discourse.julialang.org/t/juno-and-using-ld-preload/6658/2 "2017-10-24T15:37:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mzaffalon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mzaffalon/32/214168_2.png) [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Post date:** [October 24, 2017, 4:30pm UTC](https://discourse.julialang.org/t/juno-and-using-ld-preload/6658/3 "2017-10-24T16:30:53Z")

</div>

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

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

```

and call Julia from the command line.

---

<div class="post-metadata">

**Author:** ![Lian\_Yunlong](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lian_yunlong/32/14437_2.png) [@Lian\_Yunlong](https://discourse.julialang.org/u/Lian_Yunlong)\
**Post date:** [December 3, 2017, 1:33am UTC](https://discourse.julialang.org/t/juno-and-using-ld-preload/6658/4 "2017-12-03T01:33:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Lian\_Yunlong](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lian_yunlong/32/14437_2.png) [@Lian\_Yunlong](https://discourse.julialang.org/u/Lian_Yunlong)\
**Post date:** [December 3, 2017, 1:33am UTC](https://discourse.julialang.org/t/juno-and-using-ld-preload/6658/5 "2017-12-03T01:33:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![njwalker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/njwalker/32/7524_2.png) [@njwalker](https://discourse.julialang.org/u/njwalker)\
**Post date:** [December 3, 2017, 11:04am UTC](https://discourse.julialang.org/t/juno-and-using-ld-preload/6658/6 "2017-12-03T11:04:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![njwalker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/njwalker/32/7524_2.png) [@njwalker](https://discourse.julialang.org/u/njwalker)\
**Post date:** [December 3, 2017, 11:10am UTC](https://discourse.julialang.org/t/juno-and-using-ld-preload/6658/7 "2017-12-03T11:10:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Lian\_Yunlong](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lian_yunlong/32/14437_2.png) [@Lian\_Yunlong](https://discourse.julialang.org/u/Lian_Yunlong)\
**Post date:** [December 3, 2017, 12:06pm UTC](https://discourse.julialang.org/t/juno-and-using-ld-preload/6658/8 "2017-12-03T12:06:51Z")

</div>

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