尝试过了,目前python.h这个库已经装好了,但是我发现我的问题是在gcc的库文件严重不全,又有个名叫pcap.h的库找不到了~~<br>我再去找找吧,谢谢大伙!<br><br><div class="gmail_quote">2008/3/1 LLY <<a href="mailto:bones7456@gmail.com">bones7456@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
python2.5-dev 这个包安装过了吗?<br>没有的话 sudo apt-get install python2.5-dev<br>好运~<br><br><div><span class="gmail_quote">在08-3-1,<b class="gmail_sendername">马利</b> <<a href="mailto:richard.ma.19850509@gmail.com" target="_blank">richard.ma.19850509@gmail.com</a>> 写道:</span><div>
<div></div><div class="Wj3C7c"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Python.h应该是个C头文件,在python的dev包中就有,安装相应版本的开发包就可以了<div><span><br><br><div><span class="gmail_quote">在08-2-29,<b class="gmail_sendername">赵汉杰</b> <<a href="mailto:lucky.hanjie@gmail.com" target="_blank">lucky.hanjie@gmail.com</a>> 写道:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
谢谢,目前的问题是,肯能有个头文件有问题,好像是缺少python.h这个库,我想问问,这个库在哪里能找到呢?<br>如果能找到,那么又要放在在哪个文件夹里呢?谢谢<br>hanjie@hanjie-laptop:~/polygraph-0.1.0$ python setup.py install<br>running install<br>running build<br>running build_py<br>creating build<br>
creating build/lib.linux-i686-2.5<br>creating build/lib.linux-i686-2.5/polygraph<br>copying polygraph/__init__.py -> build/lib.linux-i686-2.5/polygraph<br>creating build/lib.linux-i686-2.5/polygraph/sigprob<br>copying polygraph/sigprob/tokensplit.py -> build/lib.linux-i686-2.5/polygraph/sigprob<br>
copying polygraph/sigprob/sigprob.py -> build/lib.linux-i686-2.5/polygraph/sigprob<br>copying polygraph/sigprob/__init__.py -> build/lib.linux-i686-2.5/polygraph/sigprob<br>creating build/lib.linux-i686-2.5/polygraph/trace_crunching<br>
copying polygraph/trace_crunching/stream_trace.py -> build/lib.linux-i686-2.5/polygraph/trace_crunching<br>copying polygraph/trace_crunching/priorprob.py -> build/lib.linux-i686-2.5/polygraph/trace_crunching<br>copying polygraph/trace_crunching/sarray_trace.py -> build/lib.linux-i686-2.5/polygraph/trace_crunching<br>
copying polygraph/trace_crunching/pkts_to_streams.py -> build/lib.linux-i686-2.5/polygraph/trace_crunching<br>copying polygraph/trace_crunching/priorprob_prune.py -> build/lib.linux-i686-2.5/polygraph/trace_crunching<br>
copying polygraph/trace_crunching/__init__.py -> build/lib.linux-i686-2.5/polygraph/trace_crunching<br>creating build/lib.linux-i686-2.5/polygraph/worm_gen<br>copying polygraph/worm_gen/atphttpd.py -> build/lib.linux-i686-2.5/polygraph/worm_gen<br>
copying polygraph/worm_gen/worm_gen.py -> build/lib.linux-i686-2.5/polygraph/worm_gen<br>copying polygraph/worm_gen/clet.py -> build/lib.linux-i686-2.5/polygraph/worm_gen<br>copying polygraph/worm_gen/bindTSIG.py -> build/lib.linux-i686-2.5/polygraph/worm_gen<br>
copying polygraph/worm_gen/__init__.py -> build/lib.linux-i686-2.5/polygraph/worm_gen<br>copying polygraph/worm_gen/apache_host.py -> build/lib.linux-i686-2.5/polygraph/worm_gen<br>copying polygraph/worm_gen/codered.py -> build/lib.linux-i686-2.5/polygraph/worm_gen<br>
copying polygraph/worm_gen/admmutate.py -> build/lib.linux-i686-2.5/polygraph/worm_gen<br>creating build/lib.linux-i686-2.5/polygraph/sig_gen<br>copying polygraph/sig_gen/bayes.py -> build/lib.linux-i686-2.5/polygraph/sig_gen<br>
copying polygraph/sig_gen/lcseq_tree.py -> build/lib.linux-i686-2.5/polygraph/sig_gen<br>copying polygraph/sig_gen/lcs.py -> build/lib.linux-i686-2.5/polygraph/sig_gen<br>copying polygraph/sig_gen/cluster.py -> build/lib.linux-i686-2.5/polygraph/sig_gen<br>
copying polygraph/sig_gen/sig_gen.py -> build/lib.linux-i686-2.5/polygraph/sig_gen<br>copying polygraph/sig_gen/__init__.py -> build/lib.linux-i686-2.5/polygraph/sig_gen<br>copying polygraph/sig_gen/bayes_tree.py -> build/lib.linux-i686-2.5/polygraph/sig_gen<br>
creating build/lib.linux-i686-2.5/polygraph/util<br>copying polygraph/util/__init__.py -> build/lib.linux-i686-2.5/polygraph/util<br>copying polygraph/util/sutil.py -> build/lib.linux-i686-2.5/polygraph/util<br>copying polygraph/util/pysubseq.py -> build/lib.linux-i686-2.5/polygraph/util<br>
running build_ext<br>building 'polygraph.util.pysubseqc' extension<br>creating build/temp.linux-i686-2.5<br>creating build/temp.linux-i686-2.5/polygraph<br>creating build/temp.linux-i686-2.5/polygraph/pysubseq<br>
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<br>polygraph/pysubseq/pysubseqc.c:15:20: 错误: Python.h:No such file or directory<br>
polygraph/pysubseq/pysubseqc.c:18: 错误: expected ')' before '*' token<br>polygraph/pysubseq/pysubseqc.c:33: 错误: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token<br>
polygraph/pysubseq/pysubseqc.c:48: 错误: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token<br>polygraph/pysubseq/pysubseqc.c:74: 错误: expected '=', ',', ';', 'asm' or '__attribute__' before 'pysubseqc_funcs'<br>
polygraph/pysubseq/pysubseqc.c: 在函数 'initpysubseqc' 中:<br>polygraph/pysubseq/pysubseqc.c:81: 警告: 隐式声明函数 'Py_InitModule3'<br>polygraph/pysubseq/pysubseqc.c:83: 错误: 'pysubseqc_funcs' 未声明 (在此函数内第一次使用)<br>
polygraph/pysubseq/pysubseqc.c:83: 错误: (即使在一个函数内多次出现,每个未声明的标识符在其<br>polygraph/pysubseq/pysubseqc.c:83: 错误: 所在的函数内只报告一次。)<br>error: command 'gcc' failed with exit status 1<br><br><br><br><div class="gmail_quote">2008/2/29 马利 <<a href="mailto:richard.ma.19850509@gmail.com" target="_blank">richard.ma.19850509@gmail.com</a>>:<span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">看看帮助<br>python setup.py --help<br><br><div><span class="gmail_quote">在08-2-29,<b class="gmail_sendername">赵汉杰</b> <<a href="mailto:lucky.hanjie@gmail.com" target="_blank">lucky.hanjie@gmail.com</a>> 写道:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div>
需要安装一个文件叫setup.py,但是我输入<br>python setup.py<br>报错如下:<br>usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]<br> or: setup.py --help [cmd1 cmd2 ...]<br> or: setup.py --help-commands<br> or: setup.py cmd --help<br>
估计是让我输入一个安装的目的路径,但是这个路径的格式是什么样子的呢??<br>比如我想装到/home/hanjie这个路径下,输入的命令格式应该是什么样子的呢<br><br>谢谢!!!<br clear="all"><span><br>-- <br>Today is the last day of your life, so far!
</span><br></div></div>--<br>
ubuntu-zh mailing list<br>
<a href="mailto:ubuntu-zh@lists.ubuntu.com" target="_blank">ubuntu-zh@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>马利<br><a href="http://richard.ma" target="_blank">richard.ma</a>
<br>--<br>
ubuntu-zh mailing list<br>
<a href="mailto:ubuntu-zh@lists.ubuntu.com" target="_blank">ubuntu-zh@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh</a><br>
<br></blockquote></span></div><div><span><br><br clear="all"><br>-- <br>Today is the last day of your life, so far!
</span></div><br>--<br>
ubuntu-zh mailing list<br>
<a href="mailto:ubuntu-zh@lists.ubuntu.com" target="_blank">ubuntu-zh@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>马利<br><a href="http://richard.ma" target="_blank">richard.ma</a>
</span></div><br>--<br>
ubuntu-zh mailing list<br>
<a href="mailto:ubuntu-zh@lists.ubuntu.com" target="_blank">ubuntu-zh@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh</a><br>
<br></blockquote></div></div></div><br>
<br>--<br>
ubuntu-zh mailing list<br>
<a href="mailto:ubuntu-zh@lists.ubuntu.com">ubuntu-zh@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Today is the last day of your life, so far!