Git Product home page Git Product logo

sublime-imfix's Introduction

在Ubuntu上SublimeText无法输入中文的解决方法

  1. 下载sublime-imfix.c
    假设下载到了 home(~)目录下

  2. 安装c\C++编译环境和gtk libgtk2.0-dev
    终端下输入以下命令:
    sudo apt-get install build-essential libgtk2.0-dev

  3. 编译共享库
    终端下输入以下命令:
    gcc -shared -o libsublime-imfix.so sublime-imfix.c `pkg-config --libs --cflags gtk+-2.0` -fPIC

    该命令需要在 home 目录下执行, 即 sublime-imfix.c 所在目录

  4. 将编译好的库移到 sublime 的安装目录
    终端下输入以下命令:
    mv libsublime-imfix.so $SUBLIME_HOME/

    • 该命令需要在 home 目录下执行, 即 libsublime-imfix.so 所在目录
    • $SUBLIME_HOME,指Sublime的安装(所在)目录
  5. 启动 Sublime Text 2
    终端下输入以下命令:
    LD_PRELOAD=./libsublime-imfix.so ./sublime_text

    该命令需要在 sublime 的安装目录下执行
    否则,需要将命令中的两个文件换成绝对路径

sublime-imfix's People

Contributors

zl-leaf avatar youngzhu avatar elona2011 avatar

Watchers

ife-xh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.