在ubuntu中安装ulipad

  原文地址:Ubuntu中安装Ulipad

Release     DIST name     Architectures     Python Versions     Latest wx
Ubuntu 6.06     dapper     i386, amd64     2.4     2.8.8.0
Ubuntu 6.10     edgy     i386, amd64     2.4, 2.5     2.8.6.1
Ubuntu 7.04     feisty     i386, amd64     2.4, 2.5     2.8.9.1
Ubuntu 7.10     gutsy     i386, amd64     2.4, 2.5     2.8.9.2
Ubuntu 8.04     hardy     i386, amd64     2.4, 2.5     2.8.10.1
Ubuntu 8.10     intrepid     i386, amd64     2.4, 2.5     2.8.10.1
Ubuntu 9.04     Jaunty     i386, amd64     2.5, 2.6     2.8.11.0
Ubuntu 9.10     karmic     i386, amd64     2.5, 2.6     2.8.11.0
Ubuntu 10.4     lucid     i386, amd64     2.6     2.8.12.0
Ubuntu 10.10     maverick     i386, amd64     2.6     2.8.12.0
Ubuntu 11.4     natty     i386, amd64     2.6, 2.7     2.8.12.0
Debian 4.0     etch     i386, amd64     2.4     2.8.12.0
Debian 5.0     lenny     i386, amd64     2.4, 2.5     2.8.12.0
Debian 6.0     squeeze     i386, amd64     2.5, 2.6     2.8.12.0
Notes
由于在windows中使用Ulipad一段时间了,尤其对于python代码的编辑功能,我觉得目前还没有一款别的编辑器能与之媲美(当然Ulipad 也有美中不足的地方)。下面介绍一下在linux下Ulipad的安装,由于没有像windows下那样的exe安装文件,所以linux下安装 Ulipad只能是下载Ulipad的源码,进行编译安装。下面讲讲我的安装步骤:
    一 . 安装wxpython。
      由于Ulipad的界面是用wxpython写的,所以要先安装wxpython,而且是2.8版本以上的。
      安装wxpython的方法,详细请看http://wiki.wxpython.org/InstallingOnUbuntuOrDebi an
      这里简单说下步骤。(摘自上面的连接)
      1 .The packages and the repository meta-data are digitally signed, so you'll need to import the key   
                into your apt's list of trusted keys in order to not get warnings about it.
     $
curl http://apt.wxwidgets.org/key.asc | sudo apt-key add -    如果没有任何信息打印出来,则说明目前linux里面没有关于wxpython的源,需要我们手动添加源,方法如下:
      2. Add the following lines to your /etc/apt/sources.list file (or use the "software sources"
              program under the "system" menu). Replace the "DIST" text with whatever is appropriate for
        your system.

              (See the table below for a list of supported distributions and architectures.)
              (把下面的内容添加到你的sources.list文件里,这里要详细 说明一下,DIST是指的你的linux的发行版本,详细的版本查询  文章最开头的表,列出了Ubuntu的一些发行版 本信息,比如下面的例子里,是gutsy,指的是ubuntu7.10)
        # wxWidgets/wxPython repository at apt.wxwidgets.org
              deb http://apt.wxwidgets.org/ DIST-wx main
        deb-src http://apt.wxwidgets.org/ DIST-wx main
      
         For example
, if your distro is Ubuntu Gutsy , then you would use the following configuration
                  statements:
    
# wxWidgets/wxPython repository at apt.wxwidgets.org
                  deb http://apt.wxwidgets.org/ gutsy-wx main
          deb-src http://apt.wxwidgets.org/ gutsy-wx main
                  我的ubuntu是11.04,查那个表可以知道DIST name是natty,就可以把DIST 改为natty,注 
          意与前
面的/之间空一个空格 ,其实这个DIST name有个简单的方法能得到,就是在shell里输
          入命令:
  cat /etc/*-release  
            DISTRIB_ID=Ubuntu
             DISTRIB_RELEASE=11.04
              DISTRIB_CODENAME=natty
             DISTRIB_DESCRIPTION="Ubuntu 11.04"
 
          上面是我的结果,可以知道DIST name是natty
     3. r
un the this command to update your local copy of the package meta-data.
         
sudo apt-get update
     4.
  You can now use your favorite package selection tool to install or upgrade the wxWidgets and
                  wxPython packages. Here's how to do it with apt-get :
    
sudo apt-get install python-wxgtk2.8 python-wxtools python-wxaddons wx2.8-i18n
                These packages (and their dependencies) will replace earlier versions of wxPython and wxGTK in
                the same ReleaseSeries that may have been installed previously. 
         以上就是安装wxpython,想知道是否安装成功,可以在python命令行中输入import wx 看看是否错误提示输出,如果没有,则说明安装基本成功。 

(嘿嘿,以上是摘抄的,下来是自己的)
二:安装Ulipad
          (1)
http://code.google.com/p/ulipad/downloads/list 下载ulipad.4.1.zip
          (2) cd /home/XXXX/下载
          (3) unzip ulipad.4.1.zip -d /usr/local/
          (4)cd /usr/local/ulipad
          (5)su -
           (6) python UliPad.py
注:(6)如果报错: begin... 10:40:13
                        end... 10:40:15
                          g_dbus_connection_real_closed: Remote peer vanished with error: Underlying                  GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
已终止
 (就是因为第五步用的是 su 而不是su -)



      

你可能感兴趣的:(在ubuntu中安装ulipad)