[oclug] configure PHP 5.0.3 with Red Hat Linux 9
Bill Strosberg
oclug_mail at strosberg.com
Fri Apr 15 10:39:56 EDT 2005
longjian at wangcheng.net wrote:
>Hi,
>
>I have configured and compiled httpd-2.0.52/SSL and MySQL 4.1.9, but I am having hard time to configure PHP 5.0.3 with Red Hat Linux 9.
>
>I have configured and compiled libiconv, libjpeg, libpng, cpdflib, curl, and freetype 2 successfully.
>
>Here is the conigure script and the error I am getting
>[root at netway-np-server php-5.0.3]# ./configure \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-mysql=/usr/local/mysql \ --with-mysqli=/usr/local/mysql/bin/mysql_config \ --with-mysql-sock=/tmp/mysql.sock \ --with-sqlite \ --enable-sqlite-utf8 \ --with-zlib \ --with-zlib-dir \ --with-bz2 \ --with-gd \ --enable-gd \ --enable-gd-native-ttf \ --with-jpeg-dir=/usr/local \ --with-png-dir=/usr/local \ --with-ttf \ --with-freetype-dir=/usr/local \ --with-iconv=/usr/local \ --with-curl=/usr/local \ --enable-track-vars \ --with-gettext \ --with-config-file-path=/usr/local/apache2/conf \ --enable-trans-id \ --enable-ftp \ --with-cpdflib=/usr/local \ --enable-mbstring \ --with-openssl=/usr/local
>configure: error: can only configure for one host and one target at a time
>[root at netway-np-server php-5.0.3]#
>
>
>I tried several times but everytime I got the same result. Can you help me? I am very anxious.
>Any help will be greatly appreciated!
>Best regards to you.
>
>Naisa Systems,Inc http://www.naisa.net
>
>
It appears to be (at least) a configure script PEBKAC error. If you type
./configure --help it will usually provide documentation on the
available options. I think I spotted an error/typo in the option
--enable-trans-id - I think this should be --enable-trans-sid (for
transparent PHP session ID IIRC). configure scripts for makefiles are
SUPPOSED to be picky - the options chosen are critical.
I do not know your requirements, but I should think that using a
standard tarball on RedHat 9 is not the way things are most easily done
- there is usually a source RPM that incorporates all of RedHatś
dependencies and config file peccadillos. Building things from tarball
source really screws up package management systems, dependencies and
distribution-specific conventions in general. Unless there are specific
features in PHP 5.0.3 that are not work-aroundable for your site, I
would recommend using the current stable binary RPM for your distribution.
Many people will recommend (usually not professional sysadmins), and
many web resources will extoll the virtues of
"bleeding-edge-compile-from-latest-snapshot" usage , but in my
experience I would rather forgo being an alpha-tester on a production
server. There are good reasons why new package releases are held back
from implementation in stable, production servers, especially in well
funded, resource loaded distributions ilke RedHat.
On the same topic, if you are interested in bleeding edge functionality,
why aren you working with Fedora Core? RedHat 9 is deprecated and
unsupported.
--
Bill Strosberg
More information about the OCLUG
mailing list