I successfully installed Heroku(3.99.1) in the terminal but then there was an error message that read:
ERROR: While executing gem ... (Errno::EACCES)
Permission denied # dir_s_mkdir -
/usr/local/lib/ruby/gems/2.4.0/doc/excon-0.59.0
I then tried to login to Heroku in the terminal and the Heroku CLI was installed. I entered my email and password that I registered on the Heroku website, but another message refers to the same error:
MODULE_NOT_FOUND: Cannot find module './lib/request'
I have no idea as to the cause of, or the solution to this problem. Any help would be much appreciated :-)
Related
This is my first question on Stackoverflow thank you for reading it. Basically every time I start up my program which has Spring installed as a gem, no matter what command I run I get this error: Errno::EACCES Permission Denied. I have tried running commands with sudo and the same error appears. The only workaround I have found so far is to comment out Spring in the gem file and run bundle install again. Does anyone have any insight on why this might be happening and how to have spring running without this error appearing.
I am trying to install the gem thinreports-rails on my pc, It has windows 10 installed. But when I ran the instruccion gem install thinreports-rails I got the next error
ERROR: While executing gem ... (Errno::EACCES)
Permission denied # rb_file_s_symlink - (index.tlf, C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/thinreports-rails-0.3.0/test/test_app/app/views/orders/no_set_layout.tlf)
please I will apriciate any comment about how resolve it error. Thanks
as message from error it deals with permission,
Running the terminal as Administrator user will solve this problem, you can right click the the terminal / command prompt, then choose run as administrator, then try to run the command again
This issue is getting me crazy, especially as everything was working before.
Every time I try to establish a web connection, I end up with a Permission denied - connect(2) error, for example trying to launch bundler:
Errno::EACCES: Permission denied - connect(2) for "bundler.rubygems.org" port 443
C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `initialize'
Edit: to be clear the issue is not related to bundler, I get the same error message for the following code:
require 'net/http'
Net::HTTP.get('google.com', '/index.html')
gives me:
C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `initialize': Permission denied - connect(2) for "food2fork.com" port 80 (Errno::EACCES)
Environment
Bundler 1.11.2
Rubygems 2.4.5.1
Ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32]
GEM_HOME C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0
GEM_PATH C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0;C:/Users/user_name/.gem/ruby/2.2.0
Git 2.7.2.windows.1
"..everything was working before" Before what? (may reveal the cause)
First check it's not an issue with windows Firewall. Disable your firewall and try run bundle install again.
If that doesn't help, try changing the source line in your Gemfile to HTTP. ie from
source 'https://rubygems.org'
to
source 'http://rubygems.org'
Change in your Gemfile.
source 'http://rubygems.org' (remove s from https)
Then run the following command. Hopefully it will solve your problem.
bundle install
Also there is already a connection open. connect(2). So Stop another connection. Run one connection at a time. In a same port 2 connection can't be open.
I've tried to install bye bug but am getting the following error:
ERROR: While executing gem ... (Errno::EACCES)
Permission denied # dir_s_mkdir - ./../../extensions/x86_64-darwin-14/2.1.0-static/byebug-3.5.1
I am running Yosemite.
Any help greatly appreciated!
You can refer these two site for the installation of ruby on rails on mac, might help you
https://gorails.com/setup/osx/10.10-yosemite
http://railsapps.github.io/installrubyonrails-mac.html
I'm installing redmine and following instructions in their installation page.
when I run the command : bundle install --without development test
I receive this error : Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/usr/lib64/ruby/1.8/fileutils.rb:243:in `mkdir': Permission denied - /home1/twogupne (Errno::EACCES)
I'm on a bluehost server and I have noted that myhome directory is twohupne not twogupne (as written in the error )
any one can help ?
Perhaps you can try to modify your home's environment variable:
$ export HOME=/home1/twohupne
$ bundle install --without development test
If it doesn't work, have a look at bundle-config and bundle-install