Differences between revisions 9 and 10
Revision 9 as of 2009-11-29 03:37:27
Size: 5480
Editor: Elias
Comment: 删除对PageComment2组件的引用
Revision 10 as of 2009-12-25 07:15:20
Size: 5510
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
[[TableOfContents]] <<TableOfContents>>
Line 20: Line 20:
 * [http://sourceforge.net/forum/forum.php?thread_id=1724164&forum_id=10227 disscus in SF.net]  * [[http://sourceforge.net/forum/forum.php?thread_id=1724164&forum_id=10227|disscus in SF.net]]
Line 23: Line 23:
 * base [http://amsn.sourceforge.net/wiki/tiki-index.php?page=Installation+Instructions#tcl/tk aMSN Installation Instructions]  * base [[http://amsn.sourceforge.net/wiki/tiki-index.php?page=Installation+Instructions#tcl/tk|aMSN Installation Instructions]]
Line 92: Line 92:
 * base [http://blog.csdn.net/fyzhao/archive/2006/12/27/1464614.aspx Install Python2.5 (including tkinter)]  * base [[http://blog.csdn.net/fyzhao/archive/2006/12/27/1464614.aspx|Install Python2.5 (including tkinter)]]
Line 124: Line 124:
attachment:070427_install-py_tkinter_scrot.png {{attachment:070427_install-py_tkinter_scrot.png}}
Line 127: Line 127:
attachment:070427_py2.5-ok_scrot.png {{attachment:070427_py2.5-ok_scrot.png}}
Line 131: Line 131:
attachment:070427_py2.5-IDLE_scrot.png {{attachment:070427_py2.5-IDLE_scrot.png}}
Line 140: Line 140:
 * is OK attachment:070427_LEO-abt_scrot.png  * is OK {{attachment:070427_LEO-abt_scrot.png}}
Line 145: Line 145:
  * attachment:070427_LEO-die-ctrl-v_scrot.png   * {{attachment:070427_LEO-die-ctrl-v_scrot.png}}
Line 151: Line 151:
attachment:070427_LEO4.4.2.1_scrot.png {{attachment:070427_LEO4.4.2.1_scrot.png}}
Line 159: Line 159:
::-- ZoomQuiet [[[DateTime(2007-04-27T09:23:14Z)]]] ::-- ZoomQuiet [<<DateTime(2007-04-27T09:23:14Z)>>]

just want work in LEO with Chinese! but always error under Ubuntu

1. Try Py2.5 for LEO

in Ubuntu 6.06.1 LTS at Dell LATITUDE D620

  • just want usage LEO with good Cinese editing
  • in my mind Tcl/Tk 8.5 fixed Chinese Problem so try..

leo-4-4-3-alpha-2 build 1.131
Pmw.1.2
Python 2.5.1
Tk 8.5a6
Tcl 8.5a6

1.1. install Tcl/Tk

  • base aMSN Installation Instructions

  • usage lftp download cvs snapshots from ftp://ftp.tcl.tk/pub/tcl/nightly-cvs/

    • and compiling them:
      1. install tcl:

        tcl/unix$ ./configure --enable-shared --enable-gcc
        $ make clean && make 
        $ sudo make install
        ...
        tcl/unix$ sudo make install
        Installing libtcl8.5.so to /usr/local/lib/
        Installing tclsh as /usr/local/bin/tclsh8.5
        Installing tclConfig.sh to /usr/local/lib/
        Installing libtclstub8.5.a to /usr/local/lib/
        Installing message catalogs
            Creating msgs
        Making directory /usr/local/lib/tcl8.5/opt0.4
        Making directory /usr/local/lib/tcl8.5/http1.0
        Making directory /usr/local/lib/tcl8.5/encoding
        Installing header files
        Installing library files to /usr/local/lib/tcl8.5
        Installing library http1.0 directory
        Installing package http 2.5.3 as a Tcl Module
        Installing library opt0.4 directory
        Installing package msgcat 1.4.2 as a Tcl Module
        Installing package tcltest 2.3a1 as a Tcl Module
        Installing package platform 1.0.2 as a Tcl Module
        Installing package platform::shell 1.1.3 as a Tcl Module
        Installing library encoding directory
        Installing and cross-linking top-level (.1) docs
        Installing and cross-linking C API (.3) docs
        Installing and cross-linking command (.n) docs
      2. install tk:

        /tk/unix$ ./configure --enable-xft
        $ make clean && make 
        $ sudo make install
        ...
        tk/unix$ sudo make install
        Warning: tkStubInit.c may be out of date.
        Developers may want to run "make genstubs" to regenerate.
        This warning can be safely ignored, do not report as a bug!
        Warning: ttkStubInit.c may be out of date.
        Developers may want to run "make genstubs" to regenerate.
        This warning can be safely ignored, do not report as a bug!
        Making directory /usr/local/lib/tk8.5
        Creating package index /usr/local/lib/tk8.5/pkgIndex.tcl
        Installing libtk8.5.so to /usr/local/lib/
        Installing wish as /usr/local/bin/wish8.5
        Installing tkConfig.sh to /usr/local/lib/
        Installing libtkstub8.5.a to /usr/local/lib/
        Making directory /usr/local/lib/tk8.5/images
        Making directory /usr/local/lib/tk8.5/msgs
        Making directory /usr/local/lib/tk8.5/ttk
        Installing header files
        Installing library files to /usr/local/lib/tk8.5
        Installing library ttk directory
        Installing library images directory
        Installing translation directory
        Making directory /usr/local/lib/tk8.5/demos
        Making directory /usr/local/lib/tk8.5/demos/images
        Installing demos to /usr/local/lib/tk8.5/demos/
        Installing demo images
        Installing and cross-linking top-level (.1) docs
        Installing and cross-linking C API (.3) docs

All OK

1.2. install Python2.5

  • base Install Python2.5 (including tkinter)

  • at firt ,had to cp .so into default dir for Python install script usage

    $ sudo cp libtcl8.5.so /usr/lib/
    $ sudo cp libtk8.5.so /usr/lib/
  • so so install Python2.5

    /python2.5-2.5.1.orig$ ./configure --enable-unicode=ucs4 \
      --with-tk   --with-tk-library=/usr/local/lib --with-tk-include=/usr/local/include/tcl8.5 \
      --with-tcl-library=/usr/local/lib --with-tcl-include=/usr/local/include/tcl8.5 
    $  make clean && make
    $  make test
    ...
    281 tests OK.
    40 tests skipped:
        test_aepack test_al test_applesingle test_bsddb test_bsddb185
        test_bsddb3 test_cProfile test_cd test_cl test_codecmaps_cn
        test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr
        test_codecmaps_tw test_curses test_dbm test_gdbm test_gl
        test_imgfile test_linuxaudiodev test_macfs test_macostools
        test_nis test_normalization test_ossaudiodev test_pep277
        test_plistlib test_profile test_scriptpackages test_socket_ssl
        test_socketserver test_startfile test_sunaudiodev test_sundry
        test_timeout test_urllib2net test_urllibnet test_winreg
        test_winsound test_zipfile64
    6 skips unexpected on linux2:
        test_dbm test_gdbm test_bsddb test_profile test_sundry
        test_cProfile
    
    $ sudo make install
  • notice that tkinter and install KO

070427_install-py_tkinter_scrot.png

  • try Python2.5 is OK

070427_py2.5-ok_scrot.png

1.3. try IDLE

  • for test Tk is real support in Python2.5 running IDLE

070427_py2.5-IDLE_scrot.png

  • good!

1.4. try LEO

  • download LEO and install just scrip into /opt/bin/

  • runing as normal Python script:

/opt/bin/leo-4.4.3a2/src$ python2.5 leo.py
  • is OK 070427_LEO-abt_scrot.png

1.4.1. always die

  • but any copy or paste ... LEO will die
    • 070427_LEO-die-ctrl-v_scrot.png

What happen? and what can i do?!

1.4.2. leo4.4.2.1 is OK

070427_LEO4.4.2.1_scrot.png

  • but can not edit Chinese
  • when Ctrl+space for call scim, there is always input space....

2. comments

::-- ZoomQuiet [2007-04-27 09:23:14]

ZoomQuiet/2007-04-27 (last edited 2009-12-25 07:15:20 by localhost)