Wrox Programmer Forums
|
BOOK: Beginning Ruby on Rails
This is the forum to discuss the Wrox book Beginning Ruby on Rails by Steve Holzner Ph.D.; ISBN: 9780470069158
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Ruby on Rails 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 March 9th, 2008, 02:52 PM
Registered User
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Trouble getting started

I'm running Mac OSX 10.4.

I downloaded the Rails environment from locomotive.raaum.org, as suggested in Chapter 1, and installed it to my Applications folder.

When I tried to execute the rails hello command in the Terminal, I got an error message: "rails: command not found" -- but I was able to create a "hello" application from the Locomotive GUI.

Then, in Terminal, I went to my "hello" directory and entered the command:
ruby script/generate controller App,

which produced the following error:


./script/../config/boot.rb:18:in `require': No such file to load -- rubygems (LoadError)
        from ./script/../config/boot.rb:18
        from script/generate:2:in `require'
        from script/generate:2


This message doesn't mean a lot to me (maybe it will by the time I get to the end of the book...), but I gather that it can't find one of the files it needs to initialize the application. Evidently there's something wrong with the way I installed rails or the way I created the "hello" application. But I don't know what I did wrong, or what I can do to fix it.

Any suggestions?
 
Old March 11th, 2008, 05:06 PM
Registered User
 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I sometimes get the same message, look in Finder if the files do exist, sometimes ruby yells error messages and yet does its work.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started CocoKrish BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 February 5th, 2008 10:09 AM
Getting Started st3ve Javascript How-To 1 February 3rd, 2005 08:49 PM
Getting started Alemar Beginning PHP 1 January 28th, 2004 08:00 PM
Need help getting started kizmit JSP Basics 7 October 5th, 2003 06:11 PM





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