change Windows section to use Python 2.7, and compiler-based install to include workaround for #1769
[Imported from Trac: page AdvancedInstall, version 56]
parent
3fe0a0936f
commit
2ad037cd23
|
@ -288,15 +288,15 @@ Note that Xcode is quite large (2.5GB) so plan accordingly if you will need to d
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
The following procedure will build and run Tahoe-LAFS on Windows. (This is basically source:docs/quickstart.rst and part of source:docs/running.rst with Windows-specific paths spelled out.)
|
The following procedure will build and run Tahoe-LAFS on Windows. (This is basically source:docs/quickstart.rst and part of source:docs/running.rst with Windows-specific paths spelled out.)
|
||||||
Note that this assumes that you install Python in the default location (C:\Python26 for Python 2.6.x), if you choose another location you'll need to adjust the instructions below:
|
Note that this assumes that you install Python in the default location (C:\Python27 for Python 2.7.x), if you choose another location you'll need to adjust the instructions below:
|
||||||
|
|
||||||
1. Download and install Python 2.6.6 from <http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi> (or for 64-bit Windows, <http://www.python.org/ftp/python/2.6.6/python-2.6.6.amd64.msi> ).
|
1. Download and install Python 2.7.3 (the x86 or x86-64 MSI installer link) from <http://www.python.org/getit/releases/2.7.3/> .
|
||||||
|
|
||||||
2. Download the latest Tahoe-LAFS release from <http://tahoe-lafs.org/source/tahoe-lafs/releases/>. Unpack it in a convenient place, such as C:\tahoe-lafs.
|
2. Download the latest Tahoe-LAFS release from <http://tahoe-lafs.org/source/tahoe-lafs/releases/>. Unpack it in a convenient place, such as C:\tahoe-lafs.
|
||||||
|
|
||||||
3. Open a command prompt and cd to the top of the Tahoe-LAFS tree (e.g. `cd \tahoe-lafs`).
|
3. Open a command prompt and cd to the top of the Tahoe-LAFS tree (e.g. `cd \tahoe-lafs`).
|
||||||
|
|
||||||
4. Run "`C:\Python26\python setup.py build`". Wait a bit until it stops working. Note that you need a working network connection because it will download various dependencies. Ignore any warnings.
|
4. Run "`C:\Python27\python setup.py build`". Wait a bit until it stops working. Note that you need a working network connection because it will download various dependencies. Ignore any warnings.
|
||||||
|
|
||||||
5. Run "`C:\tahoe-lafs\bin\tahoe create-client C:\tahoelafsbase`". Choose an appropriate base directory.
|
5. Run "`C:\tahoe-lafs\bin\tahoe create-client C:\tahoelafsbase`". Choose an appropriate base directory.
|
||||||
|
|
||||||
|
@ -304,7 +304,7 @@ Note that this assumes that you install Python in the default location (C:\Pytho
|
||||||
|
|
||||||
7. Run "`C:\tahoe-lafs\bin\tahoe start C:\tahoelafsbase`". Your node will start running and connect to the grid. The Windows firewall may ask whether or not to allow Python to make network connections. Say yes.
|
7. Run "`C:\tahoe-lafs\bin\tahoe start C:\tahoelafsbase`". Your node will start running and connect to the grid. The Windows firewall may ask whether or not to allow Python to make network connections. Say yes.
|
||||||
|
|
||||||
`C:\Python26\python setup.py install` can also optionally be used as on other platforms.
|
`C:\Python27\python setup.py install` can also optionally be used as on other platforms.
|
||||||
|
|
||||||
[=#point9.4.1]
|
[=#point9.4.1]
|
||||||
==== What if that doesn't work? ====
|
==== What if that doesn't work? ====
|
||||||
|
@ -326,6 +326,8 @@ compiler=mingw32
|
||||||
|
|
||||||
After installing the compilers, repeat the above instructions from step 4 (using a new command prompt to make sure that the environment variable setting has taken effect).
|
After installing the compilers, repeat the above instructions from step 4 (using a new command prompt to make sure that the environment variable setting has taken effect).
|
||||||
|
|
||||||
|
If you receive "error: Setup script exited with error: command 'gcc' failed with exit status 1" from `python setup.py build`, edit `C:\Python27\Lib\distutils\cygwincompiler.py` to remove all of the `-mno-cygwin` options, then try again (see ticket #1769). Don't do this unless it actually fails the first time round.
|
||||||
|
|
||||||
<a name="point9.4.2"></a>
|
<a name="point9.4.2"></a>
|
||||||
#### How do I make it run as a Windows service?
|
#### How do I make it run as a Windows service?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue