Prepping for Rails Girls Groningen This Weekend

This Friday and Saturday I am attending Groningen’s Rails Girls workshop where I’ll learn to install and build an application using ruby on rails. I utterly love these things because there’s absolutely no pressure AND IT’S FREE.

Plus learning. Learning is cool.

Like bowties.

Running through the Setting Up Rails tutorial – specifically, the Setup for OS X – and everything is smooth as silk.

UNTIL.

[ yes, queue that dramatic music ]

Kristins-MacBook-Air:~ kristinrainpleander$ gem i rails --no-ri --no-rdoc
Fetching: i18n-0.7.0.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

No worries, I’ll just chown the directory:

Kristins-MacBook-Air:~ kristinrainpleander$ chown 777 /Library/Ruby/Gems/2.0.0/
chown: /Library/Ruby/Gems/2.0.0/: Operation not permitted

OF COURSE it doesn’t work because I didn’t have permission in the first place, why would I have permission to chown?

I’ll forget I’m on a mac and try to switch to the root user:

Kristins-MacBook-Air:~ kristinrainpleander$ su -
Password:
su: Sorry

Then, right, just use sudo:

Kristins-MacBook-Air:~ kristinrainpleander$ sudo chown 777 /Library/Ruby/Gems/2.0.0/
Password:

Nope, still no good:

Kristins-MacBook-Air:~ kristinrainpleander$ gem i rails --no-ri --no-rdoc
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

Wait, use sudo on the gem install command. DUH:

Kristins-MacBook-Air:~ kristinrainpleander$ sudo gem i rails --no-ri --no-rdoc
Fetching: i18n-0.7.0.gem (100%)
Successfully installed i18n-0.7.0
Fetching: thread_safe-0.3.5.gem (100%)
Successfully installed thread_safe-0.3.5
Fetching: tzinfo-1.2.2.gem (100%)
Successfully installed tzinfo-1.2.2
Fetching: minitest-5.7.0.gem (100%)
Successfully installed minitest-5.7.0
Fetching: activesupport-4.2.1.gem (100%)
Successfully installed activesupport-4.2.1
Fetching: rack-1.6.1.gem (100%)
Successfully installed rack-1.6.1
Fetching: rack-test-0.6.3.gem (100%)
Successfully installed rack-test-0.6.3
Fetching: mini_portile-0.6.2.gem (100%)
Successfully installed mini_portile-0.6.2
Fetching: nokogiri-1.6.6.2.gem (100%)
Building native extensions. This could take a while...

That title should probably be AWKWARDLY prepping for Rails Girls Groningen This Weekend.


Posted

in

by