On 10/04/2010 07:50 PM, Tridib Bandopadhyay wrote:
> I not working mainly on Linux...I am working on Windows Vista service 
> pack 1. And is using the Putty Server to access all my files which is in 
> my School server.So it follows almost Unix commands.

The fact that you're using Windows in this case does not matter because
you are not using it for anything more than a way to run the Putty
client to connect to the SSH server provided by your school.  The
important part is that you are actually doing all your *real* work on a
Unix server of some kind.  Please run the following while connected to
your school's server and send the output it returns:

uname -a

> As you suggested i followed all the steps (including the earlier error 
> which was showing when i was typing make test)..I tried to run the make 
> install command and I was shown this things.
> 
> ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb  ./instruby.rb 
> --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" 
> --data-mode=0644 --prog-mode=0755 --installed-list .installed.list 
> --mantype="doc"
> installing binary commands
> /usr/local/courses/731/Tridib.Bandopadhyay/ruby/lib/fileutils.rb:240:in 
> `mkdir': Permission denied - /usr/local/lib/ruby (Errno::EACCES)

The problem is that you don't have permission to write anything into
/usr/local or its subdirectories.  By default, the installation is going
to /usr/local, so you'll need to find a way to install to a different
location to which you have write access.  I think you can do that by
running the configure script with the --prefix option and an argument
pointing to someplace in your workspace:

cd /usr/local/courses/731/Tridib.Bandopadhyay/ruby
./configure --prefix \
  /usr/local/courses/731/Tridib.Bandopadhyay/ruby-install
make
make install

Assuming that works, your ruby program will be located in
/usr/local/courses/731/Tridib.Bandopadhyay/ruby-install/bin.

> Actually I want to compile the ruby source code and build it and then 
> want to run a small program.
> 
> What should i do now?.

If all you want to do is run a small program, you can very easily
install a pre-built version of Ruby for Windows and try running that
program on your personal computer rather than the school's server.  It
will likely work unless the program requires something only provided on
that server.  Download an installer for Windows here:

http://rubyforge.org/frs/download.php/72170/rubyinstaller-1.9.2-p0.exe

There are other versions available in case that one doesn't work for
some reason:

http://rubyforge.org/frs/?group_id=167

If you want to run the program on your school's server anyway, you can
usually get away with simply using the ruby program located within the
location where you built it.  Another option is to ask around and see if
anyone else already has a Ruby installation available on the server that
you can use.

-Jeremy