LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2014, 09:01 AM   #1
shaana2khan
Member
 
Registered: Nov 2012
Posts: 46

Rep: Reputation: Disabled
PHP compile issue..


Hello Everyone..

This time i need some helpful suggestion, i am doing PHP 5.5 compile, and most of the work has been done and i have installed all the php library manually, and when i am trying to run below command than getting this error, please help me...

# make
/usr/bin.ld: cannot find -llzma
collect2: ld returned 1 exit status
make: *** [sapi/cli/pjp] error 1

If anyone know llzma library name than kindly share me ??
 
Old 08-11-2014, 09:15 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
It's lzma (-l<library name>)

You have good reason not to use php package from your distribution?
 
Old 08-11-2014, 09:24 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,956

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by shaana2khan View Post
Hello Everyone..
This time i need some helpful suggestion, i am doing PHP 5.5 compile, and most of the work has been done and i have installed all the php library manually, and when i am trying to run below command than getting this error, please help me...

# make
/usr/bin.ld: cannot find -llzma
collect2: ld returned 1 exit status
make: *** [sapi/cli/pjp] error 1

If anyone know llzma library name than kindly share me ??
As keefaz pointed out, the name of the library is (pretty obviously), lzma. And you REALLY should install it from your online repositories, since building it from source isn't trivial, and unless you absolutely NEED a particular, cutting-edge feature from the new build, there's no reason to. You're just making more work for yourself.

You don't say what version/distro of Linux you're using, so we can't tell you where to get the missing library or how to install it. You also don't say what you're trying to accomplish by installing PHP from source, rather than by distro..
 
Old 08-12-2014, 01:42 AM   #4
shaana2khan
Member
 
Registered: Nov 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
Hello Everyone.

My issue has been solved and i was using old liblzma.so.0 with PHP 5.5 and after goggling a lot i found that i need xz-devel library(liblzma5), after installed it i run below command
# make
# make test

Now finally php 5.5 compiles successfully...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Connection issue involving mysql when run through apache php but not through cli php. sasheto86 Linux - Server 2 01-24-2013 10:43 AM
Compile PHP jjena Linux - Newbie 5 07-03-2010 09:46 AM
weird PHP compile issue- module shows in "php -m" but not in phpinfo call hbbtstar Linux - Software 1 08-28-2009 04:14 PM
PHP 5.2.0 compile konfigure Slackware 1 11-11-2006 09:12 PM
can't compile php 4.3.3 adrianmak Linux - Software 3 11-20-2003 09:06 PM


All times are GMT -5. The time now is 01:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration