Hi there! while i just registered in this forum, i have read it for a long time.
So I'm writing a python application to manage interfaces on the go putting the on mode monitor. My goal is to make it run either on PC and openwrt devices.
The problem comes when I try to install a python module called netifaces, which is very helpful managing interfaces info. Although the code is wide compatible with Linux devices, it can't be installed with easy_install on the router itself, as you may see in the output.:
here is the code:
http://alastairs-place.net/projects/net … 0.8.tar.gz
root@myroutex:/tmp# easy_install netifaces/
Processing
Running setup.py -q bdist_egg --dist-dir /tmp/netifaces/egg-dist-tmp-Bm2DH5
checking for getifaddrs... not found. (cached)
checking for getnameinfo... not found. (cached)
checking for socket IOCTLs... not found. (cached)
checking for optional header files... none found. (cached)
checking whether struct sockaddr has a length field... no. (cached)
checking which sockaddr_xxx structs are defined... none! (cached)
unable to execute mips-openwrt-linux-uclibc-gcc: No such file or directory
error: Setup script exited with error: command 'mips-openwrt-linux-uclibc-gcc' failed with exit status 1
in a common pc just running
python setup.py build
builds a .so file and
python setup.py install
does all the job.
I don't know if it is posible to cross compile it, because the installer itself is contained in the module, setup.py
Is there any way to install it in openwrt? Any hint about it?
Thanks folks, and sorry for my rough english
(Last edited by peluzza on 28 Nov 2013, 23:16)