Thanks Isaiah, I created a system variable JULIA_PKGDIR with the path I wanted.
Restarted Julia and ran Pkg.init() On Tuesday, 30 September 2014 12:32:01 UTC+10, Isaiah wrote: > > That batch file doesn't start Julia. You will need to add JULIA_PKGDIR to > your environment, or set it via a batch file that does start julia.exe. > > On Mon, Sep 29, 2014 at 10:09 PM, Adrian Torrie <[email protected] > <javascript:>> wrote: > >> Hi, >> >> Current location of the .julia folder is not appropriate due to size >> limitations of roaming profile set by corporate domain admins. I cannot >> change the size of my roaming profile as I do not have domain admin rights. >> >> I would like to be able to change the package install directory to >> another place on my C:\ drive. I have local admin rights. I have installed >> julia to: "C:\Julia\Julia-0.3.1\" >> >> I tried changing "C:\Julia\Julia-0.3.1\bin\prepare-julia-env.bat" by >> adding the line "set JULIA_PKGDIR=C:\Julia\Julia-0.3.1\share\packages" >> without >> any success (it still initialises in %APPDATA%\.julia): >> @rem >> @rem This file attempts to auto detect and configure the environment >> @rem for starting julia and julia-web-server >> @rem >> @rem It sets the path as needed to reference various lib and bin >> @rem files, and builds sys.ji if needed. >> @rem >> >> >> set JULIA_PKGDIR=C:\Julia\Julia-0.3.1\share\packages >> set SYS_PATH=%PATH% >> set PATH=%~dp0;%~dp0bin;%~dp0usr\bin;%~dp0..\usr\bin;%~dp0..\..\usr\bin;% >> SYS_PATH% >> set JULIA_EXE=julia.exe >> for %%A in (%JULIA_EXE%) do set JULIA_HOME=%%~dp$PATH:A >> set JULIA=%JULIA_HOME%%JULIA_EXE% >> set PATH=%SYS_PATH% >> >> >> set private_libdir=bin >> if not exist "%JULIA_HOME%..\lib\julia\sys.ji" ( ^ >> echo "Preparing Julia for first launch. This may take a while" && ^ >> echo "You may see two git related errors. This is completely normal" && ^ >> cd "%JULIA_HOME%..\share\julia\base" && ^ >> "%JULIA%" --build "%JULIA_HOME%..\lib\julia\sys0" sysimg.jl && ^ >> "%JULIA%" --build "%JULIA_HOME%..\lib\julia\sys" -J sys0.ji sysimg.jl && >> ^ >> popd && pushd "%cd%" ) >> >> Unsure of how to proceed to put the package installs into a custom >> location, any help would be appreciated. >> >> Regards, >> Adrian >> > >
