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

Failing to install on windows? #90

Open
m10653 opened this issue Apr 16, 2017 · 7 comments
Open

Failing to install on windows? #90

m10653 opened this issue Apr 16, 2017 · 7 comments
Assignees
Labels

Comments

@m10653
Copy link

m10653 commented Apr 16, 2017

So I have tried building/installing netzob on my windows box and I keep getting this error and I can't seem to figure out if its me or the code.

I am not very familiar with python so I am sorry in advanced.

This is there error when running python setup.py install
`
warning: no previously-included files matching '.tmp' found under directory ''

warning: no files found matching '*.py' under directory 'src\netzob_plugins'
no previously-included directories found matching 'src\netzob_plugins**\build'

writing manifest file 'Netzob.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
Update build\lib.win32-2.7\netzob\NetzobResources.py with BID = "81e2138d-ade9-4
8e8-9d03-ed6fc119cf24"
running build_ext
building 'netzob._libNeedleman' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -DBID="81e2138d-ade9-48e8-9d03-ed6fc119cf24" -Ilib\include
s -Ilib\includes\Py_lib -IC:\python27\include -IC:\python27\PC /Tclib\interface
Interface.c /Fobuild\temp.win32-2.7\Release\lib\interface\Interface.obj -std=c99
-Wall -Wextra -Wunused -Wsign-compare -Wstrict-prototypes -Wuninitialized -Wsha
dow -Wpointer-arith -O2
cl : Command line error D8021 : invalid numeric argument '/Wextra'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\c
l.exe' failed with exit status 2`

Any help would be awesome.

@gbossert
Copy link
Member

The error logs shows that the install command on Windows triggers the build of Netzob's C extensions with the CL compiler. Unfortunately, the build command is made for GCC which doesn't accept the same parameters.

@gbossert gbossert added the bug label Apr 17, 2017
@gbossert gbossert self-assigned this Apr 17, 2017
@m10653
Copy link
Author

m10653 commented Apr 17, 2017

Is there anyway fix this or is there a work around? Or do I just need to wait until the next build?

@liangdzou
Copy link
Contributor

liangdzou commented May 1, 2017

There are some standard ways to use GCC in Windows.
You can try Cygwin or MinGW.

@gbossert
Copy link
Member

gbossert commented May 2, 2017

Unfortunately, I didn't manage to adapt the C code to visual studio compiler.

@erik-smit
Copy link

For what it's worth, Ubuntu on Windows works for me to run netzob.

@Tusaka
Copy link

Tusaka commented Oct 30, 2017

So, have you finished the installation on windows? thank you very much!

Sygus pushed a commit that referenced this issue Dec 29, 2022
…ion' into 'develop'

Resolve "Test all Types regarding specialization and abstraction"

Closes #90

See merge request ANS015/netzob!271
Sygus pushed a commit that referenced this issue Dec 30, 2022
…ion' into 'develop'

Resolve "Test all Types regarding specialization and abstraction"

Closes #90

See merge request ANS015/netzob!271
@Sygus Sygus closed this as completed in cc63815 Jan 3, 2023
@Sygus Sygus reopened this Jan 8, 2023
@Zoeeeeey
Copy link

Hi,
I may have a solution here that you can learn about docker.
Deploy Netzob's runtime environment in docker, and then call Netzob from the outside.

I've pulled the base image of Ubuntu 20.04 to create a Docker environment, successfully installed Netzob, and invoked it.

On a side note, congratulations to Netzob on the release of version 2.0.0.
:>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants