Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 5352  / 1 Year ago, sat, december 24, 2022, 3:45:32

I have installed Ubuntu 12.04 on VirtualBox.



I installed rvm, ruby and rails following this tutorial.



But when I restart, I am getting this error:



The program 'rails' is currently not installed.  You can install it by typing:
sudo apt-get install rails


And after that, when I again try gem install rails I am getting this error:



ERROR:  While executing gem ... (Errno::EACCES)
Permission denied - /var/lib/gems


And there is no gems folder under /var/lib/.



Can anyone help me to fix this?


More From » 12.04

 Answers
5

gem install rails needs to be run as root since /var/lib/gems should be 0644 or something. Therefore, use:



sudo gem install rails

[#32979] Sunday, December 25, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
coffekne

Total Points: 114
Total Questions: 122
Total Answers: 126

Location: Mauritania
Member since Sun, Oct 17, 2021
3 Years ago
;