Script/rails server thin failed

Greetings,

I have my rails 3 newly installed, everything seemed working except I
tried start thin server:

~/test/rails3_1.9$ script/rails server thin
Exiting
/var/lib/gems/1.9.1/gems/rack-1.2.1/lib/rack/handler/thin.rb:1:in
require': no such file to load -- thin (LoadError) from /var/lib/gems/1.9.1/gems/rack-1.2.1/lib/rack/handler/thin.rb:1:in<top (required)>’
from /var/lib/gems/1.9.1/gems/rack-1.2.1/lib/rack/handler.rb:17:in
const_get' from /var/lib/gems/1.9.1/gems/rack-1.2.1/lib/rack/handler.rb:17:inblock in get’
from /var/lib/gems/1.9.1/gems/rack-1.2.1/lib/rack/handler.rb:17:in
each' from /var/lib/gems/1.9.1/gems/rack-1.2.1/lib/rack/handler.rb:17:inget’
from /var/lib/gems/1.9.1/gems/rack-1.2.1/lib/rack/server.rb:217:in
server' from /var/lib/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands/server.rb:54:instart’
from
/var/lib/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb:30:in
block in <top (required)>' from /var/lib/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb:27:intap’
from
/var/lib/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb:27:in
<top (required)>' from script/rails:6:inrequire’
from script/rails:6:in `’

I have thin gem installed:
thin (1.2.7)

Could anyone tell me what is the problem? Thanks in advance.

I hope I am not saying something totally wrong and idiotic but here
goes: Is
that Ruby 1.9.1 you are using? If I understand Rails 3 wants either
1.8.7 or
1.9.2. Could that be the problem?

David K. wrote:

I hope I am not saying something totally wrong and idiotic but here
goes: Is
that Ruby 1.9.1 you are using? If I understand Rails 3 wants either
1.8.7 or
1.9.2. Could that be the problem?

Hello David,

ruby 1.9.1 of Debian is actually 1.9.2 and I can run rails using:
/var/lib/gem/1.9.1/bin/thin start to start the thin server.

~/test/rails3_1.9$ ruby1.9.1 -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]

I do not know why.

Interesting. Sorry could not be more help. I did just try installing the
gem
and it runs on my 1.9.2-p0, but I am on a mac.

You have to add thin in the Gemfile file in your rails root, then
“rails server thin” will work fine:

gem ‘thin’

Whithout this, doing a “thin start” inside your rails root should also
work fine.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs