Wrox Programmer Forums
|
BOOK: Ruby on Rails for Microsoft Developers
This is the forum to discuss the Wrox book Ruby on Rails for Microsoft Developers by Antonio Cangiano; ISBN: 9780470374955
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ruby on Rails for Microsoft Developers section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 5th, 2009, 06:20 PM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Rails LoadError

Hello,
I've just installed Ruby on windows xp - these are the versions I'm using.
Ruby 1.8.6(path 287), gem 1.3.4 and rails 1.2.2 .

I am unable to get rails to load. The command "rails -v" displays the following error:

<mylocaldir>/Ruby/bin/rails:19:in `load': no such file to load -- "<mylocaldir>/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/bin/rails" (LoadError)
from <mylocaldir>/Ruby/bin/rails:19

I'm not sure where I'm going wrong, I think I followed all the steps mentioned in chapter 1.

Thanks!
 
Old June 6th, 2009, 02:08 PM
Registered User
 
Join Date: Apr 2009
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi shbrat,

does <mylocaldir> contain a space (e.g. C:\Program Files\Ruby)? If so, you may have hit a RubyGems bug.

In that case, I suggest that you uninstall Ruby and reinstall it in a directory path without spaces (e.g., C:\Ruby). Alternatively, you can try the workaround described within the bug report I linked to above.

Please let me know if this fixes your problem.

Cheers,
Antonio

PS: The book is probably easier to follow with Rails 2.2.2. You can install it by running:
Code:
gem install rails -v=2.2.2

Last edited by Antonio Cangiano; June 6th, 2009 at 09:27 PM..
 
Old June 6th, 2009, 10:04 PM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your reply, Antonio.

As you mentioned, I had a space in my directory structure. Having tried many workarounds, I finally uninstalled Ruby and then installed InstantRails.

It seems to be working fine now. I'll surely keep that in mind next time I install Ruby.

Thanks again!!
 
Old June 6th, 2009, 10:24 PM
Registered User
 
Join Date: Apr 2009
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

No problem, shbrat. I'm glad that you are up and running.

Cheers,
Antonio





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter one doesn't work in rails 2.0.2 wanguan2000 BOOK: Beginning Ruby on Rails 15 May 16th, 2009 11:39 PM
Need Help with Ruby on Rails - Please Help sfazel Other Programming Languages 1 April 8th, 2008 05:03 AM
Beginning Ruby on Rails - chapter 11: Ajax & Rails rornet BOOK: Beginning Ruby on Rails 1 June 22nd, 2007 04:10 PM
Hi pls help me abt Rails geethan85 Ruby 3 May 16th, 2007 09:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.