Cross-linking this to the corresponding issue: https://github.com/JuliaLang/julia/issues/11816
Am 23.06.2015 um 12:17 schrieb Vladislav Falfushinsky <vladislav.falfushin...@gmail.com>: > Recently I`ve tried to deploy julia application, but I recieved an error. > > The code is rather simple: > > function main() > println("Hello world!!!") > println(1 + 1) > end > main() > > I use command: > > julia julia-master/contrib/build_executable.jl testexec ./test2.jl --force > > However I recieve an error: > > LoadError(at "sysimg.jl" line 327: LoadError(at > "/opt/emgs/projects/tmp/julia/julia-master/base/userimg.jl" line 1: > LoadError(at "/opt/emgs/projects/tmp/julia/test2.jl" line 7: > UndefVarError(var=:STDOUT)))) > rec_backtrace at /opt/emgs/projects/tmp/julia/julia-master/src/task.c:649 > jl_throw at /opt/emgs/projects/tmp/julia/julia-master/src/task.c:809 > jl_undefined_var_error at > /opt/emgs/projects/tmp/julia/julia-master/src/builtins.c:124 > main at /opt/emgs/projects/tmp/julia/test2.jl:3 > jlcall_main_21949 at (unknown line) > jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/gf.c:1650 > jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:66 > eval at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:212 > jl_toplevel_eval_flex at > /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:517 > jl_parse_eval_all at > /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:567 > jl_load at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:610 > include at boot.jl:254 > jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/gf.c:1625 > include_from_node1 at loading.jl:133 > jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/gf.c:1625 > jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:66 > eval at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:212 > jl_toplevel_eval_flex at > /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:517 > jl_parse_eval_all at > /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:567 > jl_load at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:610 > include at boot.jl:254 > jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/gf.c:1625 > include_from_node1 at loading.jl:133 > jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/gf.c:1625 > jl_apply at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:66 > eval at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:212 > eval_body at /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:598 > jl_toplevel_eval_body at > /opt/emgs/projects/tmp/julia/julia-master/src/interpreter.c:529 > jl_toplevel_eval_flex at > /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:511 > jl_parse_eval_all at > /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:567 > jl_load at /opt/emgs/projects/tmp/julia/julia-master/src/toplevel.c:610 > unknown function (ip: 0x40249c) > unknown function (ip: 0x4029a5) > unknown function (ip: 0x402a5f) > __libc_start_main at /lib64/libc.so.6 (unknown line) > unknown function (ip: 0x401589) > > ERROR: LoadError: failed process: > Process(`/opt/emgs/projects/tmp/julia/julia-master/usr/bin/julia -C native > --build /opt/emgs/projects/tmp/julia/julia-master/usr/lib/libtestexec -J > /opt/emgs/projects/tmp/julia/julia-master/usr/lib/inference.ji -f sysimg.jl`, > ProcessExited(1)) [1] > in run at ./process.jl:490 > in anonymous at > /opt/emgs/projects/tmp/julia/julia-master/contrib/build_sysimg.jl:66 > in cd at ./file.jl:22 > in build_sysimg at > /opt/emgs/projects/tmp/julia/julia-master/contrib/build_sysimg.jl:27 > in include at ./boot.jl:254 > in include_from_node1 at loading.jl:133 > in process_options at ./client.jl:304 > in _start at ./client.jl:404 > while loading > /opt/emgs/projects/tmp/julia/julia-master/contrib/build_sysimg.jl, in > expression starting on line 176 > > ERROR: LoadError: failed process: > Process(`/opt/emgs/projects/tmp/julia/julia-master/usr/bin/julia > /opt/emgs/projects/tmp/julia/julia-master/contrib/build_sysimg.jl > /opt/emgs/projects/tmp/julia/julia-master/usr/lib/libtestexec native > /tmp/tmpyZPKz2/userimg.jl --force`, ProcessExited(1)) [1] > in run at ./process.jl:490 > in build_executable at > /opt/emgs/projects/tmp/julia/julia-master/contrib/build_executable.jl:109 > in build_executable at > /opt/emgs/projects/tmp/julia/julia-master/contrib/build_executable.jl:58 > in include at ./boot.jl:254 > in include_from_node1 at loading.jl:133 > in process_options at ./client.jl:304 > in _start at ./client.jl:404 > while loading > /opt/emgs/projects/tmp/julia/julia-master/contrib/build_executable.jl, in > expression starting on line 277 > > > On Sunday, June 14, 2015 at 4:17:03 PM UTC+2, Daniel Carrera wrote: > I never cease to be impressed by Julia's speed. I just wrote a test program > in Julia and Fortran 90 (it computes the gravitational force between some > planets). To my surprise, the Julia version was 7% faster than Fortran. > > So... apparently one can write N-body codes with Julia. > > Suppose I wrote a simulation in Julia. What would be the best way to deploy > it to a distant computer cluster where I do not have root access? The cluster > runs Linux. Can I get a single stand-alone Julia binary that I can just push > to the cluster so I can run Julia programs there? The advantage of a > stand-alone binary is that I could include it in a zip file and give it to my > colleagues to try my program. > > Let me know if you have any suggestions. > > Cheers, > Daniel. > -- > When an engineer says that something can't be done, it's a code phrase that > means it's not fun to do.