# Unable to install RooFit

**URL:** <https://root-forum.cern.ch/t/unable-to-install-roofit/21299>\
**Category:** Roofit and RooStats\
**Created:** [June 9, 2016, 10:56am UTC](https://root-forum.cern.ch/t/unable-to-install-roofit/21299 "2016-06-09T10:56:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Majood](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/aca169/32.png) [@Majood](https://root-forum.cern.ch/u/Majood)\
**Post date:** [June 9, 2016, 10:56am UTC](https://root-forum.cern.ch/t/unable-to-install-roofit/21299/1 "2016-06-09T10:56:41Z")

</div>

Hi There

I’m really stuck in installing RooFit. I downloaded the ROOT v5.34 source code , created a folder in home directory as build folder and run the configure file like this:

```auto
/path_to_my_untared_source_code/configure linuxx8664gcc --enable-roofit
```

and went on the installation as it described here:  
[https://root.cern.ch/installing-root-source](https://root.cern.ch/installing-root-source)  
root works fine but when I issue this commad (in ROOT enviroment of course) i get these errors:

`oot [0] gSystem->Load("libRooFit") 
Error in <TUnixSystem::DynamicPathName>: libRooFit[.so | .dll | .dylib | .sl | .dl | .a] does not exist in .::/usr/lib/x86_64-linux-gnu/root5.34:/usr/lib/x86_64-linux-gnu/root5.34/cint/stl
(int)(-1)
`

and

```auto
root [0] using namespace RooFit ;
Error: namespace RooFit is not defined (tmpfile):1:
***Interpreter error recovered***
```

I’ll be more than grateful for any kind of hints

P.S.: I’m usnig Ubuntu 14.04 64 bit

```auto
majid@semeriton:~$ uname -a
Linux semeriton 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
```

P.S.S.: there is no enviromental variable as $ROOTSYS created. when I enter

```auto
echo $ROOTSYS
```

I get nothing, I know it’s not related to my question directly but I thought it might be somehow related

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [June 9, 2016, 11:08am UTC](https://root-forum.cern.ch/t/unable-to-install-roofit/21299/2 "2016-06-09T11:08:53Z")

</div>

> [@Missing Canvas](https://root-forum.cern.ch/t/missing-canvas/17664/17):
>
> Honestly speaking, sooner or later, you will learn by hard that the policy of using a “system-provided” ROOT version (e.g. in “/usr/[bin|lib]” or “/usr/local/[bin|lib]”) is a dead end. You will learn that you need something like three different versions of ROOT - just because something that works with a particular ROOT version is not working with another ones, or because some piece of your additional, experiment / analysis specific, software explicitly requires a particular ROOT version. The s…

---

<div class="post-metadata">

**Author:** ![Majood](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/aca169/32.png) [@Majood](https://root-forum.cern.ch/u/Majood)\
**Post date:** [June 9, 2016, 2:58pm UTC](https://root-forum.cern.ch/t/unable-to-install-roofit/21299/3 "2016-06-09T14:58:47Z")

</div>

Thanks for useful hint, yes it’s quit possible, I’ve just noticed that the history of commad after last remove still exist which means that I did not remove every things.

and thanks for posting this

> [@Installing ROOT 5 from Source](https://root-forum.cern.ch/t/installing-root-from-source/13647/1):
>
> The [https://root.cern.ch/build-root-old-method](https://root.cern.ch/build-root-old-method) does NOT mention “ROOTSYS” at all. A newcomer has no chance to learn that the following sequence works (the “/Where/I/Unpacked/The/Source/Code/Of/root” subdirectory must be different from the “ROOTSYS=/Where/I/Want/To/Install/root” subdirectory): cd /Where/I/Unpacked/The/Source/Code/Of/root export ROOTSYS=/Where/I/Want/To/Install/root ./configure [\<arch\>] --enable-soversion --all (g)make (g)make install # may need "sudo" The “./configure --help” …

earlier.

I hope this time I make it…

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [June 9, 2016, 3:12pm UTC](https://root-forum.cern.ch/t/unable-to-install-roofit/21299/4 "2016-06-09T15:12:59Z")

</div>

> [@Trouble Installing](https://root-forum.cern.ch/t/trouble-installing/18046/11):
>
> The easiest way would be to build ROOT “in-place” (in case anything goes wrong you’ll have additional “configure.out.txt” and “make.out.txt” files to look into): rm -rf v5-34-00-patches git clone -b v5-34-00-patches http://root.cern.ch/git/root.git v5-34-00-patches cd v5-34-00-patches unset ROOTSYS ./configure --enable-soversion --all \> configure.out.txt 2\>&1 make \> make.out.txt 2\>&1 On some newer operating systems, you may need to add “--enable-gsl-shared --disable-fitsio” into the “co…

---

<div class="post-metadata">

**Author:** ![Majood](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/aca169/32.png) [@Majood](https://root-forum.cern.ch/u/Majood)\
**Post date:** [June 10, 2016, 12:31pm UTC](https://root-forum.cern.ch/t/unable-to-install-roofit/21299/5 "2016-06-10T12:31:56Z")

</div>

Thanks. however , I’m unable to express my gratiude; I learn many thing about the better way of installing ROOT and the it’s advantages.
