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

Brad Bucceri
Brad Bucceri
7,102 Points

Rails installer issue /opt/rix

Hi, I wonder if anyone knows what is causing this issue? I am trying to run the rails installer but after entering my GIT info it gives me this error:

There has been an error
Error changing group of /opt/rix to rvm
The application will exit now

Thanks for any advice!

Brad

Is /opt/rix your user directory? Seems like it is a permission problem

Brad Bucceri
Brad Bucceri
7,102 Points

Ahh that sounds like a good possibility. I use Tower as my Github client and i found I had permission issues when trying to create a new folder in my 'sites' folder which sits in my user directory (if i understand correctly).

Not sure how i'd go about editing those permissions though?

B

2 Answers

James Barnett
James Barnett
39,199 Points

A quick search of the Treehouse from for /opt/rix revealed:

It's a permissions error. The easiest way to fix it, is to run Repair Disk Permissions on your hard drive.

  • Open Disk Utility
  • Choose Macintosh HD
  • Click Repair Disk Permissions

from thread: https://teamtreehouse.com/forum/help-can-not-install-ruby-on-rails#show-answer-3016

Brad Bucceri
Brad Bucceri
7,102 Points

Hi James,

a quick side-note question... Is there any risk of damaging files/apps that I have on my macbook my following the above steps?

Thanks,

b

Brad

Its only going to work on Apple-specific files and files that are part of a package with receipts (see http://support.apple.com/kb/HT1452) so it can only set the permission back to what they are "supposed" to be and only for files that it knows what the permissions should be.

Brad Bucceri
Brad Bucceri
7,102 Points

This solution worked perfectly. thanks guys!

Alan Johnson
Alan Johnson
7,625 Points

I found what looks like the same issue over on GitHub, and it looks like a system reboot should resolve that and make it possible for you to install.

Brad Bucceri
Brad Bucceri
7,102 Points

That looks perfect, i'll give it a go and let you guys know if it works, thanks!!