Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJohanne Trippas
7,367 PointsErrors while installing Ruby on Rails 4.0.2
Hi,
I followed all the steps and entered "gem install rails --version=4.0.2" in my terminal but get a lot of errors.
Could anyone help me out?
Thanks!
Some of the errors:
unable to convert "\xFF" from ASCII-8BIT to UTF-8 for guides/assets/images/rails_guides_kindle_cover.jpg, skipping unable to convert "\xEC" from ASCII-8BIT to UTF-8 for guides/assets/images/rails_guides_logo.gif, skipping unable to convert "\x8C" from ASCII-8BIT to UTF-8 for guides/assets/images/rails_logo_remix.gif, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/session_fixation.png, skipping unable to convert "\x80" from ASCII-8BIT to UTF-8 for guides/assets/images/tab_grey.gif, skipping unable to convert "\x80" from ASCII-8BIT to UTF-8 for guides/assets/images/tab_info.gif, skipping unable to convert "\x80" from ASCII-8BIT to UTF-8 for guides/assets/images/tab_note.gif, skipping unable to convert "\x80" from ASCII-8BIT to UTF-8 for guides/assets/images/tab_red.gif, skipping unable to convert "\x80" from ASCII-8BIT to UTF-8 for guides/assets/images/tab_yellow.gif, skipping unable to convert "\x89" from ASCII-8BIT to UTF-8 for guides/assets/images/tab_yellow.png, skipping unable to convert "\xFF" from ASCII-8BIT to UTF-8 for guides/assets/images/vijaydev.jpg, skipping
4 Answers
Ryno Botha
Courses Plus Student 4,055 PointsThere are a few ways to get around this, I'm listing them in the order I would probably try them:
+Don't install the documentation with the rails gem; instead of running gem install rails do gem install rails --no-rdoc --no-ri. I hardly ever use built in documentation anyway, so I actually have gem: --no-ri --no-rdoc in my ~/.gemrc file so that documentation is never installed for any gem.
+Install rails without documentation as in #1, but then build the documentation by hand using rdoc and the --exclude='.dat' flag, like rdoc --exclude='.dat' activesupport/lib to build the activesupport docs, as recommended (https://github.com/rails/rails/issues/9590#issuecomment-14561135).
Also Check:
Rob Rees
6,076 PointsI'm having similar problems. I followed the install instructions exactly but the install hangs when it gets to installing ri documentation. I closed the cmd editor and retried, uninstalling and reinstalling rails. I then tried the install with no-ri and no-rdoc. It said it installed successfully but only 1 gem, whereas in the treehouse video it looks like Jason has 27 gems?
Anyway I tried to create a test app and then got the error DL Deprecated please use fiddle???
Is this possibly because i am on a netbook that cant handle rails?
Ryno Botha
Courses Plus Student 4,055 PointsIt can Handle Rails ^^
Check:
http://sermoa.wordpress.com/2008/11/28/rails-on-a-netbook/
Hope it'll work x)
Also Try:
If your using Windows~
(P.S Netbeans is very slow on a netbook)
Rob Rees
6,076 PointsThanks for your help. I managed to get it working in the mean time. The error message I was getting is just a warning and you can ignore this, say yes to an overwrite option and rails works then.
Ryno Botha
Courses Plus Student 4,055 PointsMp~
haha ok cool x)
Johanne Trippas
7,367 PointsMy test seemed to have worked even though I had the warming signs. If not I'll be posting for more help later on :)
Ryno Botha
Courses Plus Student 4,055 PointsNo problem x) will help where I can ^^