LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   make: *** [libphp5.la] Error 1 (https://www.linuxquestions.org/questions/linux-software-2/make-%2A%2A%2A-%5Blibphp5-la%5D-error-1-a-801752/)

monocube 04-13-2010 09:34 AM

make: *** [libphp5.la] Error 1
 
I have installed httpd-2.2.3-31.el5.centos on a centos machine with the following command : ./configure --enable-so then make and make install were successful. then i installed MySQL server client and development packages and everything went great as well. my problem began when i wanted to install php 5.3 i didn't have any problem with ./configure whoever when i perform a MAKE the following error occurs

make: *** [libphp5.la] Error 1

i have tried another php source code for version 5.2 and the same problem happens again. i have even tried to rename the

cd /usr/lib/mysql
rename .a .a_old *.a
rename .la .la_old *.la

and tried to build again and the same problem happens again.

what shall i do? please anyone can help me solve this problem?

thank you in advance :)

knudfl 04-13-2010 10:10 AM

Welcome to LQ. .. .. :)

An example php-5.3 source package, the php-5.3.0-6.fc12.src.rpm
comes with 14 patches and uses seventy (70 !) of the configure
options. Building the packages ..
http://www.linuxquestions.org/questi...-0-a-764323/#3
# 3 :
Not all information in the post is uptodate,
I guess the 31 dependencies are still the same.
( I had no errors compiling php-5.3 ).

Packages, php-5.3.x are available from the remi.repo
http://rpms.famillecollet.com/enterprise/5/
http://rpms.famillecollet.com/enterp...oview/php.html
.....

monocube 04-14-2010 01:58 AM

Thank you that was really helpful, i was able to successfully troubleshoot the problem by installing MySQL-Shared package then i have tried to build again and it went smooth :) so for those who have the same problem and want to provide php support to mysql make sure to install the following before the php installation

1- Mysql-server
2- Mysql-client
3- Mysql-Development
4- Mysql-shared
5- and of course apache

gopa 05-23-2012 06:02 AM

/usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 against `a local symbol' can
 
./configure --libdir=/usr/lib64 --prefix=/usr/local/php-5.1.4 --with-apxs2=/usr/local/apache2/bin/apxs --enable-ftp --with-mysql-dir=/usr/local/mysql --with-libxml-dir=/usr/local/libxml2-2.6.24 --with-png-dir=/usr/local/libpng-1.2.8-config --with-zlib-dir=/usr/local/zlib-1.2.3/ --with-gd --with-jpeg-dir=/usr/local/lib64/ --with-freetype-dir=/usr/local/freetype-2.2.1

open Makefile
find for
"/usr/local/lib"
and replace with "/usr/lib64"


here this is code after replace
4 lines

EXTRA_LDFLAGS = -avoid-version -module -L/usr/lib64 -L/usr/local/zlib-1.2.3//lib
EXTRA_LDFLAGS_PROGRAM = -L/usr/lib64 -L/usr/local/zlib-1.2.3//lib
NATIVE_RPATHS = -Wl,-rpath,/usr/lib64 -Wl,-rpath,/usr/local/zlib-1.2.3//lib
PHP_LDFLAGS = -L/usr/lib64 -L/usr/local/zlib-1.2.3//lib
PHP_RPATHS = -R /usr/lib64 -R /usr/local/zlib-1.2.3//lib


All times are GMT -5. The time now is 03:00 PM.