From: Wins Lin Date: 2013-03-18T07:07:03+09:00 Subject: Ruby-2.0.0-rc2 on Windows under Cygwin. Cannot run IRB, gem, rake, etc Hello. I've successfully (I think so) installed Ruby-2.0.0-rc2 on Windows XP under Cygwin (1.7.17(0.262/5/3)) using Ruby-builder. It lives now here: C:\cygwin\usr\local\ruby-2.0.0-rc2 - win path or /usr/local/ruby-2.0.0-rc2 - cygwin path It seems it works fine since I can run "ruby -v" and other commands from the shell like this, for example: $ ./ruby -e '(1..2).each { |i| puts "This is #{i}" }' This is 1 This is 2 Please see a pic in the attachment, it is a screenshot of its /bin directory. The problem is that only ruby.exe works fine. As I said above I can check it this way and get positive result: $ ./ruby -e "puts 'Hello World'" Hello World But the rest of the files (those unix-like without extensions) just throw errors: $ ./gem --help -bash: ./gem: /usr/local/2.0.0-rc2/bin/ruby: bad interpreter: Permission denied $ ./rake --help -bash: ./rake: /usr/local/2.0.0-rc2/bin/ruby: bad interpreter: Permission denied How may I run these Ruby files? I'm very new to Unix/Linux and yet don't know through and through how it works. So is the reason I just didn't set some options with Bash or Cygwin Shell or smth else Unix-specific, or those Ruby commands will never work under "Windows/Cygwin" environment? Attachments: http://www.ruby-forum.com/attachment/8232/bin.jpg -- Posted via http://www.ruby-forum.com/.