3

I am new to both julia and atom and trying to set them both up together. I installed juno for atom and am trying to run a julia script. I relocated my package directory for Julia from ~, because at my workplace there is a limit on space in said directory.

how do I make atom recognize the packages are in a different directory?

I am currently working on a CENTOS machine.

Dan Lowe
  • 51,713
  • 20
  • 123
  • 112
Mohammed Li
  • 823
  • 2
  • 7
  • 22

1 Answers1

2

Find your .juliarc.jl file, and insert the line

ENV["JULIA_PKGDIR"] = # your package directory

BTW this issue is unrelated to Atom. It is the julia installation that keeps track of the package directory.

Michael K. Borregaard
  • 7,864
  • 1
  • 28
  • 35
  • it kind of is if you set a JULIA_PKGDIR variable in the shell configuration file. In this case, the problem happens within julia, but not when calling julia from the commandline. Still, this fixes it. – Mohammed Li Apr 06 '17 at 13:32
  • Well, fair point. I think it is generally recommended to use the .juliarc.jl file, though. – Michael K. Borregaard Apr 06 '17 at 14:46