# \#ocamlinit

**URL:** https://discuss.ocaml.org/tag/ocamlinit/281.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [Initial switch creation failed: Failed to get sources of ocaml-base-compiler.5.1.1](https://discuss.ocaml.org/t/initial-switch-creation-failed-failed-to-get-sources-of-ocaml-base-compiler-5-1-1/13674)

<div class="topic-metadata">

**Author:** [@zihya](https://discuss.ocaml.org/u/zihya)\
**Replies:** 3\
**Last updated:** [December 20, 2023, 2:47pm UTC](https://discuss.ocaml.org/t/initial-switch-creation-failed-failed-to-get-sources-of-ocaml-base-compiler-5-1-1/13674 "2023-12-20T14:47:57Z")

</div>

When I do opam init --disable-sandboxing after installing opam following instruction from opam - Install, the initial switch creation failed with the error message \[ERROR\] Failed to get sources of ocaml-base-compiler.5.1…

---

## [How to get an .ocamlinit file per \[ switch | project \]?](https://discuss.ocaml.org/t/how-to-get-an-ocamlinit-file-per-switch-project/3114)

<div class="topic-metadata">

**Author:** [@RogerT](https://discuss.ocaml.org/u/RogerT)\
**Replies:** 2\
**Last updated:** [April 24, 2020, 12:13am UTC](https://discuss.ocaml.org/t/how-to-get-an-ocamlinit-file-per-switch-project/3114 "2020-04-24T00:13:14Z")

</div>

How do you manage your ~/.ocamlinit file with several switches? In other words, in the context of a growing number of opam switches with very different sets of libraries within a same machine, how can we get something …
