Bummer! You must be logged in to access this page.

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

clean start in ruby environment?

Hi there,

I would like to start the RoR tutorials again after i began experiencing some errors, I have read a few posts on this forum from people stating that they had uninstalled/reinstalled ruby etc... I cannot find the commands to achieve this (eg. typing ruby -v still gives me an installed version).

could someone please help me with a clean sweep of what the treehouse videos got me to install?

thanks!

What system are you using?

8 Answers

Jim Hoskins Jason Seifer ? can you help please?

If you dont have RVM id get that first

$ \curl -sSL https://get.rvm.io | bash -s stable

then you can uninstall whatever gems you want (rails, devise, etc) using

$ rvm remove gemname-1.0.0

where the number following the gem name is your version number.

I dont recommend completely removing Ruby though. You could just reinstall it and get the version you need using

$ rvm install 1.9.3

where the numbers following the install command is the version of ruby you want.

Only on Mac though RVM isn't it?

Thanks for the response,

I tried your suggestions but got a bunch of error messages, I think i may have tired a few to many things that were wrong before asking in this forum.

As i am unable to install RVM is there a way to remove all of the above with RBENV (as this is already installed)? then can i remove RBENV and start from scratch?

thanks again!

The following is the specific error I get when I attempt the method above.

$ rvm -v Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p392/bin' is not at first place, usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles', to fix temporarily in this shell session run: 'rvm use ruby-1.9.3-p392'.

rvm 1.25.22 (stable) by Wayne E. Seguin wayneeseguin@gmail.com, Michal Papis mpapis@gmail.com [https://rvm.io/]

pat-saunderss-MacBook:~ patsaunders$ \curl -sSL https://get.rvm.io | bash -s stable Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz curl: (56) SSL read: error:00000000:lib(0):func(0):reason(0), errno 54

Could not download 'https://github.com/wayneeseguin/rvm/archive/stable.tar.gz'. curl returned status '56'.

Downloading https://bitbucket.org/mpapis/rvm/get/stable.tar.gz

Upgrading the RVM installation in /usr/local/rvm/ chmod: Unable to change file mode on /usr/local/rvm/scripts/aliases: Operation not permitted chmod: Unable to change file mode on /usr/local/rvm/scripts/functions/manage/ree: Operation not permitted chmod: Unable to change file mode on /usr/local/rvm/scripts/functions/utility: Operation not permitted chmod: Unable to change file mode on /usr/local/rvm/scripts/irbrc: Operation not permitted Can not automatically remove lines with 'rvm_autolibs_flag=' from '/etc/rvmrc', please clean it manually. Found 864 directories with mode different then '775', use --debug to see the list, run rvmsudo rvm get stable to fix it., prefix the command with 'rvmsudo' to fix it, if the situation persist report a bug. Found 4511 files with mode different then '664' or '775', use --debug to see the list, run rvmsudo rvm get stable to fix it., prefix the command with 'rvmsudo' to fix it, if the situation persist report a bug. Upgrade of RVM in /usr/local/rvm/ is complete.

succora,

Thank you for using RVM!

We sincerely hope that RVM helps to make your life easier and more enjoyable!!!

~Wayne, Michal & team.

In case of problems: http://rvm.io/help and https://twitter.com/rvm_io

Upgrade Notes:

  • WARNING: you have 'rvm_configure_env' in /etc/rvmrc, run the following to fix:

    sudo sed -i'' -e "/rvm_configure_env=.*\/opt\/sm/d" /etc/rvmrc rvm autolibs smf

  • No new notes to display.

hope this helps

Hey Adam, I am on OS X 10.8.5 ... Ive just tried to use the treehouse VM version and that too will not install.

Any help on getting back to a clean slate would be awesome.

Sorry for delay, in the UK. I don't have a Mac so not really too sure. However can you not just go in to remove programs and uninstall Ruby and re-install it again fresh.

Thanks Adam, I have tried uninstalling everything and reinstalling, but still getting the same errors... Ive checked out the error codes on various sites and followed the tutorials repeatedly.

I was hoping there was a 'method' to follow for the process to work out if im missing something rather than just trying every option.

At this stage I am able to get the console output back to my original(apple) version of ruby, with no rbenv and no gems/rails.

Thanks for your help, any other thoughts please let me know!

As I say I have never used a Mac (too expensive for me :( ) so I wouldn't even like to hazard a guess as to what may be causing the problems. I like tag the teachers for you to see if they can shed any light on your situation Jason Seifer Jim Hoskins In the meantime if your eager to get started then you could just cloud9 it's free for 1 workspace and supports Ruby. Then once the teachers are online they should be able to help you fix it.

Also when replying in the forum it is much tidier is you click the add comment links rather than a new answer each time you post :)

Thanks Adam,

hoping to hear from the teachers soon.

I will give cloud9 a go and try to keep the forum tidy!

cheers!

Hey Jason Seifer Im also having a bit of the same issue here on this question page:

https://teamtreehouse.com/forum/build-fail-and-installing-ruby

I've started out with the http://teamtreehouse.com/library/installing-a-ruby-development-environment and then I went to the Installing a Ruby environment. This is where I believe I messed up at.

Id greatly appreciate your help!

Thanks