Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

backports/lzma/_lzmamodule.c:115:18: fatal error: lzma.h: No such file or directory

Tags:

python

docker

pip

I'm trying to install docker-registry. I got stuck after this:

$ apt-get install python-pip python-dev
$ pip install -r requirements.txt
[...]
backports/lzma/_lzmamodule.c:115:18: fatal error: lzma.h: No such file or directory

The docker-registry I downloaded is v0.6.7

like image 390
ChocoDeveloper Avatar asked Mar 29 '14 23:03

ChocoDeveloper


3 Answers

$ apt-get install -y liblzma-dev
like image 56
ChocoDeveloper Avatar answered Nov 08 '22 00:11

ChocoDeveloper


On Centos the package is

yum install -y xz-devel
like image 17
Hot Diggity Avatar answered Nov 07 '22 23:11

Hot Diggity


For OSX with Homebrew.

brew install xz

The formula is xz which because lzma formula is deprecated, since it became a part of xz.

like image 6
harunurhan Avatar answered Nov 07 '22 23:11

harunurhan