Question for use ITensor compile() in shell

After I read Running ITensor and Julia Codes · ITensors.jl, 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:

julia --sysimage ~/.julia/sysimages/  isingOQN.jl

ERROR: Unable to find compatible target in system image.

I have added
alias julia_itensors="julia --sysimage ~/.julia/sysimages/"
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!

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

For example, I found this post there:

Thanks for your suggestions!This helps me a lot.