LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-13-2010, 09:34 AM   #1
monocube
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Rep: Reputation: 0
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
 
Old 04-13-2010, 10:10 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
.....
 
Old 04-14-2010, 01:58 AM   #3
monocube
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 05-23-2012, 06:02 AM   #4
gopa
LQ Newbie
 
Registered: Aug 2011
Posts: 13

Rep: Reputation: Disabled
/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
 
  


Reply



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
Error in PHP 5.0.5 and Apache 1.3.34 - Cannot load libphp5.so jun_tuko Linux - Software 7 01-05-2008 11:12 PM
php5 libphp5.so error blizunt7 Linux - Software 7 08-10-2007 01:59 AM
error while trying to launch apache server- permission prob with libphp5.so rlee923 Linux - Newbie 2 03-11-2007 04:41 AM
Apache Server error, libphp5.so crillegs Linux - Software 3 05-23-2006 01:56 PM
FreeBSD PHP5 ports error - libphp5.la is not a valid libtool archive BizHat.com *BSD 2 08-18-2005 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:13 PM.

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