[Ubuntu-zh] 如何安装这个setup,py文件?谢谢
赵汉杰
lucky.hanjie在gmail.com
星期五 二月 29 14:14:49 GMT 2008
谢谢,目前的问题是,肯能有个头文件有问题,好像是缺少python.h这个库,我想问问,这个库在哪里能找到呢?
如果能找到,那么又要放在在哪个文件夹里呢?谢谢
hanjie在hanjie-laptop:~/polygraph-0.1.0$ python setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.5
creating build/lib.linux-i686-2.5/polygraph
copying polygraph/__init__.py -> build/lib.linux-i686-2.5/polygraph
creating build/lib.linux-i686-2.5/polygraph/sigprob
copying polygraph/sigprob/tokensplit.py -> build/lib.linux-i686-2.5
/polygraph/sigprob
copying polygraph/sigprob/sigprob.py -> build/lib.linux-i686-2.5
/polygraph/sigprob
copying polygraph/sigprob/__init__.py -> build/lib.linux-i686-2.5
/polygraph/sigprob
creating build/lib.linux-i686-2.5/polygraph/trace_crunching
copying polygraph/trace_crunching/stream_trace.py -> build/lib.linux-
i686-2.5/polygraph/trace_crunching
copying polygraph/trace_crunching/priorprob.py -> build/lib.linux-i686-2.5
/polygraph/trace_crunching
copying polygraph/trace_crunching/sarray_trace.py -> build/lib.linux-
i686-2.5/polygraph/trace_crunching
copying polygraph/trace_crunching/pkts_to_streams.py -> build/lib.linux-
i686-2.5/polygraph/trace_crunching
copying polygraph/trace_crunching/priorprob_prune.py -> build/lib.linux-
i686-2.5/polygraph/trace_crunching
copying polygraph/trace_crunching/__init__.py -> build/lib.linux-i686-2.5
/polygraph/trace_crunching
creating build/lib.linux-i686-2.5/polygraph/worm_gen
copying polygraph/worm_gen/atphttpd.py -> build/lib.linux-i686-2.5
/polygraph/worm_gen
copying polygraph/worm_gen/worm_gen.py -> build/lib.linux-i686-2.5
/polygraph/worm_gen
copying polygraph/worm_gen/clet.py -> build/lib.linux-i686-2.5
/polygraph/worm_gen
copying polygraph/worm_gen/bindTSIG.py -> build/lib.linux-i686-2.5
/polygraph/worm_gen
copying polygraph/worm_gen/__init__.py -> build/lib.linux-i686-2.5
/polygraph/worm_gen
copying polygraph/worm_gen/apache_host.py -> build/lib.linux-i686-2.5
/polygraph/worm_gen
copying polygraph/worm_gen/codered.py -> build/lib.linux-i686-2.5
/polygraph/worm_gen
copying polygraph/worm_gen/admmutate.py -> build/lib.linux-i686-2.5
/polygraph/worm_gen
creating build/lib.linux-i686-2.5/polygraph/sig_gen
copying polygraph/sig_gen/bayes.py -> build/lib.linux-i686-2.5
/polygraph/sig_gen
copying polygraph/sig_gen/lcseq_tree.py -> build/lib.linux-i686-2.5
/polygraph/sig_gen
copying polygraph/sig_gen/lcs.py -> build/lib.linux-i686-2.5
/polygraph/sig_gen
copying polygraph/sig_gen/cluster.py -> build/lib.linux-i686-2.5
/polygraph/sig_gen
copying polygraph/sig_gen/sig_gen.py -> build/lib.linux-i686-2.5
/polygraph/sig_gen
copying polygraph/sig_gen/__init__.py -> build/lib.linux-i686-2.5
/polygraph/sig_gen
copying polygraph/sig_gen/bayes_tree.py -> build/lib.linux-i686-2.5
/polygraph/sig_gen
creating build/lib.linux-i686-2.5/polygraph/util
copying polygraph/util/__init__.py -> build/lib.linux-i686-2.5
/polygraph/util
copying polygraph/util/sutil.py -> build/lib.linux-i686-2.5/polygraph/util
copying polygraph/util/pysubseq.py -> build/lib.linux-i686-2.5
/polygraph/util
running build_ext
building 'polygraph.util.pysubseqc' extension
creating build/temp.linux-i686-2.5
creating build/temp.linux-i686-2.5/polygraph
creating build/temp.linux-i686-2.5/polygraph/pysubseq
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes
-fPIC -I/usr/include/python2.5 -c polygraph/pysubseq/pysubseqc.c -o
build/temp.linux-i686-2.5/polygraph/pysubseq/pysubseqc.o
polygraph/pysubseq/pysubseqc.c:15:20: 错误: Python.h:No such file or directory
polygraph/pysubseq/pysubseqc.c:18: 错误: expected ')' before '*' token
polygraph/pysubseq/pysubseqc.c:33: 错误: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
polygraph/pysubseq/pysubseqc.c:48: 错误: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
polygraph/pysubseq/pysubseqc.c:74: 错误: expected '=', ',', ';', 'asm' or
'__attribute__' before 'pysubseqc_funcs'
polygraph/pysubseq/pysubseqc.c: 在函数 'initpysubseqc' 中:
polygraph/pysubseq/pysubseqc.c:81: 警告: 隐式声明函数 'Py_InitModule3'
polygraph/pysubseq/pysubseqc.c:83: 错误: 'pysubseqc_funcs' 未声明 (在此函数内第一次使用)
polygraph/pysubseq/pysubseqc.c:83: 错误: (即使在一个函数内多次出现,每个未声明的标识符在其
polygraph/pysubseq/pysubseqc.c:83: 错误: 所在的函数内只报告一次。)
error: command 'gcc' failed with exit status 1
2008/2/29 马利 <richard.ma.19850509在gmail.com>:
> 看看帮助
> python setup.py --help
>
> 在08-2-29,赵汉杰 <lucky.hanjie在gmail.com> 写道:
> >
> > 需要安装一个文件叫setup.py,但是我输入
> > python setup.py
> > 报错如下:
> > usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
> > or: setup.py --help [cmd1 cmd2 ...]
> > or: setup.py --help-commands
> > or: setup.py cmd --help
> > 估计是让我输入一个安装的目的路径,但是这个路径的格式是什么样子的呢??
> > 比如我想装到/home/hanjie这个路径下,输入的命令格式应该是什么样子的呢
> >
> > 谢谢!!!
> >
> > --
> > Today is the last day of your life, so far!
> > --
> > ubuntu-zh mailing list
> > ubuntu-zh在lists.ubuntu.com
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
> >
> >
>
>
> --
> 马利
> richard.ma
> --
> ubuntu-zh mailing list
> ubuntu-zh在lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>
--
Today is the last day of your life, so far!
-------------- 下一部分 --------------
一个HTML附件被移除...
URL: https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20080229/3599a66d/attachment.htm
More information about the ubuntu-zh
mailing list