블로그 엔진/생성기로 Octopress (jekyll)를 사용합니다.Octopress에 코드 크래시가 포함됨
{% include_code foo.bar %}
구문과 함께 코드 조각을 포함 시키면 완전히 충돌합니다. 다른 구문으로 마크 업 내에 코드를 작성하는 경우에도 마찬가지입니다.
``` ruby
puts foo
```
언어를 지정할 때만 나타납니다.
나는 비슷한 질문에와 답변을 수정하는 방법을 모르는 여기에 유래에서 해결책에 저를 인도하지 않았다! 패치 보석은 작동하지 않았고, RubyPython::Interpreter.configure
과 함께 플러그인을 삽입하는 등의 작업도하지 않았습니다.
저는 ArchLinux를 사용하고 있습니다.
~/blog$ rake generate
## Generating Site with Jekyll
unchanged sass/screen.scss
Configuration from /home/matthias/blog/_config.yml
/usr/lib/ruby/gems/1.9.1/gems/blankslate-3.1.2/lib/blankslate.rb:51: warning: undefining `object_id' may cause serious problems
Building site: source -> public
File "<string>", line 1
import sys; print sys.executable
^
SyntaxError: invalid syntax
sh: - : Ungültige Option
Benutzung: sh [Lange GNU Option] [Option] ...
sh [Lange GNU Option] [Option] Script-Datei ...
Lange GNU Optionen:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--protected
--rcfile
--restricted
--verbose
--version
Shell-Optionen:
-irsD oder -c Kommando (Nur Aufruf)
-abefhkmnptuvxBCHP oder Option -o
sh: - : Ungültige Option
Benutzung: sh [Lange GNU Option] [Option] ...
sh [Lange GNU Option] [Option] Script-Datei ...
Lange GNU Optionen:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--protected
--rcfile
--restricted
--verbose
--version
Shell-Optionen:
-irsD oder -c Kommando (Nur Aufruf)
-abefhkmnptuvxBCHP oder Option -o
/usr/lib/ruby/gems/1.9.1/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 /usr/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/lib/ffi/library.rb:88:in `map'
from /usr/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/lib/ffi/library.rb:88:in `ffi_lib'
from /usr/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython/python.rb:29:in `<module:Python>'
from /usr/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython/python.rb:21:in `<top (required)>'
from /usr/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython.rb:261:in `load'
from /usr/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython.rb:261:in `reload_library'
from /usr/lib/ruby/gems/1.9.1/gems/rubypython-0.5.3/lib/rubypython.rb:104:in `start'
from /usr/lib/ruby/gems/1.9.1/gems/pygments.rb-0.2.13/lib/pygments/ffi.rb:8:in `start'
from /usr/lib/ruby/gems/1.9.1/gems/pygments.rb-0.2.13/lib/pygments/ffi.rb:82:in `highlight'
from /home/matthias/blog/plugins/pygments_code.rb:24:in `pygments'
from /home/matthias/blog/plugins/pygments_code.rb:14:in `highlight'
from /home/matthias/blog/plugins/backtick_code_block.rb:37:in `block in render_code_block'
from /home/matthias/blog/plugins/backtick_code_block.rb:13:in `gsub'
from /home/matthias/blog/plugins/backtick_code_block.rb:13:in `render_code_block'
from /home/matthias/blog/plugins/octopress_filters.rb:12:in `pre_filter'
from /home/matthias/blog/plugins/octopress_filters.rb:28:in `pre_render'
from /home/matthias/blog/plugins/post_filters.rb:112:in `block in pre_render'
from /home/matthias/blog/plugins/post_filters.rb:111:in `each'
from /home/matthias/blog/plugins/post_filters.rb:111:in `pre_render'
from /home/matthias/blog/plugins/post_filters.rb:166:in `do_layout'
from /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/post.rb:189:in `render'
from /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/site.rb:193:in `block in render'
from /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/site.rb:192:in `each'
from /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/site.rb:192:in `render'
from /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/site.rb:40:in `process'
from /usr/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/bin/jekyll:250:in `<top (required)>'
from /usr/bin/jekyll:19:in `load'
from /usr/bin/jekyll:19:in `<main>'
~/blog$
이렇게하면 '헤더를 가져 오지 못했습니다.'라는 또 다른 오류가 발생합니다. (MentosError)'. – musicmatze