# PyROOT on OS X 10.8: libpython2.7 is not found

**URL:** <https://root-forum.cern.ch/t/pyroot-on-os-x-10-8-libpython2-7-is-not-found/14706>\
**Category:** ROOT\
**Created:** [August 4, 2012, 3:20pm UTC](https://root-forum.cern.ch/t/pyroot-on-os-x-10-8-libpython2-7-is-not-found/14706 "2012-08-04T15:20:28Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ksamdev](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ksamdev/32/11265_2.png) [@ksamdev](https://root-forum.cern.ch/u/ksamdev)\
**Post date:** [August 4, 2012, 3:20pm UTC](https://root-forum.cern.ch/t/pyroot-on-os-x-10-8-libpython2-7-is-not-found/14706/1 "2012-08-04T15:20:28Z")

</div>

Hi,

I am trying to configure ROOT with Python support but it fails because configure script can not find python lib:

`./configure macosx --enable-python --prefix=$PWD/try --etcdir=$PWD/try/etc/root
...
Checking for Python.h ... /usr/local/Cellar/python/2.7.3/include/python2.7
Checking for python2.7, libpython2.7, libpython, python, or Python ... no
...
Enabled support for asimage, astiff, bonjour, builtin_afterimage, builtin_ftgl, builtin_glew, builtin_pcre, builtin_lzma, cintex, explicitlink, fink, genvector, krb5, ldap, memstat, odbc, opengl, reflex, shared, ssl, tmva, x11, xft, xml.
...`

I’ve also tried:

`./configure macosx --enable-python --prefix=$PWD/try --etcdir=$PWD/try/etc/root --with-python-incdir=`python-config --prefix`/include/python2.7 --with-python-libdir=`python-config --prefix`/lib
`  
But it leads to the same issue.

My setup is:

[code]python-config --prefix  
/usr/local/Cellar/python/2.7.3

ll /usr/local/lib/libpython2.7.dylib  
lrwxr-xr-x 1 samvel admin 45 Aug 3 16:41 /usr/local/lib/libpython2.7.dylib -\> …/Cellar/python/2.7.3/lib/libpython2.7.dylib

ll /usr/local/Cellar/python/2.7.3/lib/libpython2.7.dylib  
-r-xr-xr-x 1 samvel admin 2030792 Aug 3 16:41 /usr/local/Cellar/python/2.7.3/lib/libpython2.7.dylib[/code]

What am I doing wrong?

---

_[View the full topic](https://root-forum.cern.ch/t/pyroot-on-os-x-10-8-libpython2-7-is-not-found/14706)._
