There's a Julia variable called LOAD_PATH that is arranged to point at two
system directories under your julia installation. E.g.:
julia> LOAD_PATH
2-element Array{Union(ASCIIString,UTF8String),1}:
"/opt/julia-0.3.3/usr/local/share/julia/site/v0.3"
"/opt/julia-0.3.3/usr/share/julia/site/v0.3"
If you install packages under either of those directories, then everyone
using that Julia will see them. One way to do this is to run julia as a
user who can write to those directories after doing `export
JULIA_PKGDIR=/opt/julia-0.3.3/usr/share/julia/site` in the shell. That way
Julia will use that as it's package directory and normal package commands
will allow you to install packages for everyone. Or you can just copy your
installed packages and change the ownership and permissions so that
everyone can access the files.
On Wed, Dec 10, 2014 at 8:16 AM, Ján Dolinský <[email protected]>
wrote:
> Hello,
>
> I'd like to ask how to install Julia packages system-wide so that users do
> not have to install packages individually on their own but rather just once
> by an admin.
>
> Thanks,
> Jan
>