/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

Attachments:
http://www.ruby-forum.com/attachment/9081/oned.log

···

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

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

···

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

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

···

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

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.

···

On Fri, Dec 20, 2013 at 4:40 AM, selvag selvag <lists@ruby-forum.com> wrote:

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

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: atma@convalesco.org
URL: http://www.convalesco.org
GnuPG ID: 0x1A7BFEC5
gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5

···

On 30 Δεκ 2013, at 15:14 , Imaya Purushothaman <lists@ruby-forum.com> wrote:
--
The wise man said: "Never argue with an idiot. They bring you down to their level and beat you with experience."

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

···

-----Original Message-----
From: ruby-talk on behalf of tamouse pontiki
Sent: Fri 12/20/2013 7:46 PM
To: ruby-talk ML
Subject: Re: /usr/bin/env: ruby: No such file or directory

On Fri, Dec 20, 2013 at 4:40 AM, selvag selvag <lists@ruby-forum.com> 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,
   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

···

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

On a terminal, try

/usr/bin/evn ruby

/usr/bin/env ruby

···

On Sat, Dec 21, 2013 at 3:27 PM, Jason Tao <jtao@digital-dispatch.com>wrote:

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

-----Original Message-----
From: ruby-talk on behalf of tamouse pontiki
Sent: Fri 12/20/2013 7:46 PM
To: ruby-talk ML
Subject: Re: /usr/bin/env: ruby: No such file or directory

On Fri, Dec 20, 2013 at 4:40 AM, selvag selvag <lists@ruby-forum.com> > 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,

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

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) What Does Destination Host Unreachable Mean? which explains what this error is.

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

Thanks & Regards,
Imaya P

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

Panagiotis (atmosx) Atmatzidis

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

···

On 3 Ιαν 2014, at 11:42 , Imaya Purushothaman <lists@ruby-forum.com> wrote:
--
The wise man said: "Never argue with an idiot. They bring you down to their level and beat you with experience."