Re: problems build root on OSX against non-system python version

From: <wlavrijsen_at_lbl.gov>
Date: Wed, 14 Sep 2011 08:09:43 -0700


Chris,

so I had a chance to look at my own MacPorts installation and I find that the paths that you provided to configure:

./configure
--with-python-incdir=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 --with-python-libdir=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config --enable-python

don't work for my MacPorts (no linkable library is found). I need:

./configure
--with-python-incdir=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 --with-python-libdir=/opt/local/Library/Frameworks/Python.framework/Versions/2.6 --enable-python

and then both the header (Python.h) and library (Python) are found and p2.6 is selected as required.

I also note that my MacPorts really does not have a "python" symlink or executable. Meaning, if anyone where to do:

   $ python
>>> import ROOT

with the MacPorts build of ROOT, it won't work, which is going to end up being confusing, I'll bet (see the large number of posts on the ROOT forum whenever non-system pythons are used on the Mac).

Best regards,

            Wim

-- 
WLavrijsen_at_lbl.gov    --    +1 (510) 486 6411    --    www.lavrijsen.net
Received on Wed Sep 14 2011 - 17:07:37 CEST

This archive was generated by hypermail 2.2.0 : Wed Sep 14 2011 - 23:50:01 CEST