LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Configuring PHP5 in Redhat 9 (https://www.linuxquestions.org/questions/linux-software-2/configuring-php5-in-redhat-9-a-209155/)

asheikh 07-24-2004 12:35 PM

Configuring PHP5 in Redhat 9
 
Hello

I have configured and compiled httpd-2.0.50 and mysql-4.0.20 , but I am having hard time to configure php-5.0.0 with Red Hat Linux 9 (and hours of google search are in vain)

Here is the conigure script and the error I am getting

[root@aisha php-5.0.0]# ./configure –prefix=/usr/local/php5 –with-apxs=/usr/local/apache2/bin/apxs –with-mysql=/usr/local/mysql

*configure: warning:* –prefix=/usr/local/php5: invalid host type
*configure: warning: *–with-apxs=/usr/local/apache2/bin/apxs: invalid host type
*configure: error:* can only configure for one host and one target at a time

but running config.guess returns a host type
[root@aisha php-5.0.0]# bash ./config.guess
i686-pc-linux-gnu

Hint: If I run the conifig script with either mysql or apache support but not both i don't get the above error. but down to Configuring extensions i do get the follwoing error (libxml2 is there )

checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: libxml2 version 2.5.10 or greater required.

but libxml2 version 2.5.10 is installed as you can see from rpm query.

[root@aisha php-5.0.0]# rpm -qa | grep -i libxml2
libxml2-2.5.10-29
libxml2-python-2.5.4-1
libxml2-devel-2.5.4-1
[root@aisha php-5.0.0]#

I would be very much appreciate if anyone could help me with this.

Thanks

Asad


configure: error:* configure: error:* configure: error:

Cluster 07-24-2004 12:42 PM

Doesn't the configure script require double-hyphenated parameters, such as --with-apxs instead of -with-apxs?

asheikh 07-24-2004 08:32 PM

You are right , but strangly enough when i use "double-hyphenated parameters" with the --prefix option i get the following error(without the prefix option, double-hyphenated parameters work )

[root@aisha php-5.0.0]# ./configure -–prefix=/usr/local/php5 -–with-apxs=/usr/local/apache2/bin/apxs –-with-mysql=/usr/local/mysql
configure: error: -–prefix=/usr/local/php5: invalid option; use --help to show usage

Asad

Cluster 07-24-2004 09:29 PM

If you remove the --prefix parameter, do you get the same error about other directives?


All times are GMT -5. The time now is 01:55 AM.