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 trial

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Set up Git and Add Gems

Jeffrey Cheong
Jeffrey Cheong
5,653 Points

Error with gem 'rspec-rails', '~> 2.0' installation

Im having problems installing the gem 'rspec-rails', '~> 2.0' gem. it says "could not find gem gem 'rspec-rails', '~> 2.0' x86-mingw32 in the gems available on this machine. Any help would be appreciated thanks!

4 Answers

Rachelle Wood
Rachelle Wood
15,362 Points

I don't know what kind of Windows version you are using nor what kind of Linux distribution you would be interested in using. I will describe what I did to get Ubuntu 14.04 alongside Windows 7 on my laptop.

You can either burn Linux onto a CD or use a USB drive of some sort. I used a 4 gig USB flash drive to install Ubuntu, you need around 2 gigs free. I recommend following the instructions on this link to install Ubuntu on a USB flash drive: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows

I actually used these instructions for Win 7 even though they say it is for Win 8 and beyond. It worked fine for me!

Then you can either decide to try out Ubuntu for a while to see if you like it without having to install it on your computer or shop around for other Linux distros to try. If you decide you like Ubuntu, then you can follow the steps in this youtube video to install it alongside Windows:

https://www.youtube.com/watch?v=86KHkeBpsbA

The important thing to keep in mind, whether you choose to try it out first on a USB drive or install it straight away is that you have to go into your BIOS before the computer loads up Windows and change the boot order of your drives so that your computer boots straight away from the USB drive. If you install Ubuntu alongside Windows, there will be a point where it will want to restart the computer. Be sure to remove the USB drive from your computer before restarting, then go back into your BIOS when your computer restarts and switch boot order back to its default drive.

You may want to have your computer connected to the internet during installation.

Rachelle Wood
Rachelle Wood
15,362 Points

When installing Ruby for Linux, I really recommend to not use apt-get install. It installs a really old version of Ruby. If you install this old version and then install the most recent version of Rails, you will have problems. I did this and I lost a lot of time because I did not look at the documentation before installing Ruby (that is the last time I do that!).

I found that a nice guide for installing Rails, Ruby, Node and the like is here:

https://gorails.com/setup/ubuntu/14.04

Good luck and I hope this resolves your conflicts with bundler. It certainly helped me overcome the conflicts I was having.

Jeffrey Cheong
Jeffrey Cheong
5,653 Points

Wow thanks Rachelle, il the steps you recommended and il get back to you on them!

Jeffrey Cheong
Jeffrey Cheong
5,653 Points

Wow thanks Rachelle, il the steps you recommended and il get back to you on them!

Rachelle Wood
Rachelle Wood
15,362 Points

Sure thing, let me know how you get on. One word of warning though, Linux is not easy to get used to, especially coming from windows. You have to get well-acquainted with using the terminal.

Jeffrey Cheong
Jeffrey Cheong
5,653 Points

Hey Rachelle,

Sorry for the late reply I've been pretty busy lately.

So I installed Ubuntu for windows and tried the steps you provided me to install it on a USB and boot it from there. I am having problems booting my computer up in Linux though. I am running Windows 10 so i'm not sure if that has anything to do with it, anyways I try booting it up, running the application from my USB and it gives me three options, I clicked the "Demo and Full Installation option" and then "Reboot Now" and I am assuming at this point my computer should reboot in Linux, which it does not. Am I doing something wrong?

Thanks.

Rachelle Wood
Rachelle Wood
15,362 Points

Hi, sorry on my part for a late reply. I am in Paris and life has been pretty crazy here this week.

I honestly don't know for Windows 10. I took a look at a guide for installing Ubuntu alongside Win 10 that is pretty much the same as what was outlined above.

Did you actually install Linux on your computer? Is it only on your USB key? Did you take your USB drive out when restarting? Is your BIOS boot up set back to your internal hard drive? It could also be a USB pin drive that does not work as expected.

You should get a dialogue box when your computer loads back up that takes you to a menu with different options. Loading up Ubuntu is the first option, loading up Win 10 should be at the bottom.

Some people have had issues restarting their computers from a USB drive in Ubuntu but I did not have this problem myself. I copied below two links. The first is a really detailed installation guide for installing Ubuntu alongside Win 10 and the second has a section about problem USB pin drives:

http://www.linuxandubuntu.com/home/dual-boot-ubuntu-15-04-14-10-and-windows-10-8-1-8-step-by-step-tutorial-with-screenshots

https://help.ubuntu.com/community/Installation/FromUSBStick

Jesus Mendoza
Jesus Mendoza
23,289 Points

I had troubles installing Rails using Ruby 2.2.3. Downloaded Ruby 2.0.0 and had no troubles.

Jeffrey Cheong
Jeffrey Cheong
5,653 Points

I tried with the 2.0.0 still problems. rails seems to work fine in both versions its just some difficulties with the bundle installations.

Rachelle Wood
Rachelle Wood
15,362 Points

Are you having issues when you use bundler or when you try to install with rails generate? What kind of a computer are you on? I don't know if I can help since I use Linux when working with Rails but I will try to help you. If you are using Windows, there are all kinds of conflicts with Rails gems. This is one reason why I installed Linux alongside Windows.

Jeffrey Cheong
Jeffrey Cheong
5,653 Points

Issues with the bundler and beyond. I pretty much just stopped using rails at this point and moved on to PHP because of all the problems with rails on windows. how did you go about installing Linux alongside windows?

Jeffrey Cheong
Jeffrey Cheong
5,653 Points

I hope all is well there for you. Thanks, il try going through those steps soon. I put off rails for a while as it was too much trouble so I am working with PHP now and will be coming back to rails.