Jitender Bandari
Jitender Bandari

Reputation: 47

command gem install rails fails with permissions error?

Trying to install a gem (gem install rails) fails with this error:

ERROR: While executing gem ... (Gem::FilePermissionError)You don't have write permissions into the /usr/lib/ruby/gems/1.8 directory. Anyone having idea how to solve this?

i am trying to installing rails from unix.

Upvotes: 2

Views: 85

Answers (1)

MM77
MM77

Reputation: 113

Sudo command allows you to execute a command as a superuser

So the following command should work with you.

sudo gem install rails

Upvotes: -1

Related Questions