# Dune build for multiple linux distribution

**URL:** <https://discuss.ocaml.org/t/dune-build-for-multiple-linux-distribution/5477>\
**Category:** Learning\
**Tags:** dune\
**Created:** [April 10, 2020, 11:02am UTC](https://discuss.ocaml.org/t/dune-build-for-multiple-linux-distribution/5477 "2020-04-10T11:02:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GabrieleMaurina](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@GabrieleMaurina](https://discuss.ocaml.org/u/GabrieleMaurina)\
**Post date:** [April 10, 2020, 11:02am UTC](https://discuss.ocaml.org/t/dune-build-for-multiple-linux-distribution/5477/1 "2020-04-10T11:02:42Z")

</div>

If I build an Ocaml Dune project on a Linux distribution, will it work on the others?

For example if I do: “dune build util.exe” on my Ubuntu machine, will it work on Fedora?

---

<div class="post-metadata">

**Author:** ![olafhering](https://avatars.discourse-cdn.com/v4/letter/o/a4c791/32.png) [@olafhering](https://discuss.ocaml.org/u/olafhering)\
**Post date:** [April 10, 2020, 6:34pm UTC](https://discuss.ocaml.org/t/dune-build-for-multiple-linux-distribution/5477/2 "2020-04-10T18:34:53Z")

</div>

Run `readelf -Wa util.exe | grep -w NEEDED` and compare if the required libraries are available on the target systems which you plan to support.

This is not really specific to OCaml, the same issue occours with every other language.

In general, use the “oldest” target system to produce the binaries. The used ABIs are usually available also on newer systems.
