Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-15-2006, 04:41 PM   #1
LQ Newbie
Registered: Sep 2006
Posts: 4

Rep: Reputation: 0
can't configure mod_python

Downloaded & unzipped mod_python, but ./configure fails with:

root@1[mod_python-3.2.10]# ./configure --with-apxs=/usr/local/apache2/bin/apxs
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ar... ar
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for main in -lm... yes
checking for an ANSI C-conforming const... yes
checking your blood pressure... a bit high, but we can proceed
configure: checking whether apxs is available...
checking for --with-apxs... /usr/local/apache2/bin/apxs executable, good
checking Apache version... 2.2.3
checking for Apache libexec directory... /usr/local/apache2/modules
checking for Apache include directory... -I/usr/local/apache2/include
checking for --with-python... no
checking for python... /usr/bin/python
checking Python version... 2.4
checking Python install prefix... /usr
checking checking where python libraries are installed... /usr/lib/python2.4
checking for Py_NewInterpreter in -lpython2.4... no
configure: error: Can not link to python

I installed Python from source, so I don't know what the problem is.

Any ideas?
Old 09-16-2006, 01:19 PM   #2
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
# locate libpython
# strings /usr/lib/ | grep Py_NewInterpreter
Py_NewInterpreter: call Py_Initialize first
# strings /usr/lib/python2.4/config/libpython2.4.a | grep Py_NewInterpreter
Py_NewInterpreter: call Py_Initialize first
Perhaps you forgot some configuration with Python that is necessary?
If you have multiple versions of libpython, try passing --with-python explicitly.
Old 10-28-2006, 08:42 AM   #3
LQ Newbie
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
I meet the same question

to carlwenrich:

do you have solved it? I meet the save question
Old 10-28-2006, 12:30 PM   #4
LQ Newbie
Registered: Sep 2006
Posts: 4

Original Poster
Rep: Reputation: 0
never solved it, just using the tiny server that comes with django until somebody makes this a little easier.
Old 03-16-2009, 08:36 PM   #5
LQ Newbie
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0

Found the solution but this forum isn't letting me post the URL where I found it... weird. You need the 'python-dev' package, not just the runtime engine.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with mod_python tiang_ono Linux - Newbie 2 06-20-2005 09:12 PM
mod_python gaddargarson Programming 1 03-29-2005 09:45 AM
mod_python apache configuration gaddargarson Programming 2 03-09-2005 06:14 AM
installing mod_python dominant Linux - Software 0 11-26-2004 07:19 AM
Apache with mod_python mbayeb Linux - Software 2 12-24-2002 06:24 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration