From: Jeremy Bopp Date: 2010-10-23T01:25:16+09:00 Subject: Re: Ruby Compile. On 10/22/2010 11:10 AM, Tridib Bandopadhyay wrote: > Jeremy Bopp wrote in post #956345: >> On 10/22/2010 10:57 AM, Tridib Bandopadhyay wrote: >>> >>> --ruby calc.rb >>>It shows command not found. >> >> In the top level of your Ruby source directory should be the compiled >> ruby program. The problem that this path is not in your PATH >> environment variable, so simply invoking ruby as "ruby" will not find >> it. There are a couple of options available to you: >> >> 1) Add the path to the directory containing the ruby program you built >> to your PATH environment variable: >> PATH=/path/to/ruby/source:$PATH >> 2) Run ruby using an explicit path to ruby such as: >> /path/to/ruby/source/ruby calc.rb >> >> There are other variations on these options, but these are the basics. >> >> -Jeremy > > > I am running it on a server of my School....So i didn't get it how to > do?. The options I listed are about as basic as it gets, I'm afraid. My recommendation is that you take the first option. Open your shell on the server and enter the following: PATH=/path/to/ruby/source:$PATH Where /path/to/ruby/source is the full path to the location where you extracted the Ruby sources in order to build your version of Ruby. > Secondly when I type ls -lt the latest file which shows is > > rbconfigure.rb I'm not sure what you're trying to tell me here. The most current file in a directory I don't know about (since you didn't say) doesn't appear relevant to you running ruby to process your calc.rb script. -Jeremy