[netflow-tools] nflow install Python

Lee Gold leegold at operamail.com
Sat Oct 3 02:58:57 EST 2009


Hi,

I have Ubuntu and tried installing nflow according to the install instructions. If a command didn't work I just put sudo in front of it and that solved it. Mostly I use the packages to install so I might ask some basic questions - please bear with me if I do...

Everything worked up until trying: > python setup.py build

Wondered if anyone can help I have some output below, seems like the Python part didn't take...Thanks

I got:

linux at linux-laptop:~/flowd-0.9.1$ sudo python setup.py build 
running build
running build_ext
building 'flowd' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPROGVER="0.9.1" -I/usr/include/python2.6 -c flowd_python.c -o build/temp.linux-i686-2.6/flowd_python.o
flowd_python.c:17:20: error: Python.h: No such file or directory
flowd_python.c:19:26: error: structmember.h: No such file or directory
In file included from flowd_python.c:20:
store.h:266: error: expected ‘)’ before ‘*’ token
store.h:268: error: expected ‘)’ before ‘*’ token
flowd_python.c:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘initflowd’
flowd_python.c:36: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
flowd_python.c:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Flow_Type’
flowd_python.c: In function ‘newFlowObject’:
flowd_python.c:54: warning: implicit declaration of function ‘PyObject_New’
flowd_python.c:54: error: expected expression before ‘FlowObject’
....SNIP....

I have Python installed:

linux at linux-laptop:~$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

--


-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze


More information about the netflow-tools mailing list