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 trialChristoph Rumpel
6,715 Pointsinstall error RVM / Ruby / Rails
Hey everyone. I have a very special problem with my setup of RVM and Ruby. I know it, but probably someone had the same problem and could help me.
So i have been using Ruby and RVM a little bit some time ago and there were no problems. Last month i wanted to start with the rails project on Treehouse and i ran into several problems.
But first let me tell what has change on my MBP. Half a year ago i installed a new SDD instead of my optical drive. My applications run now on the SSD but my home directory is on the other HDD. That was recommended by hardwrk, where i got the kit for changing to a SSD. It seems like this setup is not the best one and could cause errors like my one, but i am not sure.
I tried to reinstall or remove RVM and gems and tried several approaches to do that. I am also not sure if i messed things up there.
Currently problem is that i cannot install RVM. The problem is describe here (https://github.com/wayneeseguin/rvm/issues/1760) It is said that the problem is that i have a space in my home directory and how to fix it:
curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby
######################################################################## 100,0%
It looks you are one of the happy *space* users(in home dir name),
RVM is not yet fully ready for it, use this trick to fix it:
sudo ln -s "/Volumes/Macintosh HD/Users/ChristophR/.rvm/" /christophrumpel1.rvm
echo "export rvm_path=/christophrumpel1.rvm" >> "/Volumes/Macintosh HD/Users/ChristophR/.rvmrc"
and start installing again.
After these commands, i get this error:
curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby s######################################################################## 100,0%
Please read and follow further instructions.
Press ENTER to continue.
mkdir: /christophrumpel1.rvm/src: Not a directory
Last time i tried to do a "fsck" in single user mode, but i got an error and after trying to repair the SSD disk i had to restore from TimeMachine because of an error.
Everything else is working good on my MBP and i don't know what to do. I don't know if it is just about a space in my directory or a real deeper problem. I am now starting with Cloud9 and Ruby on rails, but it would be far better to fix that.
As i mentioned i know this is very special, but i would like to try it. Maybe there is someone who could help me. Thanks and cheers
9 Answers
James Barnett
39,199 PointsTry this:
sudo ln -s "$HOME/.rvm/" /$USER.rvm
echo "export rvm_path=/$USER.rvm" >> "$HOME/.rvmrc"
Then re-install
Christoph Rumpel
6,715 PointsThx James, but same result =(
curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby
################################################################## 100,0%
Please read and follow further instructions.
Press ENTER to continue.
mkdir: /christophrumpel1.rvm/src: Not a directory
James Barnett
39,199 PointsRVM isn't supported on hard drives with spaces in the name, sorry.
Christoph Rumpel
6,715 PointsHmm can i change it without running into other troubles? It is not like i wanted the space there :-)
Christoph Rumpel
6,715 PointsSo i got an tip and now the installation seems to start, but then i get another error:
ERROR: '/usr/local/Cellar' not writable, fix it first!
I tried to change the permission for that folder with:
sudo chmod 775 /usr/local/Cellar
but when i try to install RVM again i get the same error. Here ist the complete output of the installation. https://gist.github.com/christophrumpel/5357817
Christoph Rumpel
6,715 PointsSeems like i fixed it with help from RVM team. You can see here https://github.com/wayneeseguin/rvm/issues/1785
Thanks!
James Barnett
39,199 PointsChristoph - Someone should give you a troubleshooting medal for helping track down that bug
Jason Seifer
Treehouse Guest Teacher@James Totally agree! Great job!
Christoph Rumpel
6,715 PointsHaha thank you :-) I am just so glad it is working now. Clound9 is a great tool, but i am happy to go on with the Ruby Badges on my machine again ;-)