Severe beginner question, can't install PHP
I'm running Ubuntu 7.10 with the latest version of Apache. I'm using the Wrox book Beginning PHP5.
When I try to install PHP, I'm using the following commands as described in the book:
~$ tar -xvzf '/home/nopantsjim/Desktop/php-5.2.4.tar.gz'
~$ cd php-5.2.4
~/php-5.2.4$ ./configure --with-mysql --with-apxs2
which gives me the following result:
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-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
I have the latest version of gcc installed, so I'm not sure what the problem is there. According to what I've just read, Cygwin is a windows program that emulates a Linux environment, so I'm not sure why I would need that. I also have mingw32 installed so I don't know why it says I don't
Help?
|