Yosemite and Gems and Ruby, OH MY!

Tags

, , , , , , , ,

I’m not sure if it had to do with having OS X Yosemite, but I kept running into an issue when trying to install gems on my machine.

While trying to run the regular $ gem install, I would receive this message:

ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

Meaning I couldn’t install any gems unless I ran $ sudo gem install each time i tried to install a gem.

So, somewhere on stackoverflow I found someone’s advice to install RVM (Ruby Version Manager).  But I hated the installation instructions on that site.  So I came across this blog post with step-by-step RVM installation instructions which ended up being really helpful: http://foffer.dk/install-ruby-on-os-x-10-10-yosemite-using-rvm/

And voila! You can now install gems without having to do the $ sudo command 😀  BUT WAIT.  You should take a look at the next link.

This post is also really helpful and includes more tips for when you’re installing gems and especially Rails with RVM: http://railsapps.github.io/installrubyonrails-mac.html

And I think that’s it for now!  Good luck and have fun!

– C.

HA!

Tags

, , , , ,

So I finished the program November 7th.  It is now December 28th and I am still unemployed.  I try to apply to at least a couple jobs a week.

After my first post, the class got a lot better once we dove into Ruby.  The internship during the 4th month was a great experience.  Although, I really wish I had chosen a company that was also looking to hire at the time haha.

Fast forward to today.  I finally got a Mac to work off of.  I’m already running into a shit-ton of problems simply trying to get a working database on my system.

😦

BUT!  If you’re ever working on Yosemite and you’re trying to set up your “subl” command to open Sublime Text from your Terminal, here’s what I found that worked for me:

$sudo su

Then you’ll be asked for your administrator password.
After you see “sh-3.2#” come up(which means you’re in the root user or something I’m not sure because I skimmed over that), enter the following:

rm /usr/local/bin/subl
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
exit

The exit command will get you out of that “sudo su” root thing. You can test out your “subl” command by simply typing “subl” in your terminal, which should open Sublime text.  If this didn’t work for you,  I suggest hitting up google search again!  I mean it was a miracle that I found this.

Ref: http://www.snip2code.com/Snippet/200349/Fix-Sublime-s–subl–command-on-Yosemite

“Hi I’m …”

Hi there.  I’m currently in Portland, Oregon trying to learn to be web developer at a 4 month long web programming “bootcamp.”

Currently we are into the 4th week of the program.

I still feel completely lost right now.  Some days are good.  Most days are terrible.

I try my best not to compare myself to the brilliant minds in the class, but it’s one of the hardest things to do.

– C.