# Building Percona Server for MongoDB 8.0 from source

**URL:** <https://forums.percona.com/t/building-percona-server-for-mongodb-8-0-from-source/40161>\
**Category:** MongoDB\
**Created:** [February 5, 2026, 4:52pm UTC](https://forums.percona.com/t/building-percona-server-for-mongodb-8-0-from-source/40161 "2026-02-05T16:52:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![atalasu](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@atalasu](https://forums.percona.com/u/atalasu)\
**Post date:** [February 5, 2026, 4:52pm UTC](https://forums.percona.com/t/building-percona-server-for-mongodb-8-0-from-source/40161/1 "2026-02-05T16:52:05Z")

</div>

Hello, I’m trying to follow the instructions here [Build from source code - Percona Server for MongoDB 8.0](https://docs.percona.com/percona-server-for-mongodb/8.0/install/source.html#build-steps) to build mongodb server from source. The instruction is to use buildscripts/scons.py to build, but the v8.0 branch of percona-server-mongodb doesn’t have scons.py. Looks like the build was switched to use bazel at some point. Are there any updated instructions using bazel?

---

<div class="post-metadata">

**Author:** ![Konstantin\_Trushin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/konstantin_trushin/32/5947_2.png) [@Konstantin\_Trushin](https://forums.percona.com/u/Konstantin_Trushin)\
**Post date:** [February 6, 2026, 9:21am UTC](https://forums.percona.com/t/building-percona-server-for-mongodb-8-0-from-source/40161/2 "2026-02-06T09:21:33Z")

</div>

Hello @atalasu,

Thank you for submitting a question to the Percona Community Forum.

We haven’t had a chance yet to properly update our documentation regarding building Percona Server for MongoDB. Nevertheless, I can provide basic guidance for compiling an optimized statically linked version.

The overall procedure mostly remains the same, with some modifications as follows:

- In the [Build AWS Software…](https://github.com/percona/percona-server-mongodb/blob/v8.0/CONTRIBUTING.rst#build-aws-software-development-kit-for-c-library) section:

- In the [Install Python…](https://github.com/percona/percona-server-mongodb/blob/v8.0/CONTRIBUTING.rst#install-python-and-python-modules) section, replace item 3 with

- In the [Build Percona Server for MongoDB](https://github.com/percona/percona-server-mongodb/blob/v8.0/CONTRIBUTING.rst#build-percona-server-for-mongodb) section, use the following command:

That will build `mongod`, `mongos` and some other targets.

Should you have any further questions or concerns, don’t hesitate to ask.
