5

I tried to install lz4 libraries in CentOS, but failing with the following error.

[Bash]# yum install liblz4 liblz4-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net 
 * extras: centos.excellmedia.net 
 * updates: centos.excellmedia.net 
No package liblz4 available. 
No package liblz4-devel available. 
Error: Nothing to do 
[Bash]#

What is the right way to setup the liblz4.so?

Also, I am not able to find the lz4 rpm packages for CentOS, but available for other rpm based Operating Systems. Is lz4 supported for CentOS?

JJC
  • 9,547
  • 8
  • 48
  • 53
stack512
  • 51
  • 1
  • 1
  • 4

2 Answers2

10

On CentOS 6.x or 7.x, you can do the following to easily install lz4 using the package manager.

As root (sudo su - is your friend, or just preface each yum invocation below with sudo):

First, enable EPEL, as @Etan Reisner suggested:

yum install epel-release

Then, to install lz4 binary:

yum install lz4

And/or, to install the library:

yum install lz4-devel

And, you're done.

JJC
  • 9,547
  • 8
  • 48
  • 53
3

Packages for CentOS for lz4 appear to be available in EPEL.

Etan Reisner
  • 77,877
  • 8
  • 106
  • 148
  • I could find the required rpm and able to install it through above info. But how to make yum install it automatically. This is required for a naive user. – stack512 Jan 16 '15 at 11:27
  • 1
    You add the `EPEL` repo to your system and `yum` will work just fine. Information about doing that is on the page I linked. – Etan Reisner Jan 16 '15 at 12:10