wiki:jazz/Comet/08-10-30

Version 6 (modified by jazz, 16 years ago) (diff)

--

2008-10-30

  • 根據 Orbited 的相依說明,我們會需要這幾個套件
    • python2.5 - An interactive high-level object-oriented language (version 2.5) [註]用 Python 2.4 在執行 orbited 時會遇到一些 Error
    • python-setuptools - Python Distutils Enhancements
    • python-twisted - Event-based framework for internet applications (transitional package)
    • python-simplejson - Simple, fast, extensible JSON encoder/decoder for Python
  • 安裝 Orbited 相關套件
    ~$ sudo apt-get install python2.5 python-setuptools python-twisted python-simplejson
    ~$ wget http://pypi.python.org/packages/source/o/orbited/orbited-0.7.0.tar.gz
    ~$ tar zxvf orbited-0.7.0.tar.gz
    ~$ sudo easy_install orbited-0.7.0
    
  • 測試 Orbited
    ~$ python
    Python 2.4.4 (#2, Apr 16 2008, 17:58:59)
    [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import orbited
    
  • 如果沒有錯誤訊息就可以繼續跑測試了。要跑 Orbited 必須要有設定檔,範例設定檔可以在 SVN 上找到。設定方法則需參閱官方文件
    ~$ cd orbited-0.7.0/
    ~/orbited-0.7.0$ sudo cp orbited.cfg /etc/
    
    

Attachments (1)

Download all attachments as: .zip