# ./configure does not find libpython2.7?

**URL:** <https://root-forum.cern.ch/t/configure-does-not-find-libpython2-7/14703>\
**Category:** ROOT\
**Created:** [August 3, 2012, 9:57pm UTC](https://root-forum.cern.ch/t/configure-does-not-find-libpython2-7/14703 "2012-08-03T21:57:01Z")\
**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 3, 2012, 9:57pm UTC](https://root-forum.cern.ch/t/configure-does-not-find-libpython2-7/14703/1 "2012-08-03T21:57:01Z")

</div>

I’ve installed Python2.7 with --enable-shared option:

`[0 root]$ 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
[0 root]$ 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`

Now, the root configure does not find libpython2.7:

`./configure macosx --enable-python --prefix=$PWD/try --etcdir=$PWD/try/etc/root
...
Checking for Python.h ... /usr/local/bin/../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.
...`

Why?

---

_[View the full topic](https://root-forum.cern.ch/t/configure-does-not-find-libpython2-7/14703)._
