![]() You have to modify the file runtimes.rb (assuming you’ve kept the default paths, it is under C:Ruby193librubygems1.9.1gemsexecjs-1.4. After some more digging I found a thread claiming that this problem is specific to Windows 8 and the solution is to modify ExecJS’s code… scary to say the least and, again, very disappointing experience but it did the trick. So I decided to keep on searching for a solution. However, ExecJS says that on Windows it just uses Microsoft Windows Script Host. A lot of people suggested to bypass this problem by “simply installing node.js”. ExecJS relies on the presence of a Javascript runtime in order to be able to do that. It uses ExecJS, another gem, to compile CoffeeScript into Javascript. Rails comes with out of the box support for this (or at least it claims it does). CoffeeScript is a nice little language that compiles into Javascript. The error has something to do with CoffeeScript, since the file it complains about is home.js.coffee. Not very descriptive and a bit disappointing that the hello world tutorial doesn’t “just work”. Rails.root: C:/Users/nikolaos/Projects/blogĪpplication Trace | Framework Trace | Full TraceĪpp/views/layouts/:6:in `_app_views_layouts_application_html_erb_564660063_19500504' (in C:/Users/nikolaos/Projects/blog/app/assets/javascripts/home.js.coffee) Showing C:/Users/nikolaos/Projects/blog/app/views/layouts/ where line #6 raised: json, rails) while others are being installed at that moment (e.g. Let’s to that with the command rails new blog.Īmong other things in the output, you’ll notice that some gems are already present (e.g. At this point we’re ready to start going through the tutorial Getting Started with Rails to create our first application. Install sqlite3 with gem install sqlite3.Update gem to latest and greatest with gem update -system and then gem update. ![]() Install DevKit: from a command prompt, go to C:Ruby193devkit and run ruby dk.rb init and then ruby dk.rb install.I extracted it under C:Ruby193devkit so it's together with ruby. ![]() It's a self extracting archive and you need to extract it to its final location. CHM documentation is also available as a 7-Zip archive. I also recommend selecting the Add Ruby to the PATH during installation, no need to do it manually later. The RubyInstaller version 1.9.1-p430 is now available for download in both executable installers and 7-Zip binary archives. By default this will install Ruby at C:Ruby193. With version 2, I run into various problems trying to build native gems (e.g. You might also want to read the most recent post on the same topic. I had some problems installing Ruby on Rails on Windows 8 so I’m writing this down as a summary. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |