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.
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>"
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."
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.
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.
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.
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."