-5

I am newbie to Ruby language. When i run a Rakefile task with Sh command it's throwing error Aborted! Please help me to fix this error.

chary
  • 1
  • 1
  • 2
    Please read http://stackoverflow.com/help/how-to-ask – Зелёный Apr 20 '17 at 11:53
  • 1
    Welcome to stackoverflow. Please type your code in the question, not as images. Also you have to provide some background to the error, what operating system you're using and so on. I know it's obviously windows, but it's still better to state it in the question. – Eyeslandic Apr 20 '17 at 12:03

1 Answers1

1

Looks like your script separates folder names with /, but your Windows OS uses \. You will have to fix that.

Furthermore the is no rm command on Windows. That will be your next problem.

You might need to re-write the whole script to be able to run it on Windows.

spickermann
  • 81,597
  • 8
  • 83
  • 112
  • Thanks for a quick response. I have fixed the slah issue. Can you please help me to fix the rm commnad issue? What is the alternate command for rm in windows Ruby – chary Apr 20 '17 at 12:25
  • http://stackoverflow.com/a/97896/2483313 (first result on Google for `rm windows`...) – spickermann Apr 20 '17 at 12:29
  • Thanks. Ill try rd instead of rm & s or q instead of rf. – chary Apr 20 '17 at 12:44
  • A better solution may be to look into a *nix emulator like [cygwin](https://www.cygwin.com/). Almost all preexisting ruby code assumes a nix environment, as do almost all resources and tutorials. This probably won't be the last time you run into an issue like this. Having an emulator will fix many of these problems down the line. – Glyoko Apr 20 '17 at 18:39