简体   繁体   中英

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.

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

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

this worked for me :-)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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