# How i can install Percona MongoDB \>=v6.x.x on VM that isn\`t support AVX

**URL:** <https://forums.percona.com/t/how-i-can-install-percona-mongodb-v6-x-x-on-vm-that-isn-t-support-avx/28475>\
**Category:** Percona Server for MongoDB\
**Created:** [February 14, 2024, 9:04pm UTC](https://forums.percona.com/t/how-i-can-install-percona-mongodb-v6-x-x-on-vm-that-isn-t-support-avx/28475 "2024-02-14T21:04:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mykhailo\_Chornii](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/mykhailo_chornii/32/15165_2.png) [@Mykhailo\_Chornii](https://forums.percona.com/u/Mykhailo_Chornii)\
**Post date:** [February 14, 2024, 9:04pm UTC](https://forums.percona.com/t/how-i-can-install-percona-mongodb-v6-x-x-on-vm-that-isn-t-support-avx/28475/1 "2024-02-14T21:04:30Z")

</div>

can I rebuild the deb package from the source code by disabling the AVX dependency? because I need to install the version \>= 6.x on a VM that does not support AVX

---

<div class="post-metadata">

**Author:** ![oleksandr.havryliak](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/oleksandr.havryliak/32/5703_2.png) [@oleksandr.havryliak](https://forums.percona.com/u/oleksandr.havryliak)\
**Post date:** [February 19, 2024, 9:56am UTC](https://forums.percona.com/t/how-i-can-install-percona-mongodb-v6-x-x-on-vm-that-isn-t-support-avx/28475/2 "2024-02-19T09:56:12Z")

</div>

Hi @Mykhailo_Chornii !  
Theoretically you can rebuild percona server for mongodb without AVX dependency.  
For this please follow the instructions from the [docs](https://docs.percona.com/percona-server-for-mongodb/6.0/install/source.html), but before building it you need to modify the [SConstruct](https://github.com/percona/percona-server-mongodb/blob/v6.0/SConstruct) file by removing default `+sandybridge` optimization. Change this part

```auto
add_option('experimental-optimization',
    action="append",
    choices=experimental_optimization_choices,
    const=experimental_optimization_choices[0],
    default=['+sandybridge'],
    help='Enable experimental optimizations',
    nargs='?',
    type='choice'
)

```

to this

```auto
add_option('experimental-optimization',
    action="append",
    choices=experimental_optimization_choices,
    const=experimental_optimization_choices[0],
    default=[],
    help='Enable experimental optimizations',
    nargs='?',
    type='choice'
)

```

But keep in mind that we haven’t tested it so there may be performance issues
