hello, i'm really lost here

all I want to do is build a php4.0.2 module for my webserver.

i've tried the following (simple):
./configure --with-mysql --with-apxs=/usr/sbin/apxs

hecking for Apache module support via DSO through APXS...
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Sorry, I cannot run apxs. Either you need to install Perl or you need to pass the absolute path of apxs by using --with-apxs=/absolute/path/to/apxs

but I AM suppling the path to apxs, and it even starts apxs, but why the hell can't it run apxs? what am I doing wrong here? anyone?

thanks in advance

Emanuel

    what os are you running...if its linux..then what distro...

    brad

      i'm running linux, redhat 6.2
      apache has been installed from source, the source is still on the server, but i'd rather not recompile apache...

        If apache is installed from source, was that rpm source, or tar.gz source?

        if you type in '/usr/sbin/apxs' does it run?

        does typing in perl -v do you get a response?

          everything works fine, configure from php4 even STARTS apxs, but says it can't start it... that's what disturbs me...

          [root@despair /root]# perl -v

          This is perl, version 5.005_03 built for i386-linux

          Copyright 1987-1999, Larry Wall

          Perl may be copied only under the terms of either the Artistic License or the
          GNU General Public License, which may be found in the Perl 5.0 source kit.

          Complete documentation for Perl, including FAQ lists, should be found on
          this system using man perl' orperldoc perl'. If you have access to the
          Internet, point your browser at http://www.perl.com/, the Perl Home Page.

          [root@despair /root]# /usr/sbin/apxs
          Usage: apxs -g [-S <var>=<val>] -n <modname>
          apxs -q [-S <var>=<val>] <query> ...
          apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
          [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
          [-Wl,<flags>] <files> ...
          apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
          apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...

          so perl works, and apxs works, too...

          apache was installed from the tarball, i'm also trying to install php from the tarball..

          Emanuel

            Hi,

            I had the same problem when I originally tried to install php. The problem is that in order for APXS to work, you have to have mod_so working with Apache. The easiest way of doing it is to reconfigure Apache like this:

            ./configure --prefix=/path/to/apache \
            --enable-module=most \
            --enable-shared=max

            Then run make and make install.

            More info about this can be found it the README.config file in your Apache source directory.

            After this, php should install with APXS.

            brad.

              Write a Reply...