2017-08-24 82 views
0

我想在我的系统上启动一个Ruby on Rails项目。我已经安装jrubythis链接和导轨从railsinstaller[dot]org
现在,在做捆绑安装时它给了我:尝试bundle install jruby-openssl或尝试bundle updatejruby-openssl version locked at 0.0.9 in your lock file
执行bundle update后,它一直显示jruby-openssl相关警告。
而且,当我开始轨服务器正是在这越来越来袭:JRuby加载错误

cmd screenshot

没有其他人遇到了类似的问题呢?
我在做什么错?
我还包括gem filelock file
编辑:宝石文件

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 
gem 'rails', '4.2.7' 
# Use jdbcmysql as the database for Active Record 
gem 'activerecord-jdbcmysql-adapter' 
# Use SCSS for stylesheets 
gem 'sass-rails', '~> 5.0' 
# Use Uglifier as compressor for JavaScript assets 
gem 'uglifier', '>= 1.3.0' 
# Use CoffeeScript for .coffee assets and views 
gem 'coffee-rails', '~> 4.1.0' 
# See js#readme for more supported runtimes 
gem 'therubyrhino' 
# Use jquery as the JavaScript library 
gem 'jquery-rails' 
# Turbolinks makes following links in your web application faster. Read more: 
gem 'turbolinks' 
# Build JSON APIs with ease. 
gem 'jbuilder', '~> 2.0' 
# bundle exec rake doc:rails generates the API under doc/api. 
gem 'sdoc', '~> 0.4.0', group: :doc 

# Use ActiveModel has_secure_password 
# gem 'bcrypt', '~> 3.1.7' 

# Use Unicorn as the app server 
# gem 'unicorn' 

# Use Capistrano for deployment 
# gem 'capistrano-rails', group: :development 


# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 

gem 'activeresource', '~> 4.1' 

gem 'jruby-openssl' 

gem 'faker', :groups => [:development, :test] 

gem 'apipie-rails' 

gem 'rest-client' 

gem 'rest-client-components' 

gem 'bootstrap-sass' 

gem 'jquery-ui-rails', '~> 5.0', '>= 5.0.5' 
gem 'font-awesome-sass', '~> 4.7.0' 

gem 'activerecord-session_store' 

gem 'active_model_serializers', '~> 0.10.2' 

gem 'simple_token_authentication', '~> 1.0' 

gem 'legacy_model_generator', '~> 0.2', :group => :development 

gem 'devise', '~> 4.2' 

gem 'cancancan', '~> 1.10' 

gem "espinita" 

gem 'kaminari' 

gem 'warbler', '~>2.0', :group => :development 

gem 'rspec-rails', :groups => [:development, :test] 

gem 'composite_primary_keys' 

gem 'rack-cors' 
gem 'graphql' 
gem 'graphiql-rails' 

group :test do 
    gem 'database_cleaner' 
    gem 'cucumber-rails', :require => false 
end 

gem 'inifile', '~> 3.0' 

gem 'angular_rails_csrf' 

gem 'health_check' 
+0

分享你的Gemfile。 –

回答

0

railsinstaller.org下载包括一个版本的MRI Ruby运行的。因此,当您运行rails c时,您实际上正在MRI Ruby中运行Rails控制台,而不是JRuby;因此与宝石的错误有所不同。

你可以尝试以下两种情况之一:

  • 运行命令jruby -S rails c。这将确保它以Ruby而不是MRI运行。
  • 改变您的命令路径,以便JRuby的ruby命令版本具有比MRI更高的优先级。 (对不起,我不能帮你在这里,因为我不说话的Windows。)

在Linux和MacOS,你可以选择使用一个Ruby经理如rvmrbenv。我不知道是否有类似的工具可以在Windows上运行。