A simple way is to define a HOME environment variable to point to the 
directory you choose.  Julia will put the .julia subdirectory here (and 
will look for .juliarc.jl here as well).

-Peter

On Monday, September 29, 2014 7:09:15 PM UTC-7, Adrian Torrie 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
>

Reply via email to