rails server starting error

hi there.

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 `<main>'

anyone can help me please?

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.

-James

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 `<main>'