简体   繁体   English

Pylibnet安装错误Ubuntu 14

[英]Pylibnet installation error ubuntu 14

I've been looking in the internet for a solution of this issue when i try to install pylibnet , i would like to know if you guys were be able to install pylibnet succesfully and how. 当我尝试安装pylibnet时,我一直在互联网上寻找此问题的解决方案,我想知道你们是否能够成功安装pylibnet以及如何成功安装。

Thanks 谢谢

root@root:/home/core2# pip install ./pylibnet-3.0-beta-rc1.tar.gz
Unpacking ./pylibnet-3.0-beta-rc1.tar.gz
  Running setup.py (path:/tmp/pip-LSMFJM-build/setup.py) egg_info for package from file:///home/core/pylibnet-3.0-beta-rc1.tar.gz
    Searching for libnet...
    Could not locate the static library "libnet.a"
    Complete output from command python setup.py egg_info:
    Searching for libnet...

Could not locate the static library "libnet.a"

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 255 in /tmp/pip-LSMFJM-build
Storing debug log for failure in /root/.pip/pip.log

Try runnning 尝试跑步

$ find / | grep libnet.a

or 要么

$ locate libnet.a

and if it is found somewhere then move it to /usr/lib/libnet.a because this is where pip looks for it when it trys to install pylibnet eg 如果在某处找到它,则将其移至/usr/lib/libnet.a,因为这是pip在尝试安装pylibnet时在其中寻找它的地方,例如

$ sudo cp /usr/lib/i386-linux-gnu/libnet.a /usr/lib/libnet.a

this worked for me :-) 这对我有用:-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM