LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-15-2006, 03:41 PM   #1
carlwenrich
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, 12:19 PM   #2
bulliver
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: 77
Code:
# locate libpython
/usr/lib/dia/libpython_plugin.la
/usr/lib/dia/libpython_plugin.so
/usr/lib/libpython2.3.so
/usr/lib/libpython2.4.so
/usr/lib/libpython2.3.so.1.0
/usr/lib/python2.3/config/libpython2.3.a
/usr/lib/python2.4/config/libpython2.4.a
/usr/lib/libpython2.4.so.1.0
# strings /usr/lib/libpython2.4.so | grep Py_NewInterpreter
Py_NewInterpreter
Py_NewInterpreter: call Py_Initialize first
# strings /usr/lib/python2.4/config/libpython2.4.a | grep Py_NewInterpreter
Py_NewInterpreter
Py_NewInterpreter: call Py_Initialize first
Py_NewInterpreter
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, 07:42 AM   #3
beyking
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, 11:30 AM   #4
carlwenrich
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, 07:36 PM   #5
atagar
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Solution

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.
 
  


Reply


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 08:12 PM
mod_python gaddargarson Programming 1 03-29-2005 08:45 AM
mod_python apache configuration gaddargarson Programming 2 03-09-2005 05:14 AM
installing mod_python dominant Linux - Software 0 11-26-2004 06:19 AM
Apache with mod_python mbayeb Linux - Software 2 12-24-2002 05:24 AM


All times are GMT -5. The time now is 03:29 AM.

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