Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a Admin user for serious stuff and a Standard user for daily tasks, including front-end development. On the Admin user, I can install Brew, RVM, Middleman etc. But on the Stardard user, where I plan to develop using Middleman, I can't install because of the permissions stuff.

Is there a way to work around this?

If I try this: $ sudo gem install middleman I get this: JoelCipriano is not in the sudoers file. This incident will be reported.

If I try this: gem install middleman I get this: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.

share|improve this question

migrated from stackoverflow.com Jun 25 '13 at 7:47

This question came from our site for professional and enthusiast programmers.

    
assume the root user, install/configure your software, drop back to the normal user. Is that not possible for some reason ? –  Hunter McMillen Jun 24 '13 at 21:07
    
I did this. Installed Brew, rbenv, rvm. Those three are working. But Middleman, don't. –  Joel Cipriano Jun 25 '13 at 16:02
    
This is the the error when I try to install on the Standard user: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /Library/Ruby/Gems/1.8 directory. –  Joel Cipriano Jun 29 '13 at 14:08

1 Answer 1

you've installed rvm in system mode, and thus rvm directs all gem installs to the system folder, where administrative privileges are needed.

You need to completely remove rvm, and then reinstall either rvm in user mode (not sure how, I just know it's possible from reading things.) or installing rbenv. Both those will put your ruby environment (and therefore the gems as well) in your home directory where administrative privileges are not needed.

Do mind that RVM and Rbenv DO NOT PLAY WELL TOGETHER. never under any circumstance install both. (I've had to wipe my iMac once after accidentally installing both.)

Homebrew is system centric, and you probably won't be able to install rvm/rbenv in user mode with that. I recommend using the general install guides from the developers instead.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.