| 7 | * 安裝 Orbited 相關套件 |
| 8 | {{{ |
| 9 | jazz@drbl-xen-srv:~$ sudo apt-get install python-setuptools python-twisted python-simplejson |
| 10 | jazz@drbl-xen-srv:~$ wget http://pypi.python.org/packages/source/o/orbited/orbited-0.6.1.tar.gz |
| 11 | jazz@drbl-xen-srv:~$ tar zxvf orbited-0.6.1.tar.gz |
| 12 | jazz@drbl-xen-srv:~$ sudo easy_install orbited-0.6.1 |
| 13 | }}} |
| 14 | * 測試 Orbited |
| 15 | {{{ |
| 16 | jazz@drbl-xen-srv:~$ python |
| 17 | Python 2.4.4 (#2, Apr 16 2008, 17:58:59) |
| 18 | [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 |
| 19 | Type "help", "copyright", "credits" or "license" for more information. |
| 20 | >>> import orbited |
| 21 | }}} |
| 22 | * 如果沒有錯誤訊息就可以繼續跑測試了。要跑 Orbited 必須要有設定檔, |
| 23 | {{{ |
| 24 | jazz@drbl-xen-srv:~$ wget http://www.orbited.org/export/553/trunk/daemon/orbited.cfg |
| 25 | jazz@drbl-xen-srv:~$ orbited --config orbited.cfg |
| 26 | 10/03/08 18:48:41:520 INFO orbited.start using select reactor |
| 27 | Traceback (most recent call last): |
| 28 | File "/usr/bin/orbited", line 7, in ? |
| 29 | sys.exit( |
| 30 | File "/usr/lib/python2.4/site-packages/orbited-0.6.1-py2.4.egg/orbited/start.py", line 65, in main |
| 31 | _setup_protocols(root) |
| 32 | File "/usr/lib/python2.4/site-packages/orbited-0.6.1-py2.4.egg/orbited/start.py", line 23, in _setup_protocols |
| 33 | port_class = _import(port_class_import) |
| 34 | File "/usr/lib/python2.4/site-packages/orbited-0.6.1-py2.4.egg/orbited/start.py", line 13, in _import |
| 35 | return reduce(getattr, name.split('.')[1:], __import__(module_import)) |
| 36 | File "/usr/lib/python2.4/site-packages/orbited-0.6.1-py2.4.egg/orbited/cometsession.py", line 2, in ? |
| 37 | import uuid |
| 38 | ImportError: No module named uuid |
| 39 | jazz@drbl-xen-srv:~$ wget http://pypi.python.org/packages/source/u/uuid/uuid-1.30.tar.gz |
| 40 | jazz@drbl-xen-srv:~$ easy_install uuid-1.30 |
| 41 | |
| 42 | }}} |