# ROOT 5.32.4/Ubuntu 12.10 /Pytho2.7

**URL:** <https://root-forum.cern.ch/t/root-5-32-4-ubuntu-12-10-pytho2-7/15297>\
**Category:** ROOT\
**Created:** [November 27, 2012, 1:39pm UTC](https://root-forum.cern.ch/t/root-5-32-4-ubuntu-12-10-pytho2-7/15297 "2012-11-27T13:39:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nabil](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/e79b87/32.png) [@Nabil](https://root-forum.cern.ch/u/Nabil)\
**Post date:** [November 27, 2012, 1:39pm UTC](https://root-forum.cern.ch/t/root-5-32-4-ubuntu-12-10-pytho2-7/15297/1 "2012-11-27T13:39:32Z")

</div>

dear experts,  
am trying to compile ROOT with Ubuntu12.10/python2.7/gcc4.7.2 and i fail to get Pyroot work.  
i did the following steps at the bottom at this message. Is there some step I am missing?  
ghodbane@pcclratl12:~$ python  
Python 2.7.3 (default, Sep 26 2012, 21:53:58)  
[GCC 4.7.2] on linux2  
Type “help”, “copyright”, “credits” or “license” for more information.

> > > import ROOT  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > ImportError: No module named ROOT

thanks.  
1)  
./configure --prefix=/opt/root/root\_v5.32.04.Linux-ubuntu-gcc4.7.2 --enable-cintex --enable-explicitlink --enable-gdml --enable-genvector --enable-krb5 --enable-mathmore --enable-minuit2 --enable-mysql --enable-oracle --enable-python --enable-qt --enable-qtgsi --enable-reflex --enable-roofit  
2) make  
3) make install

then i setup ROOTSY/LD\_LIBRARY\_PATH/PYTHONPATH  
and i simply fail to load ROOT in python  
python  
import ROOT

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [November 27, 2012, 4:41pm UTC](https://root-forum.cern.ch/t/root-5-32-4-ubuntu-12-10-pytho2-7/15297/2 "2012-11-27T16:41:41Z")

</div>

[url][Import ROOT error](https://root-forum.cern.ch/t/import-root-error/14636/1)  
[url][Installation succeeds but root doesn't start](https://root-forum.cern.ch/t/installation-succeeds-but-root-doesnt-start/14657/1)  
[url][PyROOT and Ubuntu 12.04](https://root-forum.cern.ch/t/pyroot-and-ubuntu-12-04/14227/1)  
[url][The version of ROOT and the compatibility with the Python](https://root-forum.cern.ch/t/the-version-of-root-and-the-compatibility-with-the-python/14812/1)  
[url][PyROOT on OS X 10.8: libpython2.7 is not found](https://root-forum.cern.ch/t/pyroot-on-os-x-10-8-libpython2-7-is-not-found/14706/1)

---

<div class="post-metadata">

**Author:** ![Nabil](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/e79b87/32.png) [@Nabil](https://root-forum.cern.ch/u/Nabil)\
**Post date:** [November 28, 2012, 3:47pm UTC](https://root-forum.cern.ch/t/root-5-32-4-ubuntu-12-10-pytho2-7/15297/3 "2012-11-28T15:47:23Z")

</div>

thanks Wile for the links. In my case, the obvious reason from the different links you pointed me to, was simply that i was missing python-dev. Now, that i installed it, everything works smoothly.  
thanks.
