如何在debian中安装perl Inline :: Python

时间:2015-05-04 16:34:49

标签: perl debian

我尝试通过

安装perl Inline :: Python模块
cpan Inline::Python

我收到以下错误

ERROR from evaluation of /root/.cpan/build/NINE-Y6sbU9/Inline-Python-0.49/Makefile.PL: Could not find Python.h in include path. make will not work at ./Makefile.PL line 66.
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]

然后我尝试使用apt-get install python-dev安装python-dev。我得到了以下内容:

python-dev : Depends: python2.6-dev (>= 2.6.6-1~) but it is not going to be installed

所以我尝试安装python2.6和libpython2.6。得到以下

python2.6 is already the newest version.

libpython2.6 is already the newest version.

我现在该怎么办?

1 个答案:

答案 0 :(得分:-1)

尝试安装包含库和头文件的包。使用 apt-cache 查找包名称。例如:

$ apt-cache search python | grep dev
# apt-get install python2.7-dev

*或相应版本的Python。

现在尝试使用 cpan 而不是apt-get:

来安装模块
# cpan Inline::Python