Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install pysctp on windows 7 #16

Closed
ghost opened this issue Jul 23, 2014 · 3 comments
Closed

How to install pysctp on windows 7 #16

ghost opened this issue Jul 23, 2014 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 23, 2014

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 ghost changed the title How to install pysctp on wondows 7 How to install pysctp on windows 7 Jul 23, 2014
@ghost
Copy link
Author

ghost commented Jul 25, 2014

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
Copy link
Contributor

domi007 commented Jul 6, 2015

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
Copy link
Contributor

p1-bmu commented Sep 20, 2018

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.

@p1-bmu p1-bmu closed this as completed Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants