Installing PHP
Hi all.
I'm newbie on linux, php etc. I downloaded some tar.gz files extract the original ones and tried to follow the steps on the INSTALL of PHP. I used the following command syntax: ./configure --with-mysql=/usr/bin/ --with-xml --with-apache/usr/src/apache_1.3.28/ --with-curl=/usr/src/curl-7.10.7/ MySQL was installed by the use of RPM. After a lot of lines and time the following warning appeared on the screen: configure: error: There is something wrong. Please check config.log for more information. I checked out config.log and there was a lot of errors. The line and error are: configure:1618: checking host system type configure:1706: checking for gcc configure:1819: checking whether the C compiler (gcc ) works configure:1835: gcc -o conftest conftest.c 1>&5 configure:1861: checking whether the C compiler (gcc ) is a cross-compiler configure:1866: checking whether we are using GNU C configure:1875: gcc -E conftest.c configure:1894: checking whether gcc accepts -g configure:1927: checking whether gcc and cc understand -c and -o together configure:1942: gcc -c conftest.c -o conftest.o 1>&5 configure:1943: gcc -c conftest.c -o conftest.o 1>&5 configure:1948: cc -c conftest.c 1>&5 configure:1950: cc -c conftest.c -o conftest.o 1>&5 configure:1951: cc -c conftest.c -o conftest.o 1>&5 configure:1978: checking how to run the C preprocessor configure:1999: gcc -E conftest.c >/dev/null 2>conftest.out configure:2059: checking for AIX configure:2086: checking if compiler supports -R configure:2101: gcc -o conftest -g -O2 conftest.c -R /usr/lib 1>&5 gcc: unrecognized option `-R' /usr/lib: file not recognized: Is a directory collect2: ld returned 1 exit status configure: failed program was: #line 2094 "configure" #include "confdefs.h" int main() { ; return 0; } Could anyone, please, help me and say what i'm doing wrong? Thanks. Vinicius :confused: |
as a new user i would seriously recommend using rpm's to install applications just until you feel a bit more confident with playing with config installs
|
Thanks for your reply and recommendation. I was just trying to follow the steps of a book.
In reality all I need is having apache (http and https), PHP and MySQL working together. What you mean is that installing the packages will make things easier for me? |
well the packages will do all the installation and the majority of the standard installation for u all in one go nice and simple!
|
installing binaries instead of compliling source code can make things A LOT easier.
you can make your LAMP server (linux, apache, mysql, and php) by simply installing the RPMs... they are on your linux cds or you can get them from a red hat 9.0 mirror. http://www.linux.org/docs/ldp/howto/RPM-HOWTO/ http://www.redhat.com/docs/books/max-rpm/ here's amirror with the 9.0 rpms: ftp://mirrors.secsup.org/pub/linux/r...86/RedHat/RPMS if you want a super-friendly way of administrating the apache and mysql servers i suggest webmin... yes, they have an rpm. http://webmin.com/ http://prdownloads.sourceforge.net/w...0-1.noarch.rpm |
|
All times are GMT -5. The time now is 01:11 AM. |