Compiling Julia on Amazon EC2

214 views
Skip to first unread message

Lars Ruthotto

unread,
Jan 15, 2016, 4:48:24 PM1/15/16
to julia-users
I need some help installing julia on the Amazon EC2. I chose Linux Server and after installing a few packages (like git, gcc,..) I was able to compile julia by typing

git clone https://github.com/JuliaLang/julia.git
cd julia
git checkout release-0.4
make

All seemed to work fine, so I created an image and loaded it on a bunch of other instances. Starting julia on these instances  gave me an error:

ERROR: Target architecture mismatch. Please delete or regenerate sys.{so,dll,dylib}.

Is there anything I can do to prevent this from happening? Maybe setting MARCH or JULIA_CPU_TARGET when compiling julia?

Thanks,
Lars

Tony Kelman

unread,
Jan 15, 2016, 9:45:31 PM1/15/16
to julia-users
Yeah, try building with MARCH=x86-64 as a common minimum. Or if you know the oldest type of server any of these will run on you could pick something slightly newer.

Lars Ruthotto

unread,
Jan 16, 2016, 11:14:02 AM1/16/16
to julia-users
Thanks Tony. Using MARCH=x86-64 works! I'm not sure how to figure out the oldest type of server in EC2.
Reply all
Reply to author
Forward
0 new messages