문제

background

I am installing volatility from this walkthrough. I am doing this on a windows 7 64 bit install and i have python 2.7 installed. I had cygwin installed months ago and removed it probably 6+ months ago. I have cleared all references to it i can find and all files associated with it. Where is python getting the "-mno-cygwin" from? Any help or links would be greatly appreciated! Thanks!

Current path variable

C:\Python27\;
C:\Python27\Scripts;
C:\MinGW\bin;
C:\Perl64\site\bin;
C:\Perl64\bin;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;
c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;
c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;
c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;
c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;
%systemroot%\System32\WindowsPowerShell\v1.0\;
%TTPRO_APPDIR%;
C:\Program Files\TortoiseSVN\bin;
C:\Program Files (x86)\Lua\5.1;
C:\Program Files (x86)\Lua\5.1\clibs;
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\

error

C:\Users\<user>\Downloads\pycrypto-2.6.tar\dist\pycrypto-2.6\pycrypto-2.6>pyth
on setup.py build -c mingw32
running build
running build_py
running build_ext
running build_configure
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.

building 'Crypto.Random.OSRNG.winrandom' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -Wall -std=c99 -O3 -fomit-frame-pointer -
Isrc/ -IC:\Python27\include -IC:\Python27\PC -c src/winrand.c -o build\temp.win-
amd64-2.7\Release\src\winrand.o
cc1.exe: error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1
도움이 되었습니까?

해결책

This answer suggests that the -mno-cygwin option can be found in c:\Python27\lib\distutils\cygwinccompiler.py and that it is a deprecated option that can be removed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top