LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2010, 10:01 AM   #1
Atrey
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Problem to install PHP-5.3.1


Hi,
I am trying to install PHP-5.3.1 on a vps. i have downloaded the php file and extracted it also. But when i try to compile the file get error like:
# ./configure .with-apache=../httpd .with-config-file-path=/www/conf .enable-track-vars
configure: warning: .with-apache=../httpd: invalid host type
configure: warning: .with-config-file-path=/www/conf: invalid host type
configure: error: can only configure for one host and one target at a time

and when tried with
# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH


can you please help me to get complete the installation ?


Thank you,
 
Old 01-08-2010, 10:09 AM   #2
Infasoft
Member
 
Registered: Aug 2008
Location: Salem, Oregon
Distribution: Windows 7 home premium X86_64 | Linux
Posts: 63

Rep: Reputation: 15
Well, it looks like you have not installed GCC. Install it first. What is your distro?
 
Old 01-09-2010, 12:06 PM   #3
anand.arumug
Member
 
Registered: Oct 2009
Location: Dayton, Ohio
Distribution: ubuntu, centos
Posts: 68
Blog Entries: 2

Rep: Reputation: 16
Quote:
Originally Posted by Atrey View Post
Hi,
I am trying to install PHP-5.3.1 on a vps. i have downloaded the php file and extracted it also. But when i try to compile the file get error like:
# ./configure .with-apache=../httpd .with-config-file-path=/www/conf .enable-track-vars
configure: warning: .with-apache=../httpd: invalid host type
configure: warning: .with-config-file-path=/www/conf: invalid host type
configure: error: can only configure for one host and one target at a time

and when tried with
# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH


can you please help me to get complete the installation ?


Thank you,
Looks like you are installing it on a Windows machine. Try the instructions given here: How to Install WAMP

cheers...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install PHP on a 64bit CentOS problem. HELP. jfernandez Linux - Software 5 11-20-2008 08:56 AM
php 5.1.4 install problem neranjana Linux - Software 2 05-25-2006 03:16 AM
PHP install problem on Debian nevarlen Linux - Newbie 1 03-16-2005 05:21 PM
PhP 4.3.9 install problem Dannydy Linux - Software 1 10-15-2004 03:21 PM
problem to install php in redhad 7 ashis Linux - Software 3 06-14-2001 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration