backports/lzma/_lzmamodule.c:115:18: fatal error:

2019-04-04 02:29发布

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

3条回答
别忘想泡老子
2楼-- · 2019-04-04 02:34

For OSX with Homebrew.

brew install xz

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

查看更多
Ridiculous、
3楼-- · 2019-04-04 02:42

On Centos the package is

yum install -y xz-devel
查看更多
闹够了就滚
4楼-- · 2019-04-04 02:45
$ apt-get install -y liblzma-dev
查看更多
登录 后发表回答