Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'binary': 0.05; 'makefile': 0.07; 'prefix': 0.07; 'used.': 0.07; 'subject:How': 0.09; 'python': 0.09; 'be:': 0.09; 'path,': 0.09; 'itself.': 0.11; '2.7': 0.13; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'install"': 0.16; 'subject:install': 0.16; 'wrote:': 0.17; 'code,': 0.18; 'equivalent': 0.20; 'skip:- 40': 0.21; 'installed': 0.23; 'header': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'right.': 0.27; 'installing': 0.27; 'subject:development': 0.29; 'words': 0.29; 'source': 0.29; 'probably': 0.29; 'install': 0.29; 'error': 0.30; 'point': 0.31; 'skip:- 30': 0.31; 'skip:- 10': 0.32; 'singh': 0.33; 'to:addr :python-list': 0.33; 'skip:- 20': 0.34; 'pm,': 0.35; 'subject:?': 0.35; 'received:org': 0.36; 'message-id:@gmail.com': 0.36; 'should': 0.36; 'option': 0.37; 'quite': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'red': 0.60; './configure': 0.84; '2.7.': 0.84; 'rpm': 0.91 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Sun, 03 Mar 2013 09:26:40 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130105 Thunderbird/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: How to install development package on linux? References: <76c6aca8-50da-42d3-82e9-2d9c74785570@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362328007 news.xs4all.nl 6955 [2001:888:2000:d::a6]:43236 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40414 On 03/02/2013 11:39 PM, Sarbjit singh wrote: > Yes, I configured the makefile for mod_wsgi as without any error : > ./configure --prefix=/opt/lampp/ --with-apxs=/opt/lampp/bin/apxs --with-python=/opt/lampp/python/bin/python2.7 --with-mutex-dir=/opt/lampp/var/run/wsgi This is not quite right. the --with-python option should point to the python install path, not the python binary itself. It probably should be: --with-python=/opt/lampp/python Presuming that's what you used as a prefix when you built and installed python 2.7. When installing from source code, there's no such thing as a "development package." Tarballs nominally install binaries, libraries, and header files, which is the equivalent of a Red Hat rpm plus the devel rpm. In other words when you did a "make install" everything you need to compile against python 2.7 is installed to the prefix you used.