(If you can see the colors, please take a look at the attachment) 
 

I tryied to install: mySQL, Apache and PHP 4.0. However, I had a problem when I got to the PHP instalation.I obtained the next error message after I built PHP4:

*********************************************************************
Attention:
Something is likely to be sscrewed up here, because the configure script was not able to detect a simple feature on your plataform. Please see the debug.log

*******************************************************************

Now, this is what I obtained in the debug.log

 

********************************************************************

CONFIGURE: './configure' '--with-mysql=/usr/local/mysql-3.22.32-pc-linux-gnu-i686' '--with-apxs=/usr/local/apache_1.3.12/bin/apxs'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS: 
CXX: 
CXXFLAGS: 
INCLUDES: -I/usr/local/apache_1.3.12/include -I$(top_builddir)/Zend -I$(top_srcdir) -I/usr/local/mysql-3.22.32-pc-linux-gnu-i686/include
LDFLAGS: -Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686/lib/mysql -L/usr/local/mysql-3.22.32-pc-linux-gnu-i686/lib/mysql
LIBS: -lmysqlclient -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv
DLIBS: 
SAPI: apache
PHP_RPATHS: /usr/local/mysql-3.22.32-pc-linux-gnu-i686/lib/mysql
uname -a: Linux cx489714-c 2.2.14-5.0 #1 Tue Mar 7 20:53:41 EST 2000 i586 unknown
gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686/lib/mysql -L/usr/local/mysql-3.22.32-pc-linux-gnu-i686/lib/mysql conftest.c -lmysqlclient -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status

********************************************************************

Finally, I visited your website. You suggested to take a look at the PHP FAQ. I did so. I found the next web page that I though could help to fix the problem:

**********************************************************************

6.11. When I try to build PHP using --with-apxs I get strange error messages 
There are three things to check here. First, for some reason when Apache builds the apxs Perl script, it sometimes
ends up getting built without the proper compiler and flags variables. Edit your apxs (sometimes found in
/usr/local/apache/bin/apxs or /usr/sbin/apxs) and check for these lines: 

my $CFG_CFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl
my $CFG_LD_SHLIB = ' '; # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl

If this is what you see, you have found your problem. Change these lines to say: 

my $CFG_CFLAGS_SHLIB = '-fpic -DSHARED_MODULE'; # substituted via Makefile.tmpl
my $CFG_LD_SHLIB = 'gcc'; # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(-shared);# substituted via Makefile.tmpl 

The second possible problem should only be an issue on RedHat-6.1/6.2. The apxs script RedHat ships is broken.
Look for this line: 

my $CFG_LIBEXECDIR = 'modules'; # substituted via APACI install

If you see the above line, change it to this: 

my $CFG_LIBEXECDIR = '/usr/lib/apache'; # substituted via APACI install

Last, if you reconfigure/reinstall Apache, add a 'make clean' to the process after './configure' and before 'make'. 


                                                       
http://www.php.net/FAQ.php#6.11

**********************************************************************

Unfortunately, this didn't help neither and I'm still stuck  :=(

Do you have any suggestions?

 

                                        Edgar

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to