Go look at how a standard Python installation on your platform is built to work out what options you perhaps should use to configure for Python.
On my system where Python 2.6 is the default, I can look in: /usr/lib/python2.6/config/Makefile and then find: # configure script arguments CONFIG_ARGS= '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--enable-ipv6' '--with-threads' '--enable-framework=/System/Library/Frameworks' '--enable-toolbox-glue' '--enable-dtrace' '--with-system-ffi' '--with-gcc=gcc-4.2' 'CC=gcc-4.2' 'CXX=g++-4.2' 'CFLAGS=-g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -I/usr/include/ffi -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32' 'LDFLAGS=-Wl,-F.' This shows me how system wide Python was built. Find the same for system wide Python on your system and use it as a guide to work out whether there are any specific options you need to supply. Don't copy it blindly though as installation paths aren't going to be what you want because you will overwrite your system Python then. Graham On 1 September 2012 04:55, ldavidson <[email protected]> wrote: > > Thanks alot for your help. > > I have been using this configure script, part of which is from > linuxfromscratch.com: > > sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py && > ./configure --prefix=/usr/local --enable-shared --with-threads > > I am running 64 bit apache. Should I be adding an flag/option for 64 bit in > my configure script for python? If yes, do you know what those options are? > > > > On Thursday, August 30, 2012 11:19:14 AM UTC-4, ldavidson wrote: >> >> Hi, >> >> I am getting the following error when trying to run "make" on mod_wsgi 3.3 >> compilation on CentOS x86_64: >> >> /usr/local/include/python2.6/pyport.h:694:2: error: #error "LONG_BIT >> definition appears wrong for platform (bad gcc/glibc config?)." >> >> >> Setup Info: >> >> My configure script: >> >> ./configure --prefix=/usr/local --with-python=/usr/local/bin/python2.6 >> --with-apxs=/usr/sbin/apxs >> >> make: >> >> LD_RUN_PATH=/usr/local/lib make >> >> >> file /usr/local/bin/python2.6: >> /usr/local/bin/python2.6: ELF 64-bit LSB executable, AMD x86-64, version 1 >> (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), not >> stripped >> >> file /usr/sbin/httpd: >> /usr/sbin/httpd: ELF 64-bit LSB shared object, AMD x86-64, version 1 >> (SYSV), for GNU/Linux 2.6.9, stripped >> >> >> >> Please help. >> >> Thanks alot. > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/modwsgi/-/bcPgJlCMjDkJ. > > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
