----- Original Message ----- From: "Christian Anthon" <[email protected]> To: "Louis P Zulli" <[email protected]> Cc: [email protected] Sent: Saturday, March 28, 2009 12:33:51 PM GMT -05:00 US/Canada Eastern Subject: Re: /usr/local/bin/python2.5 not detected during configure Hmm, I use python 2.5 without problems. Could you take a look in your config.log, remind me about which system you are building on, and check if python and python-config points to python25 or python3 Christian. On Sat, Mar 28, 2009 at 4:06 PM, Zulli, Louis P <[email protected]> wrote: > > Hi Christian, > I attempted to build from the latest snapshot. Process fails during > configure: > checking wether deprecated glib functions are enabled... > checking wether deprecated gtk functions are enabled... > checking for gdk-pixbuf-csource... /usr/local/bin//gdk-pixbuf-csource > checking for a Python interpreter with version >= 2.2... none > configure: error: no suitable Python interpreter found > > Now I have the following in /usr/local/bin, which is in my PATH: > Procyon: ~/Desktop/gnubg] ls /usr/local/bin/py* > /usr/local/bin/pydoc /usr/local/bin/python2.5 > /usr/local/bin/pydoc2.5 /usr/local/bin/python3.0 > /usr/local/bin/pydoc3.0 /usr/local/bin/python3.0-config > /usr/local/bin/python /usr/local/bin/pythonw > /usr/local/bin/python-config /usr/local/bin/pythonw2.5 > /usr/local/bin/python-config2.5 /usr/local/bin/pythonw3.0 > > It seems that configure checks for python2.[1234] but not for python2.[56]. > Louis > > > Hi Christian, This problem has not occurred before. I suspect that installing python3.0 changed something for me. Still, my python2.5 should be found. I'm on a MacBook using OS X 10.5.6. I edited configure, adding python2.5 to the list in the for loop copied below. I was then able to configure, make and install as usual. It seems like python2.5 and python2.6 should be included in this list in any case. else for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do test "$am_cv_pathless_PYTHON" = none && break prog="import sys, string # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. minver = map(int, string.split('2.2', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)" if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then break fi Here you can see the relevant links in /usr/local/bin: Procyon: /usr/local/bin] ls -l py* lrwxr-xr-x 1 root staff 67 Mar 20 12:25 pydoc -> ../../../Library/Frameworks/Python.framework/Versions/3.0/bin/pydoc lrwxr-xr-x 1 root wheel 62 Feb 8 18:08 pydoc2.5 -> /Library/Frameworks/Python.framework/Versions/2.5/bin/pydoc2.5 lrwxr-xr-x 1 root staff 70 Mar 20 12:25 pydoc3.0 -> ../../../Library/Frameworks/Python.framework/Versions/3.0/bin/pydoc3.0 lrwxr-xr-x 1 root staff 68 Mar 20 12:25 python -> ../../../Library/Frameworks/Python.framework/Versions/3.0/bin/python lrwxr-xr-x 1 root staff 75 Mar 20 12:25 python-config -> ../../../Library/Frameworks/Python.framework/Versions/3.0/bin/python-config lrwxr-xr-x 1 root wheel 70 Feb 8 18:08 python-config2.5 -> /Library/Frameworks/Python.framework/Versions/2.5/bin/python-config2.5 lrwxr-xr-x 1 root wheel 63 Feb 8 18:08 python2.5 -> /Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5 lrwxr-xr-x 1 root staff 71 Mar 20 12:25 python3.0 -> ../../../Library/Frameworks/Python.framework/Versions/3.0/bin/python3.0 lrwxr-xr-x 1 root staff 78 Mar 20 12:25 python3.0-config -> ../../../Library/Frameworks/Python.framework/Versions/3.0/bin/python3.0-config lrwxr-xr-x 1 root staff 69 Mar 20 12:25 pythonw -> ../../../Library/Frameworks/Python.framework/Versions/3.0/bin/pythonw lrwxr-xr-x 1 root wheel 64 Feb 8 18:08 pythonw2.5 -> /Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw2.5 lrwxr-xr-x 1 root staff 72 Mar 20 12:25 pythonw3.0 -> ../../../Library/Frameworks/Python.framework/Versions/3.0/bin/pythonw3.0 >From config.log configure:15077: checking for a Python interpreter with version >= 2.2 configure:15092: python -c import sys, string # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex c onversion. minver = map(int, string.split('2.2', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.he xversion < minverhex) Traceback (most recent call last): File "<string>", line 4, in <module> AttributeError: 'module' object has no attribute 'split' configure:15095: $? = 1 configure:15092: python2 -c import sys, string # split strings by '.' and conver t to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. minver = map(int, string.split('2.2', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.h exversion < minverhex) ./configure: line 15093: python2: command not found configure:15095: $? = 127 configure:15092: python2.4 -c import sys, string # split strings by '.' and conv ert to numeric. Append some zeros # because we need at least 4 digits for the he x conversion. minver = map(int, string.split('2.2', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] sys.exit(sys .hexversion < minverhex) ./configure: line 15093: python2.4: command not found configure:15095: $? = 127 configure:15092: python2.3 -c import sys, string # split strings by '.' and conv ert to numeric. Append some zeros # because we need at least 4 digits for the he x conversion. minver = map(int, string.split('2.2', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] sys.exit(sys .hexversion < minverhex) ./configure: line 15093: python2.3: command not found configure:15095: $? = 127 configure:15092: python2.2 -c import sys, string # split strings by '.' and conv ert to numeric. Append some zeros # because we need at least 4 digits for the he x conversion. minver = map(int, string.split('2.2', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] sys.exit(sys .hexversion < minverhex) ./configure: line 15093: python2.2: command not found configure:15095: $? = 127 configure:15092: python2.1 -c import sys, string # split strings by '.' and conv ert to numeric. Append some zeros # because we need at least 4 digits for the he x conversion. minver = map(int, string.split('2.2', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] sys.exit(sys .hexversion < minverhex) ./configure: line 15093: python2.1: command not found configure:15095: $? = 127 configure:15092: python2.0 -c import sys, string # split strings by '.' and conv ert to numeric. Append some zeros # because we need at least 4 digits for the he x conversion. minver = map(int, string.split('2.2', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] sys.exit(sys .hexversion < minverhex) ./configure: line 15093: python2.0: command not found configure:15095: $? = 127 configure:15092: python1.6 -c import sys, string # split strings by '.' and conv ert to numeric. Append some zeros # because we need at least 4 digits for the he x conversion. minver = map(int, string.split('2.2', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] sys.exit(sys .hexversion < minverhex) ./configure: line 15093: python1.6: command not found configure:15095: $? = 127 configure:15092: python1.5 -c import sys, string # split strings by '.' and conv ert to numeric. Append some zeros # because we need at least 4 digits for the he x conversion. minver = map(int, string.split('2.2', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] sys.exit(sys .hexversion < minverhex) ./configure: line 15093: python1.5: command not found configure:15095: $? = 127 configure:15102: result: none configure:15154: error: no suitable Python interpreter found
_______________________________________________ Bug-gnubg mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-gnubg
