# Can't Launch RooFit, but why?

**URL:** <https://root-forum.cern.ch/t/cant-launch-roofit-but-why/21201>\
**Category:** TMVA\
**Created:** [May 26, 2016, 3:54pm UTC](https://root-forum.cern.ch/t/cant-launch-roofit-but-why/21201 "2016-05-26T15:54:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krusty](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/90db22/32.png) [@Krusty](https://root-forum.cern.ch/u/Krusty)\
**Post date:** [May 26, 2016, 3:54pm UTC](https://root-forum.cern.ch/t/cant-launch-roofit-but-why/21201/1 "2016-05-26T15:54:02Z")

</div>

Hi everyone!

I wanted to use RooFit and the User’s Guide says to run the ./configure of ROOT with the option --enable-roofit and then .

I followed the instructions, but ROOT does not recognize RooRealVar, for example: i notice it does not change colour; to better explain myself, after i set the option --enable-tmva and it worked perfectly, TMVA changed colour when i typed it in the ROOT terminal…  
On another computer, in which i am sure RooFit works, RooRealVar changed colour after being typed

The version of ROOT i have is 5.34.34

Thanks for reading and help (and sorry for my english…)!

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [May 27, 2016, 3:16pm UTC](https://root-forum.cern.ch/t/cant-launch-roofit-but-why/21201/2 "2016-05-27T15:16:28Z")

</div>

Hi,

You can check if ROOT has been built with roofit by typing

```auto
root-config --has-roofit
```

If the answer is no then your build is without it. Either you misspelled --enable-roofit (or -Droofit=On when using CMAKE) or using in reality a different root executable.  
In case you should also check the output of configure (or CMAKE).

Best Regards

Lorenzo

---

<div class="post-metadata">

**Author:** ![Krusty](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/90db22/32.png) [@Krusty](https://root-forum.cern.ch/u/Krusty)\
**Post date:** [May 27, 2016, 3:44pm UTC](https://root-forum.cern.ch/t/cant-launch-roofit-but-why/21201/3 "2016-05-27T15:44:13Z")

</div>

Hi Lorenzo!

I followed your instructions and it worked!  
Thank you very much 🙂
