[tahoe-dev] 回复: Re: 回复: Re: 回复: Re: how to run the tahoe-lafs in another computer without internet?

Zooko Wilcox-O'Hearn zooko at zooko.com
Thu Apr 5 15:23:34 UTC 2012


Hello han zheng:

On Thu, Apr 5, 2012 at 8:26 AM, han zheng <z.han0903 at gmail.com> wrote:
> twisted/runner/portmap.c:10:20: error: Python.h: No such file or directory

This means that it attempted to compile Twisted from source, and it
failed to compile. This part of Tahoe-LAFS packaging is confusing,
because there are two different ways that it attempts to satisfy the
requirement for Twisted. First, it checks whether it can download a
precompiled binary of Twisted for your platform. It looks in at least
these three locations:

https://pypi.python.org/pypi/Twisted
http://twistedmatrix.com/trac/
https://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-lafs-dep-eggs/README.html

That last location is under our control, and we could fix this problem
for you if someone would build a Twisted binary for your platform that
we could host there. Would you please post the output of:

python -c 'import platform;print platform.system();print
platform.architecture();print platform.python_version()'

Anyway, if the build system doesn't find a precompiled binary of
Twisted for your platform then it tries the other approach, which is
that it downloads the source code of Twisted and tries to compile it.
The reason it failed to compile is that you don't have the "Python.h"
file installed. That file comes from the "python-dev" package on
Ubuntu, so if you install that package then I believe your build
process will proceed.

Regards,

Zooko


More information about the tahoe-dev mailing list