Cannot load such a file - thin (LoadError) when starting rawn private_pub.ru -s thin -E production command

I mean the pub railscast tutorial and followed all the steps correctly, but during the execution of the last command i.e.

rackup private_pub.ru -s thin -E production

to start the faye server, I get the following error:

/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- thin (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/handler/thin.rb:1:in `<top (required)>'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/handler.rb:20:in `const_get'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/handler.rb:20:in `block in get'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/handler.rb:20:in `each'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/handler.rb:20:in `inject'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/handler.rb:20:in `get'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:268:in `server'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:264:in `start'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:141:in `start'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/bin/rackup:4:in `<top (required)>'
from /usr/local/bin/rackup:19:in `load'
+5
source share
2 answers

Have you already installed thin?

You can set the gem using the command gem:gem install thin

Or use the bundler, add thinin Gemfilethen run bundle install(of course, you will need a bundlergem for this)

+12
source

: . : 1. sudo gem install faye, 2. sudo gem install thin.

, .

+2

All Articles