I have installed Julia on a remote High Performance Computing centre and am in the process of calling .jl-files via SLURM batch script. However, it seems like the "Pkg" command is not available because the following message pops up:
ERROR: LoadError: UndefVarError: Pkg not defined
Stacktrace:
[1] top-level scope at /users/pa19/lanast/taskp/LAfem.jl:1
[2] include at ./boot.jl:328 [inlined]
[3] include_relative(::Module, ::String) at ./loading.jl:1105
[4] include(::Module, ::String) at ./Base.jl:31
[5] exec_options(::Base.JLOptions) at ./client.jl:287
[6] _start() at ./client.jl:460
in expression starting at /users/pa19/lanast/taskp/LAfem.jl:1
Could it be an issue with the installation of Julia? Does one have to provide the exact links for Julia to know where to fetch them from?
Thanks Lysandros
/users/pa19/lanast/taskp/LAfem.jlfrom where the error is thrown? Maybe you just didnt load thePkgmodule (using Pkg)? - fredrikekrePkg.installed(). Now I tried to add before this line theusing Pkgcommand but a different error appears, namely 'ERROR: LoadError: IOError: stat: permission denied (EACCES) for file "/users/apps/compilers/julia/1.3.1/share/julia/stdlib/v1.3/Pkg/src/Pkg.jl" ' Thank you - LysandrosAnERROR: LoadError: UndefVarError: Pkg not defined Stacktrace: [1] top-level scope at /users/pa19/lanast/taskp/LAfem.jl:2 [2] include at ./boot.jl:328 [inlined] [3] include_relative(::Module, ::String) at ./loading.jl:1105 [4] include(::Module, ::String) at ./Base.jl:31 [5] exec_options(::Base.JLOptions) at ./client.jl:287 [6] _start() at ./client.jl:460 in expression starting at /users/pa19/lanast/taskp/LAfem.jl:2- LysandrosAnPkg. What is it in the second case (the file permission one). - fredrikekre