LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PHP compile issue.. (https://www.linuxquestions.org/questions/linux-newbie-8/php-compile-issue-4175514218/)

shaana2khan 08-11-2014 08:01 AM

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 ??

keefaz 08-11-2014 08:15 AM

It's lzma (-l<library name>)

You have good reason not to use php package from your distribution?

TB0ne 08-11-2014 08:24 AM

Quote:

Originally Posted by shaana2khan (Post 5218777)
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..

shaana2khan 08-12-2014 12:42 AM

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...


All times are GMT -5. The time now is 08:49 PM.