I've just been through this too. The trouble is probably common to anyone using Julia in a workplace with Windows and no administrator rights (so that network drive is always popping up). I wrote a julia.bat file: set JULIA_PKGDIR=D:\Julia.0.3.2 set HOME=D:\Julia.0.3.2 D:\Julia-0.3.2\bin\julia.exe
which in my case points to D:\Julia0.3.2 where I have locally installed. Then use that julia.bat file to start it each time. On Tuesday, September 9, 2014 4:25:44 PM UTC+1, Freddy Svensson wrote: > > Hi, can you show exactly how to change prepare-julia-env.bat to have > JULIA_PKGDIR and other ENV variables preset when Julia loads, adding an > empty line and then set JULIA_PKGDIR=C:\julia_pkg does not work for me. > > Thanks, FS > > > > On Friday, 8 November 2013 00:00:28 UTC+1, Dave Ramsey wrote: >> >> Hi, thanks for the reply. That appeared to work. For others that >> will read this post you need to modify the file prepare-julia-env.bat and >> add the line (for example) >> set JULIA_PKGDIR=c:\users\xxx\juliapackages >> >> or something similar. Out of the box Julia v0.2 rc2 was creating the >> .julia folder on one of my network drives H:\.julia and there were some >> permission problems associated with package installation. Setting the >> package directory to a local drive solved the problem. Why Julia was >> going to a network drive in the first place a mystery. As my previous >> post mentioned the v0.2prerelease version did not do this. >> >> Thanks again for your help >> cheers >> Dave >> >> >> On Thursday, November 7, 2013 6:33:23 PM UTC+11, Elliot Saba wrote: >>> >>> Hello there! You can set the JULIA_PKGDIR environment variable to a >>> different directory, and that will change where the packages are stored. >>> (It will not create a .julia directory inside of whatever JULIA_PKGDIR >>> points to, so for instance you set JULIA_PKGDIR equal to >>> "C:\Users\MyUsername\JuliaPackages" and it would store the packages >>> directory inside that folder). >>> >>> Could you post the error that it is encountering? Permissions likely >>> should not be an issue on your local disk, as we take pains to choose >>> default locations you should have write access to. >>> -E >>> >>> >>> On Wed, Nov 6, 2013 at 4:20 PM, Dave Ramsey <[email protected]> wrote: >>> >>>> Hi, Newbie question here. I am using Julia v0.2-rc2 on a 32 bit >>>> Windows 7 machine. I wish to change the default location of my installed >>>> packages (i.e. the location of my .julia folder). There doesn't appear to >>>> be anything relevant in the package documentation or the list that I can >>>> find? Since upgrading from 0.2prerelease I can no longer install >>>> packages >>>> and was wondering if the new default package location is the cause (I'm >>>> behind a work network). >>>> >>>> thanks for you help >>>> Dave >>>> >>>> >>>> >>>> >>>
