[mod_python] Hello newbie problems #2

Gregory (Grisha) Trubetskoy grisha at modpython.org
Fri Oct 3 19:28:58 EST 2003


On Fri, 3 Oct 2003, M.D. DeWar wrote:

> freebsd 4.8

On FreeBSD Apache defaults to no threads which creates a problem, so
either you have to compile Python without threads, or use a trick to load
threaded libs into Apache.

I think the simplest thing on FreeBSD is to use the ports rather than
trying to do it by hand (you'll need an up-to-date ports collection, see
the FreeBSD handbook on that):

# cd /usr/ports/www/mod_python3
# make install

Then read the warning at the end of the install that will tell you about
the thread libs loading trick.

Grisha


> apache 2.0.47
> php 4.3.2
> Mark
> ----- Original Message -----
> From: "Gregory (Grisha) Trubetskoy" <grisha at modpython.org>
> To: "M.D. DeWar" <mark at s-wit.net>
> Cc: <mod_python at modpython.org>
> Sent: Friday, October 03, 2003 4:49 PM
> Subject: Re: [mod_python] Hello newbie problems #2
>
>
> >
> > This oftentimes means that either of Apache or Python was compiled without
> > thread support, and therefore you need to make sure that both are with or
> > without threads.
> >
> > Which operating system is this on?
> >
> > Grisha
> >
> > On Fri, 3 Oct 2003, M.D. DeWar wrote:
> >
> > > The below link got mod_python to compile and install.
> > > However when I put the info into the httpd.conf I get this error:
> > >
> > > Syntax error on line 262 of /usr/local/apache2/conf/httpd.conf:
> > > Cannot load /usr/local/apache2/modules/mod_python.so into server:
> > > /usr/local/apa
> > > che2/modules/mod_python.so: Undefined symbol "pthread_self"
> > >
> > > At the bottom of the link provided I see that I should or thought I
> should
> > > configure with these options:
> > > spiderman#
> > >
> ./configure --with-python=/usr/local/bin/python --with-apxs=/usr/local/apach
> > > e2/bin/apxs
> > >
> > > (I tried the --with-python=  being blank but system sat there and with
> > > /usr/local/bin/ just gave an error.)
> > >
> > > I could not find more info on this error.
> > > Thanks
> > > mark
> > >
> > > ----- Original Message -----
> > > From: "Gregory (Grisha) Trubetskoy" <grisha at modpython.org>
> > > To: "M.D. DeWar" <mark at s-wit.net>
> > > Cc: <mod_python at modpython.org>
> > > Sent: Friday, October 03, 2003 3:16 PM
> > > Subject: Re: [mod_python] Hello newbie problems
> > >
> > >
> > > >
> > > > Check this out:
> > > >
> > > > http://www.modpython.org/FAQ/faqw.py?req=all#4.2
> > > >
> > > > On Fri, 3 Oct 2003, M.D. DeWar wrote:
> > > >
> > > > > Hello,
> > > > > I installed python 2.3.1 (or whatever is the latest from the site)
> > > > > I d/l the mod_python 3.03
> > > > > I have apache 2.0.47 running.
> > > > > I did as per each README for each isntall.
> > > > > Apache is running. python seemed to install ok. There were no
> errors.
> > > > > I ./configured --with-apxs=/usr/local/apache2/bin/apxs for
> mod_python.
> > > > > That seemed okay.
> > > > > make gives me this error: google search brought up nothing on it.
> (last
> > > 2
> > > > > lines).
> > > > > I did the ./httpd -DONE_PROCESS also.
> > > > >
> > > > > python2.3  -c -o requestobject.lo requestobject.c && touch
> > > requestobject.slo
> > > > > requestobject.c: In function `getreq_recmbr_off':
> > > > > requestobject.c:1055: `LONG_LONG' undeclared (first use in this
> > > function)
> > > > > requestobject.c:1055: (Each undeclared identifier is reported only
> once
> > > > > requestobject.c:1055: for each function it appears in.)
> > > > > requestobject.c:1056: syntax error before `l'
> > > > > requestobject.c:1057: `l' undeclared (first use in this function)
> > > > > requestobject.c: At top level:
> > > > > requestobject.c:1270: warning: initialization from incompatible
> pointer
> > > type
> > > > > apxs:Error: Command failed with rc=65536
> > > > > .
> > > > > *** Error code 1
> > > > >
> > > > > Stop in /temp/mod_python-3.0.3/src.
> > > > > *** Error code 1
> > > > > Mark DeWar
> > > > >
> > > > > _______________________________________________
> > > > > Mod_python mailing list
> > > > > Mod_python at modpython.org
> > > > > http://mailman.modpython.org/mailman/listinfo/mod_python
> > > > >
> > >
> > > _______________________________________________
> > > Mod_python mailing list
> > > Mod_python at modpython.org
> > > http://mailman.modpython.org/mailman/listinfo/mod_python
> > >
>


More information about the Mod_python mailing list