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

been 3 days. i need help!!!!...i followed how to install ruby on rails from the windows system. railsinstaller.org

i downloaded the 2.1 version and opened everything up. when the teacher gets to the project side to create TreeBook. i open cmd prompt and i type in "rvm use 1.9.3" but it doesnt recognize

https://teamtreehouse.com/library/build-a-simple-ruby-on-rails-application/getting-started-with-rails/generate-a-rails-application-2

i got help from someone that said to open cmd prompt and type in gem install bundler gem install sqlite gem install rails

all of which i get an error.

been 3 days and I've uninstalled and re-installed it a couple of times, but still get nowhere

Gavin Ralston
Gavin Ralston
28,770 Points

What errors, specifically, are you getting when you try to use rvm?

What errors, specifically, are you getting when you type gem install <gem>?

14 Answers

Ken Johansson
Ken Johansson
20,953 Points

Try: gem update --system

could not find a valid gem 'rails' theres more i dont know how to copy and paste it..it wont let me in this text box

Gavin Ralston
Gavin Ralston
28,770 Points

A screenshot could help, then. Interpreting error messages is going to get easier as you get going with ruby and rails, but it's definitely a skill you'll want to hone. :)

Additionally, consider a virtual machine for rails development, like a complete rails stack, or linux, or even just using a mac. All of these options will be better in the long run than rails development on windows.

edit: Also in the short run, as you can see.

i made a screen shot but it wont let me paste it...macs are over rated. the tech specs on the macs are useless.

Gavin Ralston
Gavin Ralston
28,770 Points

i.imgur and a bit of markdown could fix that.

As for the mac, I was more concerned with using BSD or linux than the processor or hardware. Hence the multiple options if you reflexively go all Tom's Hardware on anyone who says Apple. :)

an s5 is better than a macbook

Gavin Ralston
Gavin Ralston
28,770 Points

Let us know if you find any rails stack tutorials for the S5 or Tab or Tab Pro

you know what i mean. what if i have an older version of an imac with the white screen.

Gavin Ralston
Gavin Ralston
28,770 Points

PowerPC or Intel?

Have you considered a trade in or recycling program for it?

i have an intel. no i dont know where to go, i usually just check kijiji or craigslist for people who are selling. i dont know of any programs..

Gavin Ralston
Gavin Ralston
28,770 Points

Well if it's intel there's hope if you're not using Tiger or something. Try using that machine and installing rails on it.

Also, screenshot of the errors would still be useful here.

sorry i read your question wrong. the imac isnt mine its my friends which he might let me have...my windows is an intel...

i printed screen. edited the picture in paint. i dont know how to paste it here. i use ctl v but nothing happens.

Gavin Ralston
Gavin Ralston
28,770 Points

Save the image to an image sharing service, like i.imgur and then use the url for that image here.

You can add it to any post by checking the Markdown Cheatsheet at the bottom of any editor window in the forums.

Gavin Ralston
Gavin Ralston
28,770 Points

It looks like this post about gem install certificate errors might help you out.

Or just go to the SSL upgrades instructions on github directly.

Orrrr... use a VM and download linux if you're mac averse and develop in an environment that won't be so hostile. :)

Also, check out windows powershell too, for when you have to use windows cmd prompt

the .pem file was already in there. nothing is changing! i don't know. nothing is working. its been like 4 days already. very frustrating.

Ken Johansson
Ken Johansson
20,953 Points

Did you try: gem update --system

I had some issues due to using an older version of ruby and rails, and this fixed it. YMMV, but it's worth a try.

nothing works.

Gavin Ralston
Gavin Ralston
28,770 Points

In the short term, and really for longer-term satisfaction, I highly recommend if you're having that kind of difficulty to switch to using vmware or virtualbox and installing something like debian, ubuntu, or linux mint since there are a ton of resources for any installation trouble you might have. You're much more likely to get a production environment set up for rails there than in Windows.

You can always re-visit this issue when you have the time to research it in more detail.

while we touch on this issue. are macs better than pcs when programming?

Gavin Ralston
Gavin Ralston
28,770 Points

Windows is just fine. I'm just offering the suggestion since you're wanting to do rails and having a lot of difficulty with getting your environment up and running. And I'd say rails support in Windows is the weakest by far. It's totally do-able, but as you can see, there can be some headaches.

Using virtual machines is always good for me anyway. I can trash the entire environment and just launch another one without ruining my whole week. :)

or is windows fine