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.

preload imagepreload image