[quote=“mnus”]Regarding Linux errors
I’m running Ubuntu 11.10 64bit. I was able to get this plugin working by symlinking /usr/lib/python2.6/ to sublime2’s lib directory, and recompiling libclang.so to target a 64bit architecture.
1.) Install python2.6 via apt-get or synpactic.
2.) Backup python26.zip in sublime2’s lib directory (just for safe measure). I did mv “python26.zip backup.python26.zip”
3.) Symlink /usr/lib/python2.6/ to sublime2’s lib directory.
4.) Download and compile clang. (You can probably get away with installing clang from the ubuntu repos)
5.) Copy libclang.so from the installed location into /.config/sublime-text-2/Packages/SublimeClang/
I’m still left with the issue of Clang not being able to find “stdarg.h”, but I believe that’s a clang bug and has nothing to do with this plugin.
Note to the the author of this plugin: It’s probably best not to include the compiled library for linux in your repository, given that each architecture requires its own build. It may be a better idea just to have a text file instructing linux users to build and copy libclang themselves. Thanks for this awesome plugin![/quote]
I’m using openSUSE 12.1 with python2.7. And I did the symlink by running the command:
# ln -s /usr/lib/python2.7/ /usr/share/SublimeText2/lib/
It did work for the plugin, as the “ctypes” error message no longer appear.
However, other problems arose after I’ve done the linkage. When I start st2 from Konsole(/usr/share/SublimeText2/sublime_text), an error message is shown in the Konsole:
'import site' failed; use -v for traceback
while the st2 is still able to run.
And the terminal inside st2 shows much more error messages:
Traceback (most recent call last):
File "./sublime_plugin.py", line 1, in <module>
import os
ImportError: No module named os
plugin init time: 0.116299
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
pre session restore time: 0.213486
using gamma: 1 (err: 0)
AttributeError: 'module' object has no attribute 'on_activated'
The Clang did not work well once I did the linkage, and it’s the same when I did the linkage to python2.6 in another folder. So the solution seems dose not work at my laptop.
Hope the problem could be solved in next update~