There is a function Pkg.init(), which seems to be related to this issue.

Base.Pkg.init()

   Initialize "Pkg.dir()" as a package directory. This will be done
   automatically when the "JULIA_PKGDIR" is not set and
   "Pkg.dir()" uses its default value.



kl. 10:24:45 UTC+1 torsdag 9. januar 2014 skrev Alexandr V.M. følgende:
>
> Hi,
>
> I have a problem while installing packages in windows Pkg.add("DataFrames")
> The default location for .julia is a network drive where I have no 
> permissions to write.
>
> I have read related topic: 
> https://groups.google.com/forum/?fromgroups=#!searchin/julia-users/package$20installation$20windows/julia-users/N_5F_DL0wP4/7GGneJB3W7IJ
> and created system variable 
> JULIA_PKGDIR = C:\MyTemp\...
> I also edited prepare-julia-env.bat file : set JULIA_PKGDIR=C:\MyTemp\...
>
> But I still have errors:
>
> julia> Pkg.add("DataFrames")
> ERROR: Unable to read directory METADATA.
>  in readdir at file.jl:172
>  in edit at pkg/entry.jl:19
> WARNING: backtraces on your platform are often misleading or partially 
> incorrect
>
> julia> Pkg.add("Winston")
> ERROR: Unable to read directory METADATA.
>  in readdir at file.jl:172
>  in edit at pkg/entry.jl:19
>

Reply via email to