Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: While executing gem ... (Errno::EACCES) #458

Open
ghost opened this issue Mar 26, 2015 · 9 comments
Open

ERROR: While executing gem ... (Errno::EACCES) #458

ghost opened this issue Mar 26, 2015 · 9 comments

Comments

@ghost
Copy link

ghost commented Mar 26, 2015

I get this error while executing vagrant up following the install instruction from the documentation

`==> Vaprobash: >>> Start installing Ruby Gems
==> Vaprobash: ERROR: While executing gem ... (Errno::EACCES)
==> Vaprobash: Permission denied - /var/lib/gems
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell "latest" "sass" "compass"`

@fideloper
Copy link
Owner

Is this from installing rvm.sh shell script or something else that depending on Ruby?

@ghost
Copy link
Author

ghost commented Apr 1, 2015

yes, here is the full log

==> Vaprobash: /tmp/vagrant-shell: line 48: /home/vagrant/.rvm/scripts/rvm: No such file or directory
==> Vaprobash: >>> Start installing Ruby Gems
==> Vaprobash: ERROR: While executing gem ... (Errno::EACCES)
==> Vaprobash: Permission denied - /var/lib/gems
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell "latest" "sass" "compass"

switching from 1.4.1 to master

@FDiskas
Copy link

FDiskas commented Apr 13, 2015

I got the same problem. Vagrant is running on Mac

 /tmp/vagrant-shell: line 48: /home/vagrant/.rvm/scripts/rvm: No such file or directory
==> Vaprobash: ERROR:  While executing gem ... (Errno::EACCES)
==> Vaprobash: Permission denied @ dir_s_mkdir - /var/lib/gems
The SSH command responded with a non-zero exit status.

@FDiskas
Copy link

FDiskas commented Apr 13, 2015

==> : >>> Start installing Ruby Gems
==> : Successfully installed sass-3.4.13
==> : Building native extensions.  This could take a while...
==> : ERROR:  Error installing compass:
==> :    ERROR: Failed to build gem native extension.
==> :
==> :         /usr/bin/ruby1.9.1 extconf.rb
==> : /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
==> :    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
==> :    from extconf.rb:4:in `<main>'
==> :
==> :
==> : Gem files will remain installed in /var/lib/gems/1.9.1/gems/ffi-1.9.8 for inspection.
==> : Results logged to /var/lib/gems/1.9.1/gems/ffi-1.9.8/ext/ffi_c/gem_make.out

vagrant

ruby_gems = [ # List any Ruby Gems that you want to install
#"jekyll",
"sass",
"compass",
"bootstrap-sass"
]

@FDiskas
Copy link

FDiskas commented Apr 13, 2015

I tried after installing the ruby

sudo apt-get install ruby-dev

this is for additional files to build executables. And its worked

@thibmaek
Copy link

Same error but strangely enough only for Compass

@cmosguy
Copy link

cmosguy commented May 12, 2015

@fideloper @exuperok

I recently encountered this error and i have included that the entire RVM system install gets botched because I was trying to install a key behind my companies firewall. The command:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

Uses the port 11371 which is blocked by the firewall. What actually worked was using the recommended command to get this key:

command curl -sSL https://rvm.io/mpapis.asc | gpg --import -

then i could do:

\curl -sSL https://get.rvm.io | bash -s stable --ruby

After which I could get ruby > 2.0.

Is it possible if we could modify the Vaprobash scripts to support this command instead?

Thanks,
Adam

@fideloper
Copy link
Owner

Gotcha - yeah that sounds like a good alternative.

On Tue, May 12, 2015 at 1:10 PM Adam Klein notifications@github.com wrote:

@fideloper https://github.com/fideloper @exuperok
https://github.com/exuperok

I recently encountered this error and i have included that the entire RVM
system install gets botched because I was trying to install a key behind my
companies firewall. The command:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

Uses the port 11371 which is blocked by the firewall. What actually worked
was using the recommended command to get this key:

command curl -sSL https://rvm.io/mpapis.asc | gpg --import -

then i could do:

\curl -sSL https://get.rvm.io | bash -s stable --ruby

After which I could get ruby > 2.0.

Is it possible if we could modify the Vaprobash scripts to support this
command instead?

Thanks,
Adam


Reply to this email directly or view it on GitHub
#458 (comment)
.

@ghost
Copy link
Author

ghost commented May 14, 2015

@cmosguy thanks for this, it worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants