-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/usr/bin/env: ruby_executable_hooks: No such file or directory #1
Comments
Hi there,
FYI: I just moved from Venezuela to Spain and still trying to get a lot of
things in order (and with the corona-thing this have been more difficult).
I remember I had to modify the thin init service by exporting some
variables. Take a look (you will have to adapt it):
#!/bin/sh
### BEGIN INIT INFO
# Provides: thin
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: thin initscript
# Description: thin
### END INIT INFO
# Original author: Forrest Robertson
# Do NOT "set -e"
DAEMON=/usr/local/rvm/gems/ruby-1.9.3-p551/bin/thin
SCRIPT_NAME=/etc/init.d/thin
CONFIG_PATH=/etc/thin
source /etc/profile.d/rvm.sh
source /etc/bashrc
source /etc/profile
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
case "$1" in
start)
export GEM_HOME=/usr/local/rvm/gems/ruby-1.9.3-p551
export
GEM_PATH=/usr/local/rvm/gems/ruby-1.9.3-p551:/usr/local/rvm/gems/ruby-1.9.3-p551@global
export IRBRC=/usr/local/rvm/rubies/ruby-1.9.3-p551/.irbrc
export MY_RUBY_HOME=/usr/local/rvm/rubies/ruby-1.9.3-p551
export
PATH=/usr/local/rvm/gems/ruby-1.9.3-p551/bin:/usr/local/rvm/gems/ruby-1.9.3-p551@global
/bin:/usr/local/rvm/rubies/ruby-1.9.3-p551/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/localexport:/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/rvm/bin:/root/bin
export rvm_bin_path=/usr/local/rvm/bin
export rvm_path=/usr/local/rvm
export rvm_rubygems_path=/usr/local/rvm/rubygems
$DAEMON start --all $CONFIG_PATH
;;
stop)
$DAEMON stop --all $CONFIG_PATH
;;
restart)
export GEM_HOME=/usr/local/rvm/gems/ruby-1.9.3-p551
export
GEM_PATH=/usr/local/rvm/gems/ruby-1.9.3-p551:/usr/local/rvm/gems/ruby-1.9.3-p551@global
export IRBRC=/usr/local/rvm/rubies/ruby-1.9.3-p551/.irbrc
export MY_RUBY_HOME=/usr/local/rvm/rubies/ruby-1.9.3-p551
export
PATH=/usr/local/rvm/gems/ruby-1.9.3-p551/bin:/usr/local/rvm/gems/ruby-1.9.3-p551@global
/bin:/usr/local/rvm/rubies/ruby-1.9.3-p551/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/localexport:/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/rvm/bin:/root/bin
export rvm_bin_path=/usr/local/rvm/bin
export rvm_path=/usr/local/rvm
export rvm_rubygems_path=/usr/local/rvm/rubygems
$DAEMON restart --all $CONFIG_PATH
;;
*)
echo "Usage: $SCRIPT_NAME {start|stop|restart}" >&2
exit 3
;;
esac
I wont be able to fully get into my recipes for some months until I get all
my papers and other stuff here. Good luck
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Libre
de virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
El lun., 30 mar. 2020 a las 0:12, Amit Kumar Mishra (<
notifications@github.com>) escribió:
… hello
i tried the install
just did one tweak
used rvm to update the ruby version as the gem required ruby version of
2.3.0
then when i do the service thin start
it gives this error
/usr/bin/env: ruby_executable_hooks: No such file or directory
how do i proceed
i already had 3 sleepless night, but could not configure out
thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIN3A63TM7YWBHA56JXIATRJ7BTBANCNFSM4LWETUWA>
.
--
Saludos,
Reynaldo Martinez
TigerLinux@Gmail.com
http://tigerlinux.github.io
https://github.com/tigerlinux
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello
i tried the install
just did one tweak
used rvm to update the ruby version as the gem required ruby version of 2.3.0
then when i do the service thin start
it gives this error
/usr/bin/env: ruby_executable_hooks: No such file or directory
how do i proceed
i already had 3 sleepless night, but could not configure out
thanks
The text was updated successfully, but these errors were encountered: