# Base.LOAD\_CACHE\_PATH

**URL:** <https://discourse.julialang.org/t/base-load-cache-path/21614>\
**Category:** General Usage\
**Created:** [March 8, 2019, 1:01am UTC](https://discourse.julialang.org/t/base-load-cache-path/21614 "2019-03-08T01:01:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![monty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/monty/32/44234_2.png) [@monty](https://discourse.julialang.org/u/monty)\
**Post date:** [March 8, 2019, 1:01am UTC](https://discourse.julialang.org/t/base-load-cache-path/21614/1 "2019-03-08T01:01:59Z")

</div>

How to set Base.LOAD\_CACHE\_PATH in julia 1.x.

---

<div class="post-metadata">

**Author:** ![cstjean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstjean/32/1444_2.png) [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Post date:** [March 8, 2019, 2:07am UTC](https://discourse.julialang.org/t/base-load-cache-path/21614/2 "2019-03-08T02:07:11Z")

</div>

LOAD\_CACHE\_PATH is dead, unfortunately. See [How precompile files are loaded need to change if using multiple projects are going to be pleasant · Issue #27418 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/27418)

You can kinda use `DEPOT_PATH` to do the same thing, but it can be inconvenient.

---

<div class="post-metadata">

**Author:** ![monty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/monty/32/44234_2.png) [@monty](https://discourse.julialang.org/u/monty)\
**Post date:** [March 8, 2019, 6:14pm UTC](https://discourse.julialang.org/t/base-load-cache-path/21614/3 "2019-03-08T18:14:57Z")

</div>

Too bad. I have a home dir shared by many different machines (os/proc type). I need to have different build place for each machine.

DEPOT\_PATH defines the location /Users/monty/.julia

So i will need /Users/monty/.julia-redhat, /Users/monty/.julia-linux, /Users/monty/.julia-ubuntu14, /Users/monty/.julia-ubuntu16, etc.

is this the way to go?

---

<div class="post-metadata">

**Author:** ![jameson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jameson/32/23_2.png) [@jameson](https://discourse.julialang.org/u/jameson)\
**Post date:** [March 12, 2019, 2:37am UTC](https://discourse.julialang.org/t/base-load-cache-path/21614/4 "2019-03-12T02:37:30Z")

</div>

I think you can have the top entry of the DEPOT\_PATH be the machine-specific Base.LOAD\_CACHE\_PATH and the second and later entries be the shared source locations.

---

<div class="post-metadata">

**Author:** ![monty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/monty/32/44234_2.png) [@monty](https://discourse.julialang.org/u/monty)\
**Post date:** [March 30, 2019, 10:12pm UTC](https://discourse.julialang.org/t/base-load-cache-path/21614/5 "2019-03-30T22:12:29Z")

</div>

> [@monty](#):
>
> DEPOT\_PATH

I think it is painful and challenging to use DEPOT\_PATH. this will requires to keep multiple copies of many packages. It will be easier if only the complied versions are stored in different directories.

this is what LOAD\_CACHE\_PATH was doing.

---

<div class="post-metadata">

**Author:** ![jdad](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jdad/32/4739_2.png) [@jdad](https://discourse.julialang.org/u/jdad)\
**Post date:** [March 31, 2019, 8:37am UTC](https://discourse.julialang.org/t/base-load-cache-path/21614/6 "2019-03-31T08:37:39Z")

</div>

I am not sure, but I think that you still have to keep working with DEPOT\_PATH, because when you build the package you can get architecture-dependant binaries inside the build subdirectory ?

---

<div class="post-metadata">

**Author:** ![jameson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jameson/32/23_2.png) [@jameson](https://discourse.julialang.org/u/jameson)\
**Post date:** [April 4, 2019, 9:38pm UTC](https://discourse.julialang.org/t/base-load-cache-path/21614/7 "2019-04-04T21:38:21Z")

</div>

> [@monty](#):
>
> this will requires to keep multiple copies of many packages

Like LOAD\_CACHE\_PATH, this is still an array of locations. The first is the place to store outputs, all of them are the place to read inputs.

---

<div class="post-metadata">

**Author:** ![monty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/monty/32/44234_2.png) [@monty](https://discourse.julialang.org/u/monty)\
**Post date:** [April 4, 2019, 11:58pm UTC](https://discourse.julialang.org/t/base-load-cache-path/21614/8 "2019-04-04T23:58:57Z")

</div>

I did not realize this. Let me try it. Thank you very much!
