Closed ghost closed 12 years ago
I too am receiving this error under ArchLinux x86
Here is the error output for me under ruby 1.9.2
warmwaffles@~/Code/octopress (master): rake generate
## Generating Site with Jekyll
identical source/stylesheets/screen.css
Configuration from /home/warmwaffles/Code/octopress/_config.yml
Building site: source -> public
File "<string>", line 1
import sys; print sys.executable
^
SyntaxError: invalid syntax
sh: - : invalid option
Usage: sh [GNU long option] [option] ...
sh [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--protected
--rcfile
--restricted
--verbose
--version
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option
sh: - : invalid option
Usage: sh [GNU long option] [option] ...
sh [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--protected
--rcfile
--restricted
--verbose
--version
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option
/home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/ffi-1.0.11/lib/ffi/library.rb:121:in `block in ffi_lib': Could not open library 'lib.so': lib.so: cannot open shared object file: No such file or directory (LoadError)
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/ffi-1.0.11/lib/ffi/library.rb:88:in `map'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/ffi-1.0.11/lib/ffi/library.rb:88:in `ffi_lib'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/rubypython-0.5.3/lib/rubypython/python.rb:29:in `<module:Python>'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/rubypython-0.5.3/lib/rubypython/python.rb:21:in `<top (required)>'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/rubypython-0.5.3/lib/rubypython.rb:261:in `load'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/rubypython-0.5.3/lib/rubypython.rb:261:in `reload_library'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/rubypython-0.5.3/lib/rubypython.rb:104:in `start'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/pygments.rb-0.2.4/lib/pygments/ffi.rb:8:in `start'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/pygments.rb-0.2.4/lib/pygments/ffi.rb:82:in `highlight'
from /home/warmwaffles/Code/octopress/plugins/pygments_code.rb:24:in `pygments'
from /home/warmwaffles/Code/octopress/plugins/pygments_code.rb:14:in `highlight'
from /home/warmwaffles/Code/octopress/plugins/backtick_code_block.rb:37:in `block in render_code_block'
from /home/warmwaffles/Code/octopress/plugins/backtick_code_block.rb:13:in `gsub'
from /home/warmwaffles/Code/octopress/plugins/backtick_code_block.rb:13:in `render_code_block'
from /home/warmwaffles/Code/octopress/plugins/octopress_filters.rb:12:in `pre_filter'
from /home/warmwaffles/Code/octopress/plugins/octopress_filters.rb:27:in `pre_render'
from /home/warmwaffles/Code/octopress/plugins/post_filters.rb:112:in `block in pre_render'
from /home/warmwaffles/Code/octopress/plugins/post_filters.rb:111:in `each'
from /home/warmwaffles/Code/octopress/plugins/post_filters.rb:111:in `pre_render'
from /home/warmwaffles/Code/octopress/plugins/post_filters.rb:166:in `do_layout'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/jekyll-0.11.2/lib/jekyll/post.rb:189:in `render'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/jekyll-0.11.2/lib/jekyll/site.rb:193:in `block in render'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/jekyll-0.11.2/lib/jekyll/site.rb:192:in `each'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/jekyll-0.11.2/lib/jekyll/site.rb:192:in `render'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/jekyll-0.11.2/lib/jekyll/site.rb:40:in `process'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/gems/jekyll-0.11.2/bin/jekyll:250:in `<top (required)>'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/bin/jekyll:19:in `load'
from /home/warmwaffles/.rvm/gems/ruby-1.9.2-p290@octopress/bin/jekyll:19:in `<main>'
I have a little hack to avoid rubypython and use a remote API at http://pygmentize.herokuapp.com/. Since you're presumably generating your production site and not rendering each page in just-in-time, the latency shouldn't be a problem.
http://jasongarber.com/blog/2012/01/10/deploying-octopress-to-heroku-with-a-custom-buildpack/
@jgarber Thanks, I'll take a look into it. On Ubuntu and Linux Mint, I don't receive this error. It seems to only be secluded to the ArchLinux group.
@jgarber I tried your solution (I run Archlinux 64-bit) and it did the trick. However, it is still a workaround but thanks a lot, it will do the trick until a proper fix in rubypython.
As this is a rubypython issue, I expect you'll want to post this issue there. I'll close this here since it isn't something I can fix on Octopress.
I encountered an issue similar to https://github.com/imathis/octopress/issues/251 under Archlinux X86-64. Archlinux does not have a
lib64
. It has/usr/lib
and/usr/lib32
...Also, The default python interpreter is python3, so I addedRubyPython.configure :python_exe => 'python2.7'
inpygments_code.rb.
I read https://github.com/tmm1/pygments.rb/issues/10. Creating symbol link, as suggested in that issue, cannot resolve my problem , since all
libpy*
have already under/usr/lib
.I have tried both
ruby-1.9.2-head
andruby-1.9.3-head
, both produced similar error message.My
_config.yml
(Basically default configuration)Error message (
ruby-1.9.3-head
)gem infomation (
rubypython
is 0.5.3)