imaginekitty — 2011-12-06T21:29:35-05:00 — #1
I'm new so I just can't figure out what's going on here. I was going through a tutorial to learn the ins and outs of Rails and then it just stopped working.
Here are the errors.
[rake --tasks] rake aborted!
block (2 levels) in require'each'
block in require'each'
raw_load_rakefile'block in load_rakefile'
block in run'standard_exception_handling'
I tried "gem install execjs". No change. I tried reinstalling Ruby, then Rails. No change. What could I have possibly done? Is it really as fragile as it seems or did I just make a terrible mistake?
imaginekitty — 2011-12-06T23:22:25-05:00 — #2
Man, Rails is freakin' frustrating!!!!!!!!!!! :mad:
imaginekitty — 2011-12-07T07:16:22-05:00 — #3
I gave up last night and went to sleep. After this morning's boot it seems to work. :?
I thought Windows had the market on random issues. :lol:
parkint — 2011-12-07T07:24:57-05:00 — #4
I know how frustration can mount when you are trying to get something done and the software seems to fight with you. I am trying to teach myself to take a Zen approach; relax and carefully examine the problem. The page full of information is a bit overwhelming.
Ruby is not to blame
Rails is not to blame
Apparently, the execjs is the sourcr of the problem.
imaginekitty — 2011-12-07T07:40:25-05:00 — #5
I'm not so much into the Zen approach, I'd rather give it a virtual pistol-whipping and see if it complies.
It's working as it should after a reboot though. I just wish that I could explain why it happened so I can prevent it in the future.
Thank you for the reply.
I should add that this isn't my only frustration with Rails so far. I'm just used to the ease of ASP.NET MVC and Visual Studio and having things pretty much handed to you. Basically, I'm out of shape.
scannon — 2011-12-08T06:56:40-05:00 — #6
You need a JS runtime for your system. I'm not sure why it would work after a reboot, but, the fix is to install one of the runtimes listed at: [URL="https://github.com/sstephenson/execjs"]https://github.com/sstephenson/execjs
gem install therubyracer
imaginekitty — 2011-12-08T09:40:49-05:00 — #7
That's just it. It is there. It's always been there. It just decided to not work for some reason. :nono:
I did try that about 300 times but ...
gem install therubyracer fails. Every time. Even after the reboot. I don't care because it's working. Thanks for the assistance.
I wish there were some consistency. The random and intermittent stuff is frustrating.
scannon — 2011-12-09T07:17:46-05:00 — #8
Rails on Windows has some issues. If you have a way to work on some type of *nix system it makes life a whole lot easier.
imaginekitty — 2011-12-09T07:36:58-05:00 — #9
I think you've nailed the issue at hand. Unfortunately my Mac is broken and I've not got enough room on my hard drives in the windows machine to install *NIX.
Thanks for the help. Much appreciated.