# How to build the same percona-xtrabackup generic binary package as the official percona?

**URL:** <https://forums.percona.com/t/how-to-build-the-same-percona-xtrabackup-generic-binary-package-as-the-official-percona/20748>\
**Category:** Percona XtraBackup\
**Created:** [March 20, 2023, 2:32am UTC](https://forums.percona.com/t/how-to-build-the-same-percona-xtrabackup-generic-binary-package-as-the-official-percona/20748 "2023-03-20T02:32:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![czhfe](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@czhfe](https://forums.percona.com/u/czhfe)\
**Post date:** [March 20, 2023, 2:32am UTC](https://forums.percona.com/t/how-to-build-the-same-percona-xtrabackup-generic-binary-package-as-the-official-percona/20748/1 "2023-03-20T02:32:20Z")

</div>

How to build the same percona-xtrabackup generic binary package as percona official? I built it the following way, but it doesn’t work for every Linux distribution:

```auto
cmake3 .. \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_BOOST=../boost \
-DDOWNLOAD_BOOST=ON \
-DBUILD_CONFIG=xtrabackup_release \
-DWITH_SSL=/usr \
-DINSTALL_LAYOUT=STANDALONE \
-DINSTALL_MYSQLTESTDIR= \
-DWITH_DEBUG=OFF \
-DWITH_MAN_PAGES=ON

make -j $(nproc) && make install

```

---

<div class="post-metadata">

**Author:** ![Marcelo\_Altmann](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/marcelo_altmann/32/11299_2.png) [@Marcelo\_Altmann](https://forums.percona.com/u/Marcelo_Altmann)\
**Post date:** [March 20, 2023, 6:23pm UTC](https://forums.percona.com/t/how-to-build-the-same-percona-xtrabackup-generic-binary-package-as-the-official-percona/20748/2 "2023-03-20T18:23:53Z")

</div>

Hi @czhfe .

Can you show us the error you are seeing on some Linux distros?

Btw, we build packages using [percona-xtrabackup/build-binary.sh at 8.0 · percona/percona-xtrabackup · GitHub](https://github.com/percona/percona-xtrabackup/blob/8.0/storage/innobase/xtrabackup/utils/build-binary.sh)
