Question for use ITensor compile() in shell

Hi,miles
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:

#!/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!

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:
https://discourse.julialang.org/t/unable-to-find-compatible-target-in-system-image/52879/2

Thanks for your suggestions!This helps me a lot.