Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > BOOK: Ruby on Rails for Microsoft Developers
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 27th, 2011, 04:16 PM
Registered User
 
Join Date: Apr 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Whetting your Appetite App ERROR

Looks like there's an issue custom_require.rb. Looks like a var called required isn't declared properly, not in a .h or the like. Here's the cmd line command I tried to run, it's straight out of the book on page 29:

C:\Ruby192\PROJECTS\addressbook>ruby script/generate scaffold person name:string address:string phone:string email:string blog:string

<internal:lib/rubygems/custom_require>:29:in `require': no such file to load --
script/../config/boot (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from script/generate:2:in `<main>'


please help...
  #2 (permalink)  
Old April 27th, 2011, 05:09 PM
Registered User
 
Join Date: Apr 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default More Detail on Problem

Hello, I'm trying to setup my windows 7 64bit for Ruby on Rails per your instructions for the One-Click Ruby Installer.
Had a heck of a time getting the ruby bindings to sqlite to successfully complete, downloaded the DevKit, and finnaly got a success message(see bottom).
Now the issue is with the "Whetting Your Appetite" addressbook getting started example app.
A var 'required' is missing from some .h or something like that,
in custom_require.rb or elsewhere (require_paths?) Here's what I entered:

C:\Ruby192\PROJECTS\addressbook>ruby script/generate scaffold person name:string address:string phone:string email:string blog:string

<internal:lib/rubygems/custom_require>:29:in `require': no such file to load --
script/../config/boot (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from script/generate:2:in `<main>'


Got the http://www.sqlite.org/sqlitedll-3_7_3.zip (see cmd message at bottom) for the latest dll, still no success with the addressbook app.
I know I could try Instant Rails, but you say you don't recommend it while reading your book and it's not flexable and solid, plus I'm worried an uninstall of what I've done already won't be clean.
Or I'm I screwed already with the installing of the DevKit ?


================================================== ===========================
You've installed the binary version of sqlite3.
It was built using SQLite3 version 3.7.3.
It's recommended to use the exact same version to avoid potential issues.
At the time of building this gem, the necessary DLL files where available
in the following download:
http://www.sqlite.org/sqlitedll-3_7_3.zip
You can put the sqlite3.dll available in this package in your Ruby bin
directory, for example C:\Ruby\bin
================================================== ===========================
Fetching: sqlite3-ruby-1.3.3.gem (100%)
################################################## #####
Hello! The sqlite3-ruby gem has changed it's name to just sqlite3. Rather than
installing `sqlite3-ruby`, you should install `sqlite3`. Please update your
dependencies accordingly.
Thanks from the Ruby sqlite3 team!
<3 <3 <3 <3
################################################## #####
Successfully installed sqlite3-1.3.3-x86-mingw32
Successfully installed sqlite3-ruby-1.3.3
2 gems installed
Installing ri documentation for sqlite3-1.3.3-x86-mingw32...
Installing ri documentation for sqlite3-ruby-1.3.3...
Installing RDoc documentation for sqlite3-1.3.3-x86-mingw32...
Installing RDoc documentation for sqlite3-ruby-1.3.3...
  #3 (permalink)  
Old January 8th, 2012, 06:55 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2012
Location: Reno, NV
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Whetting your Appetite App Error

Hopefully by now a solution has presented itself. I had the same results yesterday, but installing InstantRails works fine. That is, I installed InstantRails per the instructions starting on page 17, right on top of my previously somehow-corrupt manual installation, and with Apache disabled (per the instructions), the addressbook app worked fine. As mentioned in the text, InstantRails does not modify your Windows environment. That means if you ever want to remove it, just delete the contents of that folder and you're done. Nice.

However, also as mentioned in the text, that means InstantRails will need to manage the paths for all your resources, so you need to open the Windows command line console from within the InstantRails client (using their "Ruby Console Window".) As long as you do that, everything seems to work like in the text. So far.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compass App fails with unspecified error ntuple BOOK: Professional Android 2 Application Development 4 December 30th, 2010 12:44 PM
Web App Error on Logout janetb ASP.NET 2.0 Basics 4 March 25th, 2008 01:30 PM
calling webservice in console app error msrnivas General .NET 1 October 25th, 2006 10:38 PM
File Share App Error aaaboye BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 October 16th, 2006 04:32 PM
Access Denied Error in WinForms App scott.ferguson .NET Framework 1.x 3 September 8th, 2006 02:17 PM



All times are GMT -4. The time now is 10:52 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.