未定义的方法`突出显示';Python+;Pygments

未定义的方法`突出显示';Python+;Pygments,python,ruby-on-rails-3,pygments,Python,Ruby On Rails 3,Pygments,我在RHEL6i386上使用了Python2.6.6和Pygments版本1.4,但当我尝试在gitlabhq中创建新项目时,总是会收到此错误消息 gem列表显示:pygments.rb(0.2.3),rubypython(0.5.1)等等 运行rails s-e生产后我在stdout中看到以下错误。 此错误首先发生: Completed 500 Internal Server Error in 595ms ActionView::Template::Error (Could not open

我在RHEL6i386上使用了
Python2.6.6
Pygments版本1.4
,但当我尝试在gitlabhq中创建新项目时,总是会收到此错误消息

gem列表显示:
pygments.rb(0.2.3)
rubypython(0.5.1)
等等

运行
rails s-e生产后
我在stdout中看到以下错误。 此错误首先发生:

Completed 500 Internal Server Error in 595ms

ActionView::Template::Error (Could not open library 'lib.so': lib.so: cannot open shared     object file: No such file or directory):
1: <% bash_lexer = Pygments::Lexer[:bash] %>
2: <div class="">
3:   <div class="git-empty">
4:     <h2>Git global setup:</h2>
app/views/projects/empty.html.erb:1:in   
`_app_views_projects_empty_html_erb___391147148_103534650'
app/controllers/projects_controller.rb:66:in `show'
在595ms内完成500个内部服务器错误
ActionView::Template::Error(无法打开库'lib.so':lib.so:无法打开共享对象文件:没有这样的文件或目录):
1: 
2: 
三:
4:Git全局设置:
app/views/projects/empty.html.erb:1:in
`_应用程序\u视图\u项目\u空\u html\u erb\uuuuuuuuuuuuuuuuuuu391147148\uu103534650'
app/controllers/projects\u controller.rb:66:in'show'
然后我看到:

ActionView::Template::Error (undefined method `highlight' for nil:NilClass):
7: git config --global user.email  "#{current_user.email}"
8: eos
9: %>
10:     <%= raw bash_lexer.highlight(setup_str) %>
11:     <br />
12:     <br />
13:     <h2>Next steps:</h2>
app/views/projects/empty.html.erb:10:in `_app_views_projects_empty_html_erb___460979452__619384988'
app/controllers/projects_controller.rb:66:in `show'
ActionView::Template::Error(nil:NilClass的未定义方法“highlight”):
7:git config--global user.email“#{current_user.email}”
8:eos
9: %>
10:     
11:
12:
13:下一步: app/views/projects/empty.html.erb:10:in`_app_views_projects_empty_html_erb_460979452__619384988' app/controllers/projects\u controller.rb:66:in'show'
链接器错误,修复:
yum-install-python-devel

听起来更像是
bash\u-lexer
的问题,而不是
highlight()
。。。