Ruby gem permission denied /var/lib/gems using Ubuntu

You need to prefix the gem command with sudo because /var/lib/gems is owned by root. You could also take a look at RVM which allows really easy installation and management of gems and Ruby versions. Best part, it’s all in your home dir!

EDIT: per @AndrewMarshall’s comment bellow, rbenv is an alternative to RVM.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)