Computing.Net > Forums > Linux > Configuring PHP5 in Redhat 9

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Configuring PHP5 in Redhat 9

Reply to Message Icon

Name: asheikh
Date: July 25, 2004 at 08:29:18 Pacific
OS: Linux/Mandrake 9.1
CPU/Ram: Intel PII 267
Comment:

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]#

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



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Configuring PHP5 in Redhat 9

Dial up in Redhat 9 www.computing.net/answers/linux/dial-up-in-redhat-9/25996.html

Scroll lock key in RedHat 9.0 www.computing.net/answers/linux/scroll-lock-key-in-redhat-90/19969.html

How to setup raid in Redhat 9? www.computing.net/answers/linux/how-to-setup-raid-in-redhat-9/24109.html