Re: No apxs when updating PHP



mechphisto@xxxxxxxxx wrote:
On Apr 24, 8:37 pm, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
mechphi...@xxxxxxxxx wrote:
I have a FC 7 box with PHP 5.2.4 and I'm installing mcrypt. To do
that, I have to recompile PHP with the libmcrypt switches in the ./
configure.
So I downloaded the latest PHP source files, and using phpinfo() got
my current configure command (included below), took off the quotes,
added the new switches, and got an error unrelated to mcrypt:
-error-
checking for Apache 2.0 handler-module support via DSO through
APXS...
Sorry, I cannot run apxs. Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/
to/apxs
3. Apache was not built using --enable-so (the apxs usage page is
displayed)
The output of /usr/sbin/apxs follows:
./configure: line 6669: /usr/sbin/apxs: No such file or directory
configure: error: Aborting
-end error-
I did a find and an updatedb/locate for apxs and this is all I could
find:
/var/www/manual/programs/apxs.html
Web searching for an answer all I can find are fixes to put the proper
location for apxs in the configure, but as you can see, I don't seem
to have the bin.
I also tried a "yum search apxs" and got nothing.
So, how did my PHP have apxs before if when I reconfigure now it can't
find it. And more importantly, how do I fix this?
Thanks!
./configure --build=i386-redhat-linux-gnu --host=i386-redhat-linux-gnu
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-
prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --
datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --
libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../
config.cache --with-libdir=lib --with-config-file-path=/etc --with-
config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-
rpath --without-pear --with-bz2 --with-curl --with-exec-dir=/usr/bin --
with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --
without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/
usr --with-openssl --with-png --with-pspell --with-expat-dir=/usr --
with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-exif --
enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --
enable-sysvshm --enable-sysvmsg --enable-track-vars --enable-trans-sid
--enable-yp --enable-wddx --with-kerberos --enable-ucd-snmp-hack --
with-unixODBC=shared,/usr --enable-memory-limit --enable-shmop --
enable-calendar --enable-dbx --enable-dio --without-mime-magic --
without-sqlite --with-libxml-dir=/usr --with-xml --with-apxs2=/usr/
sbin/apxs --without-mysql --without-gd --without-odbc --disable-dom --
disable-dba --without-unixODBC --disable-pdo --disable-xmlreader --
disable-xmlwriter --disable-json --with-mcrypt=/usr/local/lib/ --
disable-posix-threads --enable-dynamic-loading
You only need apxs to compile PHP, not install a binary.

Check the Apache newsgroups on what package you need to download for
your installation.


I don't understand...are you referring to mcrypt as the binary?
If so, are you saying that PHP does not need to be recompiled to
install mcrypt?
Because everything I've been reading about installing mcrypt discusses
recompiling PHP.
Thanks for the reply.
-L


No, I'm saying you're trying to recompile PHP, and you need apxs for that. However, if you install PHP from a binary, you don't need apxs.

But now you need to recompile PHP, so you need apxs. That's an Apache module, so you need to check the Apache newsgroups to see how to get it for your distro.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================

.



Relevant Pages

  • HOWTO: FreeTDS for Newbies (almost complete)
    ... One way to do that is to install FreeTDS, recompile PHP, ... You can go to freetds.org and install the RPMs on Unix or Linux ...
    (comp.lang.php)
  • Re: No apxs when updating PHP
    ... I have to recompile PHP with the libmcrypt switches in the ./ ... So I downloaded the latest PHP source files, ... Apache was not built using --enable-so (the apxs usage page is ...
    (comp.lang.php)
  • Re: No apxs when updating PHP
    ... I have to recompile PHP with the libmcrypt switches in the ./ ... So I downloaded the latest PHP source files, ... Apache was not built using --enable-so (the apxs usage page is ...
    (comp.lang.php)
  • Re: No apxs when updating PHP
    ... I have to recompile PHP with the libmcrypt switches in the ./ ... So I downloaded the latest PHP source files, ... Sorry, I cannot run apxs. ... Apache was not built using --enable-so (the apxs usage page is ...
    (comp.lang.php)
  • Re: Error message but I cant figure out why
    ... >> It won't work if mysql support is not built into the php install. ... > I'm very new to redhat, just how do I recompile php? ... Run the configure script with mysql and other options. ...
    (alt.php)