# Root6 compilation on Centos7, g++17 on RooFitCore

**URL:** <https://root-forum.cern.ch/t/root6-compilation-on-centos7-g-17-on-roofitcore/53164>\
**Category:** ROOT\
**Tags:** installation\
**Created:** [January 18, 2023, 4:31pm UTC](https://root-forum.cern.ch/t/root6-compilation-on-centos7-g-17-on-roofitcore/53164 "2023-01-18T16:31:04Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Ako\_b](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@Ako\_b](https://root-forum.cern.ch/u/Ako_b)\
**Post date:** [January 19, 2023, 7:19pm UTC](https://root-forum.cern.ch/t/root6-compilation-on-centos7-g-17-on-roofitcore/53164/5 "2023-01-19T19:19:57Z")

</div>

Possible solution might be using mambaforge, as mentioned in this thread

> [@ROOT build with Python 3.7 in centos7](https://root-forum.cern.ch/t/root-build-with-python-3-7-in-centos7/53162/8):
>
> Hi, conda is notoriously slow. I find myself much better when using [mamba](https://mamba.readthedocs.io/en/latest/index.html). It’s the same as using conda, but much faster. I suggest you read the docs, but the following steps should already give you a minimal working environment (taken from [here](https://github.com/conda-forge/miniforge#unix-like-platforms)): curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh" bash Mambaforge-$(uname)-$(uname -m).sh # The bash script will install mamba into a folder of your choice # For simplicity, in the follo…

I was able to easily install latest version of gcc in Ubuntu with following commands:

```auto
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh"
bash Mambaforge-$(uname)-$(uname -m).sh
source mambaforge/bin/activate
mamba create -n gcctest gxx -c conda-forge
conda activate gcctest

```

I guess that this should work in Centos also.  
So you could get latest gcc version in this way and try to build ROOT with it.

---

_[View the full topic](https://root-forum.cern.ch/t/root6-compilation-on-centos7-g-17-on-roofitcore/53164)._
