Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2007-04-27 09:23:14
Size: 653
Editor: ZoomQuiet
Comment:
Revision 4 as of 2007-04-27 09:38:43
Size: 5230
Editor: ZoomQuiet
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
'''just want work in LEO with Chinese! but always error under Ubuntu
'''
Line 11: Line 13:
{{{
leo-4-4-3-alpha-2 build 1.131
Pmw.1.2
Python 2.5.1
Tk 8.5a6
Tcl 8.5a6
}}}
Line 14: Line 23:
 * 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
}}}
   1. 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'''
Line 17: Line 92:
 * 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
attachment:070427_install-py_tkinter_scrot.png

 * try Python2.5 is OK
attachment:070427_py2.5-ok_scrot.png
Line 19: Line 129:
 * for test Tk is real support in Python2.5 running IDLE
attachment:070427_py2.5-IDLE_scrot.png
  * good!
Line 20: Line 133:
== die LEO == == 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 attachment:070427_LEO-abt_scrot.png

 * but any copy or paste ... LEO will die
  * attachment:070427_LEO-die-ctrl-v_scrot.png

'''What happen? and what can i do?!'''


=== always die ===

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

::-- ZoomQuiet [DateTime(2007-04-27T09:23:14Z)] TableOfContents

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 [http://amsn.sourceforge.net/wiki/tiki-index.php?page=Installation+Instructions#tcl/tk 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 [http://blog.csdn.net/fyzhao/archive/2006/12/27/1464614.aspx 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

attachment:070427_install-py_tkinter_scrot.png

  • try Python2.5 is OK

attachment:070427_py2.5-ok_scrot.png

1.3. try IDLE

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

attachment: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 attachment:070427_LEO-abt_scrot.png
  • but any copy or paste ... LEO will die
    • attachment:070427_LEO-die-ctrl-v_scrot.png

What happen? and what can i do?!

1.4.1. always die

2. comments

PageComment2

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