Linux下Sublime 安装sublimeClang插件

在linux下Sublime 的Clang插件没法工作,提示错误:Unfortunately ctypes can’t be imported, so SublimeClang will not work.

curl -kL http://xrl.us/pythonbrewinstall | bash source "HOME/.pythonbrew/etc/bashrc" pythonbrew install --configure="--enable-unicode=ucs4" 2.6
ln -sHOME/.pythonbrew/pythons/Python-2.6/lib/python2.6/ /lib/python2.6
emerge -av clang</pre> </blockquote> <blockquote> <pre> cd HOME/.config/sublime-text-2/Packages/SublimeClang/src mkdir build && cd build
cmake .. make

搞定!

PS.要用Python2.6版本的。如果不是请注意。

0 Comments

Leave a Reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax