我开始研究一些我几周没用过的rails应用程序,尽管我付出了最大的努力,但我还是无法运行rails服务器。我的所有应用都会发生这种情况。这是我一直在犯的错误。
Ignoring RedCloth-4.2.9 because its extensions are not built. Try: gem pristine RedCloth --version 4.2.9
Ignoring bcrypt-3.1.10 because its extensions are not built. Try: gem pristine bcrypt --version 3.1.10
Ignoring bcrypt-3.1.9 because its extensions are not built. Try: gem pristine bcrypt --version 3.1.9
Ignoring binding_of_caller-0.7.3.pre1 because its extensions are not built. Try: gem pristine binding_of_caller --version 0.7.3.pre1
Ignoring binding_of_caller-0.7.2 because its extensions are not built. Try: gem pristine binding_of_caller --version 0.7.2
Ignoring byebug-4.0.5 because its extensions are not built. Try: gem pristine byebug --version 4.0.5
Ignoring byebug-3.4.0 because its extensions are not built. Try: gem pristine byebug --version 3.4.0
Ignoring debug_inspector-0.0.2 because its extensions are not built. Try: gem pristine debug_inspector --version 0.0.2
Ignoring eventmachine-1.0.5 because its extensions are not built. Try: gem pristine eventmachine --version 1.0.5
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring fast-stemmer-1.0.2 because its extensions are not built. Try: gem pristine fast-stemmer --version 1.0.2
Ignoring ffi-1.9.9 because its extensions are not built. Try: gem pristine ffi --version 1.9.9
Ignoring ffi-1.9.8 because its extensions are not built. Try: gem pristine ffi --version 1.9.8
Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7
Ignoring json-1.8.2 because its extensions are not built. Try: gem pristine json --version 1.8.2
Ignoring nokogiri-1.6.6.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.6.2
Ignoring nokogiri-1.6.5 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.5
Ignoring pg-0.18.2 because its extensions are not built. Try: gem pristine pg --version 0.18.2
Ignoring pg-0.17.1 because its extensions are not built. Try: gem pristine pg --version 0.17.1
Ignoring posix-spawn-0.3.11 because its extensions are not built. Try: gem pristine posix-spawn --version 0.3.11
Ignoring rdiscount-2.1.7 because its extensions are not built. Try: gem pristine rdiscount --version 2.1.7
Ignoring redcarpet-3.3.2 because its extensions are not built. Try: gem pristine redcarpet --version 3.3.2
Ignoring redcarpet-3.2.1 because its extensions are not built. Try: gem pristine redcarpet --version 3.2.1
Ignoring sqlite3-1.3.11 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.11
Ignoring sqlite3-1.3.10 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.10
Ignoring sqlite3-1.3.9 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.9
Ignoring thin-1.5.1 because its extensions are not built. Try: gem pristine thin --version 1.5.1
Ignoring unf_ext-0.0.7.1 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.1
Ignoring yajl-ruby-1.2.1 because its extensions are not built. Try: gem pristine yajl-ruby --version 1.2.1
Ignoring RedCloth-4.2.9 because its extensions are not built. Try: gem pristine RedCloth --version 4.2.9
Ignoring bcrypt-3.1.10 because its extensions are not built. Try: gem pristine bcrypt --version 3.1.10
Ignoring bcrypt-3.1.9 because its extensions are not built. Try: gem pristine bcrypt --version 3.1.9
Ignoring binding_of_caller-0.7.3.pre1 because its extensions are not built. Try: gem pristine binding_of_caller --version 0.7.3.pre1
Ignoring binding_of_caller-0.7.2 because its extensions are not built. Try: gem pristine binding_of_caller --version 0.7.2
Ignoring byebug-4.0.5 because its extensions are not built. Try: gem pristine byebug --version 4.0.5
Ignoring byebug-3.4.0 because its extensions are not built. Try: gem pristine byebug --version 3.4.0
Ignoring debug_inspector-0.0.2 because its extensions are not built. Try: gem pristine debug_inspector --version 0.0.2
Ignoring eventmachine-1.0.5 because its extensions are not built. Try: gem pristine eventmachine --version 1.0.5
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring fast-stemmer-1.0.2 because its extensions are not built. Try: gem pristine fast-stemmer --version 1.0.2
Ignoring ffi-1.9.9 because its extensions are not built. Try: gem pristine ffi --version 1.9.9
Ignoring ffi-1.9.8 because its extensions are not built. Try: gem pristine ffi --version 1.9.8
Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7
Ignoring json-1.8.2 because its extensions are not built. Try: gem pristine json --version 1.8.2
Ignoring nokogiri-1.6.6.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.6.2
Ignoring nokogiri-1.6.5 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.5
Ignoring pg-0.18.2 because its extensions are not built. Try: gem pristine pg --version 0.18.2
Ignoring pg-0.17.1 because its extensions are not built. Try: gem pristine pg --version 0.17.1
Ignoring posix-spawn-0.3.11 because its extensions are not built. Try: gem pristine posix-spawn --version 0.3.11
Ignoring rdiscount-2.1.7 because its extensions are not built. Try: gem pristine rdiscount --version 2.1.7
Ignoring redcarpet-3.3.2 because its extensions are not built. Try: gem pristine redcarpet --version 3.3.2
Ignoring redcarpet-3.2.1 because its extensions are not built. Try: gem pristine redcarpet --version 3.2.1
Ignoring sqlite3-1.3.11 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.11
Ignoring sqlite3-1.3.10 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.10
Ignoring sqlite3-1.3.9 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.9
Ignoring thin-1.5.1 because its extensions are not built. Try: gem pristine thin --version 1.5.1
Ignoring unf_ext-0.0.7.1 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.1
Ignoring yajl-ruby-1.2.1 because its extensions are not built. Try: gem pristine yajl-ruby --version 1.2.1
/Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `require': incompatible library version - /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/sqlite3-1.3.11/lib/sqlite3/sqlite3_native.bundle (fatal)
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `block in require'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/activesupport-4.1.7/lib/active_support/dependencies.rb:247:in `require'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/sqlite3-1.3.11/lib/sqlite3.rb:6:in `rescue in <top (required)>'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/sqlite3-1.3.11/lib/sqlite3.rb:2:in `<top (required)>'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `require'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `block (2 levels) in require'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
from /Users/danieluribe/code/jehrni/config/application.rb:14:in `<top (required)>'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:79:in `require'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:79:in `block in server'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:76:in `server'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/railties-4.1.7/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/danieluribe/code/jehrni/bin/rails:8:in `require'
from /Users/danieluribe/code/jehrni/bin/rails:8:in `<top (required)>'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/spring-1.3.6/lib/spring/client/rails.rb:28:in `load'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/spring-1.3.6/lib/spring/client/rails.rb:28:in `call'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/spring-1.3.6/lib/spring/client/command.rb:7:in `call'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/spring-1.3.6/lib/spring/client.rb:26:in `run'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/spring-1.3.6/bin/spring:48:in `<top (required)>'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/spring-1.3.6/lib/spring/binstub.rb:11:in `load'
from /Users/danieluribe/.rvm/gems/ruby-2.1.4/gems/spring-1.3.6/lib/spring/binstub.rb:11:in `<top (required)>'
from /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/danieluribe/code/jehrni/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
我在过去几周内所做的唯一事情就是安装Jekyll并使用SQL。我很难找到SQL(我发现衍生文件)所以我怀疑我可能已经卸载了它。
我尝试了捆绑安装,并尝试更新宝石和卷曲,没有运气。我考虑过爆炸rvm,但对此没有信心因为我发生了更糟糕的事故。任何帮助将不胜感激。
答案 0 :(得分:1)
按照给定的步骤会有帮助。
1: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
2: \curl -sSL https://get.rvm.io | bash
#install RVM (development version)
3: rvm get head
#确保RVM最新
4: rvm install ruby
#将安装最新版本的ruby
5: rvm list
#列出安装rubies将获得由RVM安装的ruby版本
6: rvm use < ruby-version >
#for instances ruby-1.9.3-p125
7: gem install rails
会工作!!!
答案 1 :(得分:1)
我遇到了完全相同的问题,并且在终端中运行gem pristine --all
会立即解决问题并且我能够运行rails server
。
答案 2 :(得分:1)
使用rbenv升级我的Rails项目的ruby版本后,我遇到了问题。 SELECT m.*, p.nome AS nomeprocedimento
FROM medicos AS m
LEFT JOIN medicoprocedimento AS mp ON m.id = mp.medicoid
LEFT JOIN procedimentos AS p ON mp.procedimentoid = p.id
WHERE m.id = 123
对我不起作用,但删除SELECT m.*, p.nome AS nomeprocedimento
FROM medicos AS m
LEFT JOIN medicoprocedimento AS mp ON m.id = mp.medicoid AND mp.medicoid = 123
LEFT JOIN procedimentos AS p ON mp.procedimentoid = p.id
WHERE m.id = 123
(这是我为Rails应用程序安装项目依赖项的地方)并运行gem pristine --all
为我清除了它:
vendor/bundle