rails server starting error

158 views
Skip to first unread message

Benyamin Pm

unread,
Jan 24, 2016, 1:42:11 PM1/24/16
to rubyonra...@googlegroups.com
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?

--
Posted via http://www.ruby-forum.com/.

James Jelinek (shakycode)

unread,
Jan 24, 2016, 1:44:52 PM1/24/16
to rubyonra...@googlegroups.com
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
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/09e2e5e06e013c7a1d430113a39d13ba%40ruby-forum.com.
> For more options, visit https://groups.google.com/d/optout.

Benyamin Pm

unread,
Jan 24, 2016, 1:57:48 PM1/24/16
to rubyonra...@googlegroups.com
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=>
Reply all
Reply to author
Forward
0 new messages