V
V
Vyacheslav Alekseev2014-10-16 15:38:03
Ruby on Rails
Vyacheslav Alekseev, 2014-10-16 15:38:03

[Ruby, Thin] Why won't thin start as a service?

Good afternoon!
Installed rvm, ruby ​​and thin on Ubuntu, did a thin install and wrapped it in wrapper
Now when I run sudo service thin start I get an error:

/usr/bin/env: ruby_executable_hooks: No such file or directory

Google says do
gem install executable_hooks
gem regenerate_binstubs

Result:
try also: gem pristine --binstubs
bundler 1.7.3
erubis 2.7.0
executable-hooks 1.3.2
magic_encoding 0.0.2
rack 1.5.2
railties 4.1.6
rake 10.3.2
rake 10.1.0
rdoc 4.1.0
shotgun 0.9
sprockets 3.0 .0.beta.2
thin 1.6.3
thor 0.19.1
tilt 1.4.1

And thin also throws an error
/usr/bin/env: ruby_executable_hooks: No such file or directory

How to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Alekseev, 2014-10-16
@AlexeevVyacheslav

Solved the problem:

$ ln -s `which ruby_executable_hooks` /usr/bin/ruby_executable_hooks
$ ln -s `which ruby` /usr/bin/ruby

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question