# Dune installation error

**URL:** <https://discuss.ocaml.org/t/dune-installation-error/12468>\
**Category:** Learning\
**Tags:** opam, dune, build\
**Created:** [June 24, 2023, 5:17pm UTC](https://discuss.ocaml.org/t/dune-installation-error/12468 "2023-06-24T17:17:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spikeHollow](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/spikehollow/32/4526_2.png) [@spikeHollow](https://discuss.ocaml.org/u/spikeHollow)\
**Post date:** [June 24, 2023, 5:17pm UTC](https://discuss.ocaml.org/t/dune-installation-error/12468/1 "2023-06-24T17:17:20Z")

</div>

Hi, I’m trying to install dune. I did `opam install dune`. This is the error it gave me

```auto
#=== ERROR while compiling dune.3.8.2 =========================================#
# context 2.1.5 | linux/x86_64 | ocaml.5.0.0 | https://opam.ocaml.org#509ab4d9
# path ~/.opam/default/.opam-switch/build/dune.3.8.2
# command ~/.opam/opam-init/hooks/sandbox.sh build ./_boot/dune.exe build dune.install --release --profile dune-bootstrap -j 7
# exit-code 1
# env-file ~/.opam/log/dune-22736-950058.env
# output-file ~/.opam/log/dune-22736-950058.out
### output ###
# Error: sendfile(): Invalid argument
# -> required by _build/default/editor-integration/emacs/dune-flymake.el
# -> required by _build/install/default/share/emacs/site-lisp/dune-flymake.el
# -> required by _build/default/dune.install

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build dune 3.8.2
+- 
- No changes have been performed

```

I’m using Linux mint.

---

<div class="post-metadata">

**Author:** ![emillon](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/emillon/32/1206_2.png) [@emillon](https://discuss.ocaml.org/u/emillon)\
**Post date:** [June 26, 2023, 7:56am UTC](https://discuss.ocaml.org/t/dune-installation-error/12468/2 "2023-06-26T07:56:32Z")

</div>

Hi,  
Can you open an issue [here](https://github.com/ocaml/dune/issues/new/choose) please?  
The following pieces of information will be useful:

- can you try if it works with dune 3.7.1 (`opam install dune.3.7.1`). if it works, please also try 3.8.0 and 3.8.1
- is your HOME directory a network mount like NFS?
- can you install packages that do not use dune, for example you can try `opam install fmt`

Thanks

(saw that on [unable to install dune using opam · Issue #8041 · ocaml/dune · GitHub](https://github.com/ocaml/dune/issues/8041))
