[mod_python] Mod_python on HP-UX 11.11

Deron Meranda deron.meranda at gmail.com
Wed Nov 15 13:06:33 EST 2006

On 11/15/06, Buehre, Joseph R <joseph.r.buehre at boeing.com> wrote:
> LDFLAGS=-L/opt/Boeing/python2.4.3/lib ./configure
> --with-apxs=/wwimacs6/apache2/bin/apxs
> --with-python=/opt/Boeing/python2.4.3/bin/python2.4

> /wwimacs6/apache2/build/libtool --silent --mode=link /opt/ansic/bin/cc
> -o mod_python.la -I/mod_python-3.2.10/src/include
> -I/wwimacs6/apache2/include -I/opt/Boeing/python2.4.3/include/python2.4
> -rpath /wwimacs6/apache2/modules -module -avoid-version
> hlistobject.lo hlist.lo filterobject.lo connobject.lo serverobject.lo
> util.lo tableobject.lo requestobject.lo _apachemodule.lo mod_python.lo
> -L/opt/Boeing/python2.4.3/lib
> -L/opt/Boeing/python2.4.3/lib/python2.4/config -Wl,-E -Wl,+s -lm
> -lpython2.4 -lnsl -lrt -ldld -lpthread -lm
>          -R -opsp_parser.c --header-file=include/psp_flex.h psp_parser.l
> sh: -R:  not found.
> *** Error exit code 127

Hmmm.  I'm not sure what the -R option is there for.  It's certainly

Note that you may get more information by copying that last
command (all the above quoted as a single line), and then run
it directly but with the --silent option removed.

Also, find the apxs Perl script you used and look inside it.  Somewhere
in the first page or so you'll see something like:

   my $installbuilddir = "/opt/xxxxx/apache/share/build";

which is where your Apache was built.  Then inside that
directory you'll find a file named "config_vars.mk".  Grep
through that file to find out where the libtool is located.

   grep LIBTOOL /opt/xxxxx/apache/share/build/config_vars.mk

Then run that "libtool" script with the --version option to see
what version it is:

   /opt/xxxxxx/apache/share/build/libtool --version

and report back what it says.

Also, inside the config_vars.mk file you'll also find a lot
of compiler options and such.  See if you can find any
"-R" mentioned in there as well.

What I'm trying to figure out is if the problem is with your
Apache build, or with mod_python.

Deron Meranda

More information about the Mod_python mailing list