Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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 timebut running config.guess returns a host type
[root@aisha php-5.0.0]# bash ./config.guess
i686-pc-linux-gnuHint: 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]#Note: When i use "double-hyphenated parameters" with the --prefix option i get the invalid option error(without the prefix option, double-hyphenated parameters works)
[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
I would be very much appreciate if anyone could help me with this.Thanks
Asad

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |