-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pygments_ext not found #7
Comments
The C extension is not included with the gem. You can only use the FFI interface. |
hmm, ok, well commenting out
yes, a fun set of debugging this is going to be :P any ideas? |
Weird. Can you try using the library instead of running the benchmark? Either |
same thing:
i was trying to get octopress syntax highlighting working & i boiled it down to this... :-/ i'm not sure what the deal is |
What linux distro is this on? |
Sounds like this line is failing: https://github.com/halostatue/rubypython/blob/master/lib/rubypython/pythonexec.rb#L16 Can you try doing that via irb or similar? |
32bit archlinux... and i keep it pretty up to date also. i take it there is probably some fun library that might have broken backwards-compatibility on the near-bleeding-edge of things? ahh the joys of being fully up-to-date :P |
ahh, i think i see:
python 2.x is named |
require 'pygments'
RubyPython.configure :python_exe => 'python2'
puts Pygments.highlight(File.read(__FILE__), :lexer => 'ruby') |
hmm... sticking that into a file and running it gives me:
so that's not it :( |
Where is |
|
I'm a arch user as well, I've managed to fix my problem by doing:
Hope this helps :] |
@ngty Thanks man! It's works now! |
@ngty i just tried this, and it works beautifully!!! thank you! |
Strange, I'm sticking to the same problem as @serialhex before and now I'm stuck. Like before I got the issue with finding the correct python exe. After fixing it I still get the missing I test this with ruby -e' require "pygments"; RubyPython.configure :python_exe => "python2.7"; puts Pygments.highlight("1+2", :lexer => "ruby")' UPDATE I found out that the missing lib.so thing comes due a |
hi, when i try to run bench.rb i get this:
i manually looked for the file and there is none. from what i understand this uses embedded python, so i shouldn't need python installed (though it is). just so you know, i'm running archlinux & rvm with ruby 1.9.2 if you need any other information let me know
hex
The text was updated successfully, but these errors were encountered: