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 January 13th, 2010, 09:58 AM
Registered User
 
Join Date: Jan 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default gem.bat install RedCloth (p 186) and config.gem (p 198)

Hi,
This book is simply great.
I am running into trouble with RedCloth gem isntall. Similarly with the mislav-will_paginate.

here are the two lines in /config/environment.rb

config.gem "RedCloth", :version => ">=3.301", :source => "http://code.whytheluckystiff.net"

config.gem 'mislav-will_paginate', :version => '>2.3.2', :lib => 'will_paginate', :source => 'http://gems.github.com'

And here is the sad reply:


C:\Ruby\projects\blog>rake gems:install
(in C:/Ruby/projects/blog)
gem.bat install RedCloth --version ">= 3.301" --source http://code.whytheluckystiff.net
ERROR: http://code.whytheluckystiff.net/ does not appear to be a repository
ERROR: could not find gem RedCloth locally or in a repository

gem.bat install mislav-will_paginate --version "> 2.3.2" --source http://gems.github.com
ERROR: http://gems.github.com/ does not appear to be a repository
ERROR: could not find gem mislav-will_paginate locally or in a repository

Granted i tried to change the RedCloth address to rubyforge's but same problem.

Can anyone help?.
It sort of stalls my learning!

ah one last thing the versions are:
C:\Ruby\projects\blog>ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

C:\Ruby\projects\blog>gem -v
1.3.5
  #2 (permalink)  
Old January 13th, 2010, 11:09 AM
Registered User
 
Join Date: Apr 2009
Location: Toronto, Canada
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,

thank you for your kind words. Regarding the errors, they are due to two events in the Ruby community:
  • Why the lucky stiff, the persona behind RedCloth, decided to disappear from the community. His code is still around, but his sites are no longer active;
  • GitHub stopped serving gems, in favor of GemCutter.
For RedCloth you will need to first install the gem:

Code:
gem install RedCloth


And then specify the dependency in config/environment.rb:

Code:
config.gem "RedCloth", :lib => "redcloth"
For will_paginate, you can use:

Code:
config.gem 'will_paginate', :version => '~> 2.3.11', :source => 'http://gemcutter.org'
I hope this solves the issues you've encountered.

All the best,
Antonio
  #3 (permalink)  
Old January 13th, 2010, 11:48 AM
Registered User
 
Join Date: Jan 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default RedCloth blues

Thank you for your prompt reply.

just at the console i issued the command as you adviced: but alas....

C:\Ruby>gem install RedCloth
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: could not find gem RedCloth locally or in a repository

Then it occured to me that there was a problem with our security system.
so i figured and found out our proxy.
gem install -help gave me the http-proxy switch.
i manually installed the two gems with success!

thank you again so much for this help and this great book.
 


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
gem has no -system option. erik8085 BOOK: Ruby on Rails for Microsoft Developers 1 October 27th, 2009 07:29 AM
date()-186 crmpicco Classic ASP Components 3 January 31st, 2005 12:31 PM
Error: movie.php & commit.php on p182-186, ch6 willburke BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 October 12th, 2004 03:48 PM



All times are GMT -4. The time now is 12:34 PM.


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