P1sec / pysctp

SCTP stack for Python
http://www.p1sec.com
165 stars 67 forks source link

How to install pysctp on windows 7 #16

Closed ghost closed 6 years ago

ghost commented 10 years ago

Hi,

I am trying to install pysctp on windows 7. I have python 2.7.8 installed. D:\userdata\rkommine\Desktop\pysctp-0.6>python --version Python 2.7.8

When I download the pysctp-0.6.tar.gz & extracted it & run the following command: D:\userdata\rkommine\Desktop\pysctp-0.6>python setup.py install running install running build running build_py creating build creating build\lib.win32-2.7 copying sctp.py -> build\lib.win32-2.7 running build_ext building '_sctp' extension error: Unable to find vcvarsall.bat

Could you please help how to install this modules on windows?

Thanks in advance.

Regards, Ramakrishna

ghost commented 10 years ago

Hi,

After going through suggestions posted in various pages I have installed cygwin containing gcc,gdb,make & mingw. After that I tried the following options:

D:\userdata\rkommine\Desktop\pysctp-0.6>python setup.py install build --compiler=cygwin running install running build running build_py running build_ext building '_sctp' extension C:\cygwin\bin\gcc.exe -mcygwin -mdll -O -Wall -I. -I/usr/include -IC:\Python27\include -IC:\Python27\PC -c _sctp.c -o build\temp.wi 32-2.7\Release_sctp.o gcc: error: unrecognized command line option '-mcygwin' error: command 'C:\cygwin\bin\gcc.exe' failed with exit status 1

D:\userdata\rkommine\Desktop\pysctp-0.6>python setup.py install build --compiler=mingw32 running install running build running build_py running build_ext building '_sctp' extension C:\cygwin\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I. -I/usr/include -IC:\Python27\include -IC:\Python27\PC -c _sctp.c -o build\temp win32-2.7\Release_sctp.o gcc: error: unrecognized command line option '-mno-cygwin' error: command 'C:\cygwin\bin\gcc.exe' failed with exit status 1

Could anyone please help on this installation issue.

Thanks in advance.

Regards, Ramakrishna

domi007 commented 9 years ago

Hi,

Just for reference: you can fix the issue you're having by going to your Python installation (C:\Python27 for example)\Libs\distutils and open up cygwinccompiler.py and remove all occurences of -mcygwin, but it still will not help. It will say something about not being able to include net/sctp.h, and you can't really fix that: https://www.cygwin.com/ml/cygwin/2009-02/msg00010.html

regards, Domi

p1-bmu commented 6 years ago

pysctp wraps the Linux kernel SCTP socket, but Windows has no SCTP implementation matching the Linux kernel API. For this reason, pysctp won't work on Windows.