Rake在Rails app Ubuntu上流产

时间:2016-01-27 22:03:06

标签: ruby-on-rails ubuntu rake passenger

运行$ rake时出现以下错误:

$ rake
rake aborted!
LoadError: cannot load such file -- redcarpet.so
/var/www/my_app/code/vendor/bundle/ruby/2.2.0/gems/redcarpet-3.2.3/lib/redcarpet.rb:1:in `require'
/var/www/my_app/code/vendor/bundle/ruby/2.2.0/gems/redcarpet-3.2.3/lib/redcarpet.rb:1:in `<top (required)>'
/var/www/my_app/code/config/application.rb:7:in `<top (required)>'
/var/www/my_app/code/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

Ruby -v:2.2.3
rbenv local / global:2.2.3

Rails -v:4.2.4

我也尝试用以下方法重新安装redcarpet gem:

sudo gem install redcarpet 
Fetching: redcarpet-3.3.4.gem (100%)
Building native extensions.  This could take a while...
Successfully installed redcarpet-3.3.4
1 gem installed 

哪个运行正常。关于什么会导致这种情况中止的任何想法?

1 个答案:

答案 0 :(得分:0)

捆绑包是否在本地安装,再次将其推送到git,然后进行封面生产部署。这似乎因某种原因而解决了。现在继续讨论我所有的数据库错误。