# Question for use ITensor compile() in shell

**URL:** <https://itensor.discourse.group/t/question-for-use-itensor-compile-in-shell/357>\
**Category:** ITensor Julia Questions\
**Created:** [August 21, 2022, 7:44am UTC](https://itensor.discourse.group/t/question-for-use-itensor-compile-in-shell/357 "2022-08-21T07:44:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinh](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/kevinh/32/139_2.png) [@kevinh](https://itensor.discourse.group/u/kevinh)\
**Post date:** [August 21, 2022, 7:44am UTC](https://itensor.discourse.group/t/question-for-use-itensor-compile-in-shell/357/1 "2022-08-21T07:44:30Z")

</div>

Hi,miles  
After I read [Running ITensor and Julia Codes · ITensors.jl](http://itensor.github.io/ITensors.jl/stable/getting_started/RunningCodes.html), I successfully use ITensors.compile() to speed up the startup process of ITnesor.jl. But when I want to run it like this in a **bash script** , there is always an error, the easy script and the error are as follows:

```auto
#!/bin/bash
julia --sysimage ~/.julia/sysimages/sys_itensors.so isingOQN.jl

```

> ERROR: Unable to find compatible target in system image.

Note：  
I have added  
`alias julia_itensors="julia --sysimage ~/.julia/sysimages/sys_itensors.so"`  
in ./bashrc  
And it can be started normally in command .

I have tried searching for some solutions, but still can’t solve it. I sincerely hope to get some help from the community!

---

<div class="post-metadata">

**Author:** ![miles](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/miles/32/6_2.png) [@miles](https://itensor.discourse.group/u/miles)\
**Post date:** [August 21, 2022, 11:07pm UTC](https://itensor.discourse.group/t/question-for-use-itensor-compile-in-shell/357/2 "2022-08-21T23:07:28Z")

</div>

It’s a good question, but I don’t know what the issue is here. Because it is a Julia related issue, and not related to ITensor per se, I think you could get more help if you look or ask a question on the [Julia Discourse Forum](https://discourse.julialang.org)

For example, I found this post there:  
[https://discourse.julialang.org/t/unable-to-find-compatible-target-in-system-image/52879/2](https://discourse.julialang.org/t/unable-to-find-compatible-target-in-system-image/52879/2)

---

<div class="post-metadata">

**Author:** ![kevinh](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/kevinh/32/139_2.png) [@kevinh](https://itensor.discourse.group/u/kevinh)\
**Post date:** [August 26, 2022, 3:01am UTC](https://itensor.discourse.group/t/question-for-use-itensor-compile-in-shell/357/3 "2022-08-26T03:01:11Z")

</div>

Thanks for your suggestions!This helps me a lot.
