9

I am installing R 3.3.1 from source. During ./configure --enable-R-shlib execution, error pops up:

checking for lzma_version_number in -llzma... yes
checking lzma.h usability... yes
checking lzma.h presence... yes
checking for lzma.h... yes
checking if lzma version >= 5.0.3... no
configure: error: "liblzma library and headers are required"

I see that there is no LZMA version 5.0.3 available and is currently available through XZ Utils.

Tukaani XZ Utils

I installed the XZ 5.2.2 but the error is still showing up.

j1897
  • 1,507
  • 5
  • 21
  • 41
  • Try to install the `liblzma-devel` package with `yum install liblzma-devel`. – nicola Jun 29 '16 at 06:14
  • 1
    liblzma-devel is not available – j1897 Jun 29 '16 at 06:30
  • Used `yum install lzma-devel`? You can also have a look [here](http://unix.stackexchange.com/questions/185244/cmake-error-could-not-find-liblzma-missing-liblzma-include-dir) and [here](http://pj.freefaculty.org/blog/), point 7. – J_F Jun 29 '16 at 08:04
  • 2
    Have tried both of them. It isn't working – j1897 Jun 29 '16 at 10:02
  • @technOslerphile : Please edit your post to include RHEL version : `cat /etc/redhat-release` .... » I installed the XZ 5.2.2 but the error is still showing up « : If installed to /usr/local/ , it's still later in the search path. /usr/ is first, and will be selected as [version]. – Knud Larsen Jun 29 '16 at 11:26

1 Answers1

7

I had the same error and it got fixed after installing xz and xz-devel as yum install xz xz-devel.

raviabhiram
  • 671
  • 2
  • 8
  • 21