Python的BZ2模块默认情况下未编译 [英] Python's bz2 module not compiled by default

查看:135
本文介绍了Python的BZ2模块默认情况下未编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看来,Python的2.6.1不从源头默认编译BZ2库。

It seems that Python 2.6.1 doesn't compile bz2 library by default from source.

我没有LIB-dynload / bz2.so

I don't have lib-dynload/bz2.so

什么是添加它(不用从头安装Python)的最快方法?

What's the quickest way to add it (without installing Python from scratch)?

操作系统就是Linux 2.4.32-grsec + F6B + gr217 + NFS + A32 + fuse23 + TG +++选择+ 8 + gr2b-v6.194#1 SMP星期二6月6日15时52分09秒PDT 2006年的i686 GNU / Linux的

OS is Linux 2.4.32-grsec+f6b+gr217+nfs+a32+fuse23+tg+++opt+c8+gr2b-v6.194 #1 SMP Tue Jun 6 15:52:09 PDT 2006 i686 GNU/Linux

IIRC我只用 - preFIX标志

IIRC I used only --prefix flag.

推荐答案

您需要libbz2.so(libbz2库通用)首先正确安装,对于Python,以便能够建立自己的接口吧。这通常是从你的Linux发行版可​​能在包名libbz2和开发一个包。

You need libbz2.so (the general purpose libbz2 library) properly installed first, for Python to be able to build its own interface to it. That would typically be from a package in your Linux distro likely to have "libbz2" and "dev" in the package name.

这篇关于Python的BZ2模块默认情况下未编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆