i’m new in ruby on rails.
i using kali linux , i complete the rbenv and all the gems installation.
now i create a demo and when i type this => rails server
i get this error =>
Error! You’ve somehow installed openssl from rubygems.org
Remove openssl from your Gemfile and delete it from your gems
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/key_generator.rb:2:in require': cannot load such file -- openssl (LoadError) from /usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/key_generator.rb:2:in <top (required)>’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/application.rb:5:in require' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/application.rb:5:in <top (required)>’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails.rb:11:in require' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails.rb:11:in <top (required)>’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/server.rb:4:in require' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/server.rb:4:in <top (required)>’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:123:in require' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:123:in require_command!’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:73:in server' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in run_command!’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands.rb:17:in <top (required)>' from bin/rails:4:in require’
from bin/rails:4:in `’
It’s telling you that you installed openssl installed as a gem which is
a system binary and library. Remove that line from your Gemfile and run
bundle again to rebuild your gemset. It should get rid of the error
when launching rails server or rails s.
hi james.
thanks for your reply
i uninstall openssl and type in treminal => bundle install
openssl error is gone.
but when i type this=> rails server
again i get this=>
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/key_generator.rb:2:in require': cannot load such file -- openssl (LoadError) from /usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/key_generator.rb:2:in <top (required)>’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/application.rb:5:in require' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/application.rb:5:in <top (required)>’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails.rb:11:in require' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails.rb:11:in <top (required)>’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/server.rb:4:in require' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/server.rb:4:in <top (required)>’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:123:in require' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:123:in require_command!’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:73:in server' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in run_command!’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands.rb:17:in <top (required)>' from bin/rails:4:in require’
from bin/rails:4:in `’
⬤⬤⬤⬤⬤ and when i remove that line . i get this =>
=> Booting WEBrick
=> Rails 4.2.5 application starting in development on http://localhost:3000
=> Run rails server -h for more startup options
=> Ctrl-C to shutdown server
Exiting
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in require': cannot load such file -- openssl (LoadError) from /usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in block in require’
from
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in load_dependency' from /usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in require’
from
/usr/local/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/session/cookie.rb:1:in <top (required)>' from /usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in require’
from
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in block in require' from /usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in load_dependency’
from
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in require' from /usr/local/lib/ruby/gems/2.3.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/session/cookie_store.rb:3:in <top (required)>’
from
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in require' from /usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in block in require’
from
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in load_dependency' from /usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in require’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/application/configuration.rb:176:in const_get' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/application/configuration.rb:176:in session_store’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/application/default_middleware_stack.rb:47:in block in build_stack' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/application/default_middleware_stack.rb:13:in tap’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/application/default_middleware_stack.rb:13:in build_stack' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/application.rb:513:in default_middleware_stack’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/engine.rb:501:in app' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/application/finisher.rb:34:in block in module:Finisher’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/initializable.rb:30:in instance_exec' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/initializable.rb:30:in run’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/initializable.rb:55:in block in run_initializers' from /usr/local/lib/ruby/2.3.0/tsort.rb:228:in block in tsort_each’
from /usr/local/lib/ruby/2.3.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' from /usr/local/lib/ruby/2.3.0/tsort.rb:431:in each_strongly_connected_component_from’
from /usr/local/lib/ruby/2.3.0/tsort.rb:349:in block in each_strongly_connected_component' from /usr/local/lib/ruby/2.3.0/tsort.rb:347:in each’
from /usr/local/lib/ruby/2.3.0/tsort.rb:347:in call' from /usr/local/lib/ruby/2.3.0/tsort.rb:347:in each_strongly_connected_component’
from /usr/local/lib/ruby/2.3.0/tsort.rb:226:in tsort_each' from /usr/local/lib/ruby/2.3.0/tsort.rb:205:in tsort_each’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/initializable.rb:54:in run_initializers' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/application.rb:352:in initialize!’
from /root/Desktop/Rails/demo/config/environment.rb:5:in <top (required)>' from /root/Desktop/Rails/demo/config.ru:3:in require’
from /root/Desktop/Rails/demo/config.ru:3:in block in <main>' from /usr/local/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in instance_eval’
from
/usr/local/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in initialize' from /root/Desktop/Rails/demo/config.ru:in new’
from /root/Desktop/Rails/demo/config.ru:in <main>' from /usr/local/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in eval’
from
/usr/local/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in new_from_string' from /usr/local/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in parse_file’
from
/usr/local/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/server.rb:299:in build_app_and_options_from_config' from /usr/local/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/server.rb:208:in app’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/server.rb:61:in app' from /usr/local/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/server.rb:336:in wrapped_app’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/server.rb:139:in log_to_stdout' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/server.rb:78:in start’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:80:in block in server' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:75:in tap’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:75:in server' from /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in run_command!’
from
/usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.5/lib/rails/commands.rb:17:in <top (required)>' from bin/rails:4:in require’
from bin/rails:4:in `’
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.