Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #40400
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <sarbjit1987@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'binary': 0.05; 'error:': 0.05; 'source.': 0.05; 'things.': 0.05; 'arguments': 0.07; 'subject:How': 0.09; 'python': 0.09; "';'": 0.09; '(first': 0.09; 'identifier': 0.09; 'linux.': 0.09; 'pointers': 0.09; 'sucks': 0.09; 'switches': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr :python-list': 0.10; 'packages.': 0.15; 'sat,': 0.15; "'('": 0.16; "')'": 0.16; "'log'": 0.16; "'r'": 0.16; "'}'": 0.16; 'declaration': 0.16; 'gpg': 0.16; 'skip:\x93 10': 0.16; 'subject:install': 0.16; 'wrote:': 0.17; 'package.': 0.17; 'resolved': 0.17; 'thanks,': 0.18; 'code,': 0.18; 'code.': 0.20; '(b)': 0.22; 'implicit': 0.22; 'cc:2**0': 0.23; 'work.': 0.23; '(you': 0.23; 'errors': 0.23; 'installed': 0.23; 'cc:no real name:2**0': 0.24; 'header': 0.24; 'linux': 0.24; 'command': 0.24; 'tried': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'skip:[ 10': 0.26; 'am,': 0.27; 'question': 0.27; '2.6': 0.27; 'errors.': 0.27; 'python2.7': 0.29; 'subject:development': 0.29; 'url:mailman': 0.29; 'source': 0.29; 'probably': 0.29; 'install': 0.29; "skip:' 10": 0.30; 'usually': 0.30; 'initially': 0.30; 'basic': 0.30; 'function': 0.30; 'error': 0.30; 'sense': 0.31; 'code': 0.31; 'url:python': 0.32; "skip:' 20": 0.32; 'switch': 0.32; 'skip:- 10': 0.32; 'could': 0.32; 'url:listinfo': 0.32; 'getting': 0.33; '(a)': 0.33; 'singh': 0.33; 'problem': 0.33; '(c)': 0.33; 'received:google.com': 0.34; 'same.': 0.35; 'so,': 0.35; 'expected': 0.35; 'pm,': 0.35; 'subject:?': 0.35; 'but': 0.36; 'url:org': 0.36; 'anything': 0.36; 'should': 0.36; 'too': 0.36; 'possible': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'some': 0.38; 'things': 0.38; 'system.': 0.39; 'build': 0.39; 'google': 0.39; 'help': 0.40; 'url:mail': 0.40; 'enable': 0.60; 'your': 0.60; 'red': 0.60; 'link': 0.60; 'most': 0.61; 'real': 0.61; 'share': 0.61; 'back': 0.62; 'provide': 0.62; 'charset:windows-1252': 0.65; 'url:t': 0.65; 'offer': 0.65; 'due': 0.66; 'internet': 0.71; 'url:17': 0.71; 'url:f': 0.75; 'you:': 0.75; 'yourself': 0.77; "'flag'": 0.84; "'object'": 0.84; "'result'": 0.84; './configure': 0.84; '2013': 0.84; '7:00': 0.84; 'doesn\x92t': 0.84; 'dumb': 0.84; 'fro': 0.84; 'url:php': 0.86; '***': 0.93; 'url:tk': 0.93 |
| X-Received | by 10.49.24.13 with SMTP id q13mr1710536qef.33.1362291242166; Sat, 02 Mar 2013 22:14:02 -0800 (PST) |
| Newsgroups | comp.lang.python |
| Date | Sat, 2 Mar 2013 22:14:01 -0800 (PST) |
| In-Reply-To | <mailman.2794.1362253993.2939.python-list@python.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=59.145.174.78; posting-account=QoiVRAoAAADwpanHrAdWoQYFEWG_KIKS |
| References | <76c6aca8-50da-42d3-82e9-2d9c74785570@googlegroups.com> <mailman.2772.1362213932.2939.python-list@python.org> <fb42a4af-2bdf-4693-acd7-9775b23299b7@googlegroups.com> <CAMw+j7K4t8HZBcO2-48Z4jChOvn=CUJeqodRd16Be1uvFFPsZQ@mail.gmail.com> <mailman.2794.1362253993.2939.python-list@python.org> |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| X-Google-IP | 59.145.174.78 |
| MIME-Version | 1.0 |
| Subject | Re: How to install development package on linux? |
| From | Sarbjit singh <sarbjit1987@gmail.com> |
| To | comp.lang.python@googlegroups.com |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Message-ID | <mailman.2815.1362291722.2939.python-list@python.org> (permalink) |
| Lines | 291 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1362291722 news.xs4all.nl 6926 [2001:888:2000:d::a6]:42040 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:40400 |
Show key headers only | View raw
On Sunday, March 3, 2013 1:22:50 AM UTC+5:30, Kwpolska wrote:
> On Sat, Mar 2, 2013 at 7:00 PM, Sarbjit singh <sarbjit1987@gmail.com> wrote:
>
> > On Saturday, March 2, 2013 2:15:08 PM UTC+5:30, Kwpolska wrote:
>
> >> On Sat, Mar 2, 2013 at 7:24 AM, Sarbjit singh <sarbjit1987@gmail.com> wrote:
>
> >>
>
> >> > Sorry for this basic question but I am having problem compiling mod_wsgi on Linux. As per mod_wsgi package site, user must have python development package installed on system.
>
> >>
>
> >> >
>
> >>
>
> >> > I had installed Python2.7 on my Linux system from source code, using the following configuration few months back :-
>
> >>
>
> >> >
>
> >>
>
> >> > ./configure –prefix=<path> --enable-shared
>
> >>
>
> >> > Make –i install
>
> >>
>
> >> >
>
> >>
>
> >> > But I am not able to find how to install development package from source code.
>
> >>
>
> >> >
>
> >>
>
> >> > Can some one please conform if I can install the development package from the same source code (Downloaded from Python Website for Unix) and please share the configuration switch for the same.
>
> >>
>
> >> >
>
> >>
>
> >> > Thanks,
>
> >>
>
> >> > Sarbjit
>
> >>
>
> >> > --
>
> >>
>
> >> > http://mail.python.org/mailman/listinfo/python-list
>
> >>
>
> >>
>
> >>
>
> >> Why do you use source tarballs? Your distro should provide nice
>
> >>
>
> >> binary packages for Python and mod_wsgi. And in case it doesn’t, your
>
> >>
>
> >> distro sucks and you should find a better one.
>
> >>
>
> >>
>
> >>
>
> >> The development things are usually installed by default by most
>
> >>
>
> >> things. Distributions offer them in -dev or -devel packages.
>
> >>
>
> >>
>
> >>
>
> >> --
>
> >>
>
> >> Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16
>
> >>
>
> >> stop html mail | always bottom-post
>
> >>
>
> >> http://asciiribbon.org | http://caliburn.nl/topposting.html
>
> >
>
> > I am using Red Hat 5, could you please give some pointers on how to install these packages?
>
> > --
>
> > http://mail.python.org/mailman/listinfo/python-list
>
>
>
> Impossible, unless you:
>
> (a) build such packages yourself (Fedora .spec files may help you); or
>
> (b) upgrade to RHEL 6, which offers packages for python 2.6 and mod_wsgi; or
>
> (c) look for such packages on the Internet (you probably won’t find any).
>
>
>
> So, get back to compiling from source. Have you actually tried
>
> building those packages before asking? Because, according to the Arch
>
> Linux PKGBUILDs for python2 and mod_wsgi2, it doesn’t have any
>
> specific switches to enable anything “devel-related” (also, Arch Linux
>
> doesn’t bother with the dumb -dev(el) packages, which make no sense in
>
> real life).
>
>
>
> --
>
> Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16
>
> stop html mail | always bottom-post
>
> http://asciiribbon.org | http://caliburn.nl/topposting.html
Its not possible for me to switch to Red Hat6 at the moment.
Yes, I did tried compiling these from the source code and got some errors. I am using Xaamp for linux and following the below link for configuring python/mod_wsgi :-
http://www.apachefriends.org/f/viewtopic.php?f=17&t=42975
When I initially tried to compile mod_wsgi, I was getting errors which got resolved by using development package fro Xammp for linux. (Solution found on google)
Now I am getting the following compiling errors:-
#########################################################
mod_wsgi.c:14967: error: expected expression before ')' token
mod_wsgi.c:14974: error: expected ';' before 'do'
mod_wsgi.c:14979: error: expected ';' before '}' token
mod_wsgi.c:14984: error: too many arguments to function 'wsgi_log_python_error'
mod_wsgi.c:14989: error: expected expression before 'module'
mod_wsgi.c: In function 'wsgi_allow_access':
mod_wsgi.c:15003: error: 'PyObject' undeclared (first use in this function)
mod_wsgi.c:15003: error: 'modules' undeclared (first use in this function)
mod_wsgi.c:15004: error: expected expression before 'module'
mod_wsgi.c:15051: error: 'Py_BEGIN_ALLOW_THREADS' undeclared (first use in this function)
mod_wsgi.c:15052: error: expected ';' before 'apr_thread_mutex_lock'
mod_wsgi.c:15053: error: 'Py_END_ALLOW_THREADS' undeclared (first use in this function)
mod_wsgi.c:15056: error: expected ';' before 'modules'
mod_wsgi.c:15057: error: expected identifier or '(' before '=' token
mod_wsgi.c:15059: error: expected expression before 'module'
mod_wsgi.c:15061: error: expected expression before 'module'
mod_wsgi.c:15070: error: expected expression before 'module'
mod_wsgi.c:15071: error: expected expression before 'module'
mod_wsgi.c:15082: error: expected expression before 'module'
mod_wsgi.c:15083: error: expected identifier or '(' before '=' token
mod_wsgi.c:15089: error: expected expression before 'module'
mod_wsgi.c:15090: error: expected identifier or '(' before '=' token
mod_wsgi.c:15105: error: expected expression before 'module'
mod_wsgi.c:15106: error: 'module_dict' undeclared (first use in this function)
mod_wsgi.c:15107: error: 'object' undeclared (first use in this function)
mod_wsgi.c:15109: error: expected expression before 'module'
mod_wsgi.c:15113: error: 'vars' undeclared (first use in this function)
mod_wsgi.c:15114: error: 'args' undeclared (first use in this function)
mod_wsgi.c:15115: error: 'flag' undeclared (first use in this function)
mod_wsgi.c:15116: error: 'method' undeclared (first use in this function)
mod_wsgi.c:15133: error: 'Py_None' undeclared (first use in this function)
mod_wsgi.c:15136: warning: implicit declaration of function 'PyBool_Check'
mod_wsgi.c:15137: error: 'Py_True' undeclared (first use in this function)
mod_wsgi.c:15142: error: expected ';' before 'do'
mod_wsgi.c:15148: error: expected ';' before '}' token
mod_wsgi.c:15161: error: 'AuthObject' has no member named 'r'
mod_wsgi.c:15165: error: 'AuthObject' has no member named 'log'
mod_wsgi.c:15168: error: 'PyExc_AttributeError' undeclared (first use in this function)
mod_wsgi.c:15170: error: 'AuthObject' has no member named 'log'
mod_wsgi.c:15183: error: expected expression before ')' token
mod_wsgi.c:15190: error: expected ';' before 'do'
mod_wsgi.c:15195: error: expected ';' before '}' token
mod_wsgi.c:15200: error: too many arguments to function 'wsgi_log_python_error'
mod_wsgi.c:15205: error: expected expression before 'module'
mod_wsgi.c: In function 'wsgi_hook_check_user_id':
mod_wsgi.c:15260: error: 'PyObject' undeclared (first use in this function)
mod_wsgi.c:15260: error: 'modules' undeclared (first use in this function)
mod_wsgi.c:15261: error: expected expression before 'module'
mod_wsgi.c:15306: error: 'Py_BEGIN_ALLOW_THREADS' undeclared (first use in this function)
mod_wsgi.c:15307: error: expected ';' before 'apr_thread_mutex_lock'
mod_wsgi.c:15308: error: 'Py_END_ALLOW_THREADS' undeclared (first use in this function)
mod_wsgi.c:15311: error: expected ';' before 'modules'
mod_wsgi.c:15312: error: expected identifier or '(' before '=' token
mod_wsgi.c:15314: error: expected expression before 'module'
mod_wsgi.c:15316: error: expected expression before 'module'
mod_wsgi.c:15325: error: expected expression before 'module'
mod_wsgi.c:15326: error: expected expression before 'module'
mod_wsgi.c:15337: error: expected expression before 'module'
mod_wsgi.c:15338: error: expected identifier or '(' before '=' token
mod_wsgi.c:15344: error: expected expression before 'module'
mod_wsgi.c:15345: error: expected identifier or '(' before '=' token
mod_wsgi.c:15360: error: expected expression before 'module'
mod_wsgi.c:15361: error: 'module_dict' undeclared (first use in this function)
mod_wsgi.c:15362: error: 'object' undeclared (first use in this function)
mod_wsgi.c:15364: error: expected expression before 'module'
mod_wsgi.c:15368: error: 'vars' undeclared (first use in this function)
mod_wsgi.c:15369: error: 'args' undeclared (first use in this function)
mod_wsgi.c:15370: error: 'result' undeclared (first use in this function)
mod_wsgi.c:15371: error: 'method' undeclared (first use in this function)
mod_wsgi.c:15388: error: 'Py_None' undeclared (first use in this function)
mod_wsgi.c:15402: error: 'Py_True' undeclared (first use in this function)
mod_wsgi.c:15405: error: 'Py_False' undeclared (first use in this function)
mod_wsgi.c:15417: error: 'PyExc_TypeError' undeclared (first use in this function)
mod_wsgi.c:15433: error: 'AuthObject' has no member named 'r'
mod_wsgi.c:15437: error: 'AuthObject' has no member named 'log'
mod_wsgi.c:15440: error: 'PyExc_AttributeError' undeclared (first use in this function)
mod_wsgi.c:15442: error: 'AuthObject' has no member named 'log'
mod_wsgi.c:15455: error: expected expression before ')' token
mod_wsgi.c:15462: error: expected ';' before 'do'
mod_wsgi.c:15467: error: expected ';' before '}' token
mod_wsgi.c:15472: error: too many arguments to function 'wsgi_log_python_error'
mod_wsgi.c:15477: error: expected expression before 'module'
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1
#########################################################
I searched on google and found these errors could be due to missing python header files which would be available in development package.
So I am struggling to make it work.
Thanks,
Sarbjit
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to install development package on linux? Sarbjit singh <sarbjit1987@gmail.com> - 2013-03-01 22:24 -0800
Re: How to install development package on linux? Kwpolska <kwpolska@gmail.com> - 2013-03-02 09:45 +0100
Re: How to install development package on linux? Sarbjit singh <sarbjit1987@gmail.com> - 2013-03-02 10:00 -0800
Fwd: How to install development package on linux? Kwpolska <kwpolska@gmail.com> - 2013-03-02 20:52 +0100
Re: How to install development package on linux? Sarbjit singh <sarbjit1987@gmail.com> - 2013-03-02 22:14 -0800
Re: How to install development package on linux? Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-03-02 22:23 -0800
Re: How to install development package on linux? Sarbjit singh <sarbjit1987@gmail.com> - 2013-03-02 22:39 -0800
Re: How to install development package on linux? Sarbjit singh <sarbjit1987@gmail.com> - 2013-03-02 22:46 -0800
Re: How to install development package on linux? Sarbjit singh <sarbjit1987@gmail.com> - 2013-03-02 22:46 -0800
Re: How to install development package on linux? Michael Torrie <torriem@gmail.com> - 2013-03-03 09:26 -0700
Re: How to install development package on linux? Sarbjit singh <sarbjit1987@gmail.com> - 2013-03-02 22:39 -0800
Re: How to install development package on linux? Sarbjit singh <sarbjit1987@gmail.com> - 2013-03-02 22:14 -0800
Re: How to install development package on linux? Sarbjit singh <sarbjit1987@gmail.com> - 2013-03-02 10:00 -0800
csiph-web