ERROR: While executing gem ... (Errno::EACCES)
Permission denied # rb_file_s_symlink -
(spec/support/../../.mod/drivers-evergreen-tools/.evergreen/ocsp,
D:/Hoc_tap/Ruby/Download/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mongo-2.18.1/spec/support/ocsp)
I used mongodbcompass v6.0.0 and rails v7.0.4. How can I connect to mongodb?
Related
I'd like to install boring_generators gem in my ruby on rails 6 project in windows 10 os. But I couldn't install it, I got errors like below. I would be grateful if anyone gives me the idea to fix it.
gem install boring_generators
ERROR: While executing gem ... (Errno::EACCES)
Permission denied # rb_file_s_symlink - (../acorn/bin/acorn, C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/boring_generators-0.11.0/tmp/templates/app_template/node_modules/.bin/acorn)
I'm trying to install Alamo-fire library in my project. But I'm getting the following error:
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /Library/Ruby/Site/2.0.0/rubygems
How can i resolve this?
I'm running ruby version 2.3.0 trying to install the debug_inspector gem but getting:
Building native extensions. This could take a while...
ERROR: While executing gem ... (Errno::EACCES)
Permission denied # dir_s_mkdir - /Users/Archerdog1/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/debug_inspector-0.0.2
any suggestions?
After installing rubygems, I tried to install rails.
I entered the following command:
~$ gem install rails
and I got the following error:
Fetching: i18n-0.6.1.gem (100%)
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /var/lib/gems
try using sudo instead.
sudo gem install rails
Installing multi_json (1.3.6) /home/ubuntu/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:243:in `mkdir': Permission denied - /home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/multi_json-1.3.6 (Errno::EACCES)
I even deleted Gemfile.lock but it is showing the error. I did use only
gem "exception_notification", "~> 2.6.1"
Please Help me.
if you don't know the meaning of this error:
Installing multi_json (1.3.6)
/home/ubuntu/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:243:in
`mkdir': Permission denied -
/home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/multi_json-1.3.6
(Errno::EACCES)
you should go back and gain yourself some basic knowledge about unix and user-rights...
the problem is, that the user you are executing your bundle command with, is not allowed to execute mkdir in /home/ubuntu/.rvm/gems/ruby-1.9.2-p180/gems/ so this is basically a rights management problem.