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

Hi

I am getting the error “/usr/bin/env: ruby: No such file or directory”
while trying to create a host in opennebula. ruby is one of the gems
required to install opennebula.

Can anyone help me on this

thanks in advance

regards
imaya

check your shebang line, it should be
“#! <path_to_your_ruby VM i.e. /usr/bin/ruby>”

On a terminal, try

/usr/bin/evn ruby
echo $?

127 – it could not find ruby, check your $PATH or, specify the
full_path_to_ruby
126 – couldn’t start, check with you system administrator to see is
there any restriction, e.g. SELINUX

J.T

On Fri, Dec 20, 2013 at 4:40 AM, selvag selvag [email protected]
wrote:

check your shebang line, it should be
“#! <path_to_your_ruby VM i.e. /usr/bin/ruby>”

Not necessarily. The env is a standard way of invoking ruby with the
current environment settings intact.

#!/usr/bin/env ruby

should work as is, provided you have ruby installed in a way that your
environment is aware of. It is the most portable of writing a script
header
in ruby, as it should work across all *nix systems that way.

For the OP, I have no idea what opennebula is. If it is some sort of VM
or
VPS thing, you may need to install ruby to begin with, but I have no
idea
what’s required to do so.

Hi,
Could anyone help to rectify this error which occurred when i tried to
create host

ssh: connect to host onehost port 22: No route to host

Thanks in advance
Regards,
Imaya P

On Sat, Dec 21, 2013 at 3:27 PM, Jason T.
[email protected]wrote:

On a terminal, try

/usr/bin/evn ruby

/usr/bin/env ruby

Hi,
Thank you so much, but i get explanation like this destination
unreachable, could you tell me how to solve this.

From 192.168.116.59 icmp_seq=1 Destination Host Unreachable

— onehost ping statistics —
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time
3001ms

Thanks & Regards,
Imaya P

On 30 Δεκ 2013, at 15:14 , Imaya P. [email protected]
wrote:

Hi,
Could anyone help to rectify this error which occurred when i tried to
create host

ssh: connect to host onehost port 22: No route to host

Well, that’s a good place to start:
http://support.suso.com/supki/SSH_Tutorial_for_Linux

ps. The command ‘ping -c 1 onehost’ might give you the answer in plain
English.

Thanks in advance
Regards,
Imaya P


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

Panagiotis (atmosx) Atmatzidis

email: [email protected]
URL: http://www.convalesco.org
GnuPG ID: 0x1A7BFEC5
gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5

Hi,

mind you, that’s not a ruby related problem at all.

On 3 Ιαν 2014, at 11:42 , Imaya P. [email protected]
wrote:

Hi,
Thank you so much, but i get explanation like this destination
unreachable, could you tell me how to solve this.

From 192.168.116.59 icmp_seq=1 Destination Host Unreachable

Learn to use a search engine, namely ‘Google’, to find solutions to
errors. Google gives this a third link (iirc)
http://www.computerhope.com/issues/ch001483.htm which explains what this
error is.


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

Panagiotis (atmosx) Atmatzidis

email: [email protected]
URL: http://www.convalesco.org
GnuPG ID: 0x1A7BFEC5
gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5

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