From 665902d891b89fb68b3a0eca826db2b21af0d9da Mon Sep 17 00:00:00 2001 From: davidsarah <> Date: Sat, 22 Jan 2011 05:03:36 +0000 Subject: [PATCH] bb-freeze [Imported from Trac: page AdvancedInstall, version 31] --- AdvancedInstall.md | 51 ++++++++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/AdvancedInstall.md b/AdvancedInstall.md index ab0a091..59ed573 100644 --- a/AdvancedInstall.md +++ b/AdvancedInstall.md @@ -198,53 +198,60 @@ but it will not include any code from them. The allmydata.org APT repository (see DownloadDebianPackages for details) has packages for the dependencies that aren't already in Debian proper. -The "`make windows-exe`" and "`make windows-installer`" commands will -create a windows executable, and the corresponding installer. +It is also possible to create a binary distribution using [http://pypi.python.org/pypi/bbfreeze bb-freeze]. +Install bb-freeze, then in the root of a Tahoe source tree with full path +``, do: +``` +python setup.py build +set PYTHONPATH=\support\Lib\site-packages;\src +bb-freeze static\tahoe.py +``` -The "`make mac-exe`" and "`make mac-dist`" commands will create a -Macintosh OS-X executable and the corresponding installer (.dmg) file. +This will create a `dist` directory containing the bb-frozen distribution. +The [bbfreeze-users](https://groups.google.com/group/bbfreeze-users) Google +group may be able to help with general questions about bb-freeze. -[=#point8] -== Platform-specific Notes == + +## Platform-specific Notes -[=#point8.1] -=== !Debian/Ubuntu === + +### !Debian/Ubuntu Tahoe-LAFS is primarily developed on !Debian/Ubuntu machines. You can either build from source (as described by this page), or download pre-compiled debian -packages for several distributions. See the DownloadDebianPackages page for +packages for several distributions. See the [DownloadDebianPackages](DownloadDebianPackages) page for details. -[=#point8.2] -=== CentOS 5.4 === + +### CentOS 5.4 For installing in CentOS 5.4 you need this list of package: yum install gcc python-devel sqlite-devel gcc-c++ openssl-devel -[=#point8.2.1] +

Dependencies

cpp glibc-devel glibc-headers kernel-headers libgomp libstdc++-devel e2fsprogs-devel keyutils-libs-devel krb5-devel libselinux-devel libsepol-devel zlib-devel -[=#point8.3] -=== MacOS === + +### MacOS -You will need the standard Xcode development tools installed, or at least GCC in order to build some dependencies.[[BR]] +You will need the standard Xcode development tools installed, or at least GCC in order to build some dependencies.
Note that Xcode is quite large (2.5GB) so plan accordingly if you will need to download it. -[=#point8.4] -=== Windows === + +### Windows -The following procedure will build and run Tahoe-LAFS on Windows. (This is basically exactly the [http://tahoe-lafs.org/source/tahoe-lafs/trunk/docs/quickstart.html docs/quickstart.html] procedure except with Windows-specific paths spelled out.) +The following procedure will build and run Tahoe-LAFS on Windows. (This is basically exactly the [docs/quickstart.html](http://tahoe-lafs.org/source/tahoe-lafs/trunk/docs/quickstart.html) procedure except with Windows-specific paths spelled out.) Note that this assumes that you install Python in the default location (C:\Python26), if you choose another location you'll need to adjust the instructions below: -1. Download and install Python 2.6.5 from http://www.python.org/ftp/python/2.6.5/python-2.6.5.msi. +1. Download and install Python 2.6.5 from . -2. Download and install pywin32 from http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/pywin32-214.win32-py2.6.exe/download. +2. Download and install pywin32 from . -3. 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. Download the latest Tahoe-LAFS release from . Unpack it in a convenient place, such as C:\tahoe-lafs. 4. Open a command prompt and cd to the top of the Tahoe-LAFS tree (e.g. `cd \tahoe-lafs`). @@ -252,7 +259,7 @@ Note that this assumes that you install Python in the default location (C:\Pytho 6. Run "`C:\Python26\Scripts\tahoe create-client --basedir C:\tahoelafsbase`". Choose an appropriate base directory. -7. Run "`notepad C:\tahoelafsbase\tahoe.cfg`" to edit your config file. After "`introducer.furl = `", paste in the FURL of the introducer for the grid you want to connect to. See [wiki:TestGrid TestGrid] to get the FURL of the introducer for the testgrid. +7. Run "`notepad C:\tahoelafsbase\tahoe.cfg`" to edit your config file. After "`introducer.furl = `", paste in the FURL of the introducer for the grid you want to connect to. See [TestGrid](TestGrid) to get the FURL of the introducer for the testgrid. 8. Run "`C:\Python26\Scripts\tahoe start --basedir 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.