[tahoe-dev] 回复: Re: 回复: Re: 回复: Re: how to run the tahoe-lafs in another computer without internet?
han zheng
z.han0903 at gmail.com
Thu Apr 5 14:26:33 UTC 2012
hi,
When I use the system's default python(2.6 with bz2 supported), -SUMO doesn't seem to work. Here is the details:
****************************************************************************
zhan at book-desktop:~/allmydata-tahoe-1.9.1-SUMO$ python setup.py install
Not found: ../tahoe-deps
Download error: [Errno -2] Name or service not known -- Some packages may not be found!
Download error: [Errno -2] Name or service not known -- Some packages may not be found!
twisted/runner/portmap.c:10:20: error: Python.h: No such file or directory
twisted/runner/portmap.c:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
twisted/runner/portmap.c:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
twisted/runner/portmap.c:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PortmapMethods’
twisted/runner/portmap.c: In function ‘initportmap’:
twisted/runner/portmap.c:55: warning: implicit declaration of function ‘Py_InitModule’
twisted/runner/portmap.c:55: error: ‘PortmapMethods’ undeclared (first use in this function)
twisted/runner/portmap.c:55: error: (Each undeclared identifier is reported only once
twisted/runner/portmap.c:55: error: for each function it appears in.)
Traceback (most recent call last):
File "setup.py", line 468, in <module>
**setup_args
File "/usr/lib/python2.6/distutils/core.py", line 113, in setup
_setup_distribution = dist = klass(attrs)
File "/home/zhan/allmydata-tahoe-1.9.1-SUMO/setuptools-0.6c16dev3.egg/setuptools/dist.py", line 260, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/home/zhan/allmydata-tahoe-1.9.1-SUMO/setuptools-0.6c16dev3.egg/setuptools/dist.py", line 284, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File "/home/zhan/allmydata-tahoe-1.9.1-SUMO/setuptools-0.6c16dev3.egg/pkg_resources.py", line 573, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/home/zhan/allmydata-tahoe-1.9.1-SUMO/setuptools-0.6c16dev3.egg/pkg_resources.py", line 823, in best_match
return self.obtain(req, installer) # try and download/install
File "/home/zhan/allmydata-tahoe-1.9.1-SUMO/setuptools-0.6c16dev3.egg/pkg_resources.py", line 835, in obtain
return installer(requirement)
File "/home/zhan/allmydata-tahoe-1.9.1-SUMO/setuptools-0.6c16dev3.egg/setuptools/dist.py", line 327, in fetch_build_egg
return cmd.easy_install(req)
File "/home/zhan/allmydata-tahoe-1.9.1-SUMO/setuptools-0.6c16dev3.egg/setuptools/command/easy_install.py", line 453, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/zhan/allmydata-tahoe-1.9.1-SUMO/setuptools-0.6c16dev3.egg/setuptools/command/easy_install.py", line 483, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/zhan/allmydata-tahoe-1.9.1-SUMO/setuptools-0.6c16dev3.egg/setuptools/command/easy_install.py", line 663, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/zhan/allmydata-tahoe-1.9.1-SUMO/setuptools-0.6c16dev3.egg/setuptools/command/easy_install.py", line 938, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/zhan/allmydata-tahoe-1.9.1-SUMO/setuptools-0.6c16dev3.egg/setuptools/command/easy_install.py", line 929, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1
zhan at book-desktop:~/allmydata-tahoe-1.9.1-SUMO$
*****************************************************************************
why?thanks
2012-04-05
han zheng
发件人:Zooko Wilcox-O'Hearn
发送时间:2012-04-04 20:44
主题:Re: [tahoe-dev] 回复: Re: 回复: Re: how to run the tahoe-lafs in another computer without internet?
收件人:"Tahoe-LAFS development"<tahoe-dev at tahoe-lafs.org>
抄送:
han zheng:
Thanks for reporting the fact that your Python doesn't have the bzip2
module. That's probably the cause of the failure to build Twisted.
On Wed, Apr 4, 2012 at 2:27 AM, han zheng <z.han0903 at gmail.com> wrote:
> how to install python with bzip2 supported?
It's surprising that you have a version of Python *without* bzip2
supported. Every distribution of Python that I know of comes with
bzip2 included. Where did you get your version of Python? What
operating system are you running?
The Tahoe-LAFS quickstart.rst says where to get Python:
https://tahoe-lafs.org/trac/tahoe-lafs/browser/trunk/docs/quickstart.rst
If you get Python following the instructions in the quickstart.rst, it
will come with bzip2.
Alternately, you could download this tarball of all of the tahoe
dependencies packaged with gzip:
https://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-lafs-deps.tar.gz
In the future, we'll package the -SUMO distribution of Tahoe-LAFS with
gzip only.
Regards,
Zooko
_______________________________________________
tahoe-dev mailing list
tahoe-dev at tahoe-lafs.org
http://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tahoe-lafs.org/pipermail/tahoe-dev/attachments/20120405/ec4751b6/attachment-0001.html>
More information about the tahoe-dev
mailing list