Hello,
I am aware that there is already a thread on a similar issue but it is becoming confusing because some people are using fink. I’m having trouble compiling with --enable-python with ROOT 5.25.02. I’m using Snow Leopard out of the box as far as python is concerned:
$ which python
/Library/Frameworks/Python.framework/Versions/Current/bin/python
and
python
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Here is what I do
$ pwd -P
/Applications/ROOT_versions
$ echo $ROOTSYS
/Applications/ROOT_versions/root_5.25.02
$ tar -xf ~/Downloads/root_v5.25.02.source.tar ; mv root $ROOTSYS
$ cd $ROOTSYS
$ ./configure --enable-python
$ make -j2
After some time I get the following error
In file included from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:57,
from bindings/pyroot/src/PyROOT.h:33,
from bindings/pyroot/src/Adapters.cxx:2:
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:730:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
a.out
I’m looking for a clue on the web and there are some mention of platform incompatibility but I don’t quite get to the bottom of it.
Cheers
Akira[/code]