[tahoe-dev] setup.py build exits with: Unable to find vcvarsall.bat

sickness sickness at tiscali.it
Wed Jun 27 06:04:12 UTC 2012


So this is a long standing problem, but unfortunately I don't have a solution...
...I've been able to succesfully do a native build of tahoe-lafs on win32
but then tahoe doesn't work, it spells out linking errors :/

Anyway I want to share the process so maybe someone other can retry my steps
and hopefully fix them:
1) install python 2.7 (I've downloaded the python-2.7.3.msi file from python.org) in C:\Python27
   add C:\Python27 to the system PATH
2) install mingw32 (I've downloaded the mingw-get-inst-20120426.exe file from mingw.org) install it in C:\MinGW selecting
   to "use pre-packaged repository catalogues" C and C++ compilers and MSYS Basic System and MSYS Developer Toolkit
   then add C:\MinGW\bin to the system PATH
3) edit C:\Python27\Lib\distutils\distutils.cfg to include:
   [build]
   compiler=mingw32
4) edit C:\Python27\Lib\distutils\cygwincompiler.py and remove all the "-mno-cygwin" options
5) download and install ActivePerl-5.14.2.1402-MSWin32-x86-295342.msi from activestate.com 
   download and install nasm-2.10-installer.exe from nasm.us (in C:\nasm and then add this to the system PATH)
   download openssl-1.0.1c.tar.gz from openssl.org
   open the MSYS shell
   cd /c/
   tar xvfz openssl-1.0.1c.tar.gz
   mv openssl-1.0.1c.tar.gz openssl
   cd openssl
   perl Configure mingw shared
   make
   mkdir bin
   mkdir lib
   cp apps/openssl.exe bin/
   cp apps/*.dll bin/
   cp apps/*.dll lib/
   mkdir lib/MinGW
   perl util/mkdef.pl 32 libeay enable-static-engine > libeay32.def
   dllwrap --dllname libeay32.dll --output-lib libeay32.a --def libeay32.def libcrypto.a -lws2_32 -lgdi32
   cp libeay32.a lib/MinGW/
   perl util/mkdef.pl 32 ssleay enable-static-engine > ssleay32.def
   dllwrap --dllname libssl32.dll --output-lib libssl32.a --def ssleay32.def libssl.a libeay32.a
   add C:\openssl\bin to the system PATH
   mv libssl32.a ssleay32.a
   cp ssleay32.a lib/MinGW/
   
6) install Git for windows from http://git-scm.com/download/win
   download latest tahoe trunk with command: git clone git://github.com/warner/tahoe-lafs.git
7) python.exe setup.py build

On Wed, Jun 27, 2012 at 12:12:45AM +0100, ix4svs at gmail.com wrote:
> Hi all
> 
> I'm just giving Tahoe-LAFS 1.9.1 a spin for the first time. Following
> https://tahoe-lafs.org/trac/tahoe-lafs/browser/trunk/docs/quickstart.rst
> on a Windows 7 system (64-bit) I'm facing the following issues:
> 
> 1. After installing Python 2.7, the python binary is not in the
> %PATH%. I realise this is not a Tahoe-LAFS issue but it should
> probably be documented (preferably with a quick workaround) in the
> quickstart document.
> 
> 2. setup.py build exits with:
> [...]
> Searching for pycryptopp>=0.5.20
> Reading http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-dep-sdists/
> Reading http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-lafs-dep-eggs/
> Best match: pycryptopp 0.6.0.1206569328141510525648634803928199668821045408958
> Downloading https://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-dep-sdists/pycry
> ptopp-0.6.0.1206569328141510525648634803928199668821045408958.tar.gz
> Processing pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958.tar.gz
> Running pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958\setup
> .py -q bdist_egg --dist-dir
> c:\users\[username]\appdata\local\temp\easy_install-vhm8wh\pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958\egg-
> dist-tmp-26epl3
> 
> Setting up environment to run scripts for the current user...
> Already done: associate the filetype .pyscript with Python.File for the current
> user.
> Already done: add .pyscript to the user environment variable PATHEXT.
> Already done: add .pyw to the user environment variable PATHEXT.
> error: Setup script exited with error: Unable to find vcvarsall.bat
> 
> 
> Your guidance on this?
> 
> Thanks
> 
> Alex
> _______________________________________________
> tahoe-dev mailing list
> tahoe-dev at tahoe-lafs.org
> https://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev
> 



More information about the tahoe-dev mailing list