How to install ASCIIdoctor, a ruby gem using Vagrant

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to install ASCIIdoctor, a ruby gem using Vagrant

Anthony Alvarez
Hello,

Got inspiration to use Vagrant from a YouTube Video but instead of "Ruby installer for Windows" wanted to use vagrant.

The question is about installing ASCIIdoctor, which is a Ruby Gem, on a Vagrant box called "cargomedia/debian-7-amd64-default."
ASCIIdoc installation cannot complete due to file permissions error below.

vagrant@debian-7-amd64-default:~$ gem install asciidoctor
ERROR
:  While executing gem ... (Errno::EACCES)
   
Permission denied - /var/lib/gems


Questions
  1. How to choose the best Vagrant box for ASCIIdoc installatio?
  2. What is vagrant super user password? Is it needed to install ASCIIdoctor gem?
  3. Is Oracle VM VirtualBox installation separate from Vagrant? For example: if Vagrant is updated does VirtualBox automatically update or does VirtualBox have to be updated manually?
  4. How to change the vagrant name of "Default" to actual name of the vagrant box being used which is "cargomedia/debian-7-amd64-default?"
See screenshots

Software being used Versions

  • OS: Windows 10x64
  • GIT Bash terminal: GIT version 2.9.0.windows.1
  • Vagrant: v2.0.0
  • Virtual Box: 5.1.14 r112924
Any suggestions and tips greatly appreciated.

Thank you.

Anthony

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/09e1136d-9177-4189-a4c7-3634f88e7d2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to install ASCIIdoctor, a ruby gem using Vagrant

Alvaro Miranda Aguilera
the error is the user vagrant doesnt have access to install gems into /var/lib/gems

try to become root with
sudo su -

and try again


On Sat, Sep 30, 2017 at 8:10 PM, Anthony Alvarez <[hidden email]> wrote:
Hello,

Got inspiration to use Vagrant from a YouTube Video but instead of "Ruby installer for Windows" wanted to use vagrant.

The question is about installing ASCIIdoctor, which is a Ruby Gem, on a Vagrant box called "cargomedia/debian-7-amd64-default."
ASCIIdoc installation cannot complete due to file permissions error below.

vagrant@debian-7-amd64-default:~$ gem install asciidoctor
ERROR
:  While executing gem ... (Errno::EACCES)
   
Permission denied - /var/lib/gems


Questions
  1. How to choose the best Vagrant box for ASCIIdoc installatio?
  2. What is vagrant super user password? Is it needed to install ASCIIdoctor gem?
  3. Is Oracle VM VirtualBox installation separate from Vagrant? For example: if Vagrant is updated does VirtualBox automatically update or does VirtualBox have to be updated manually?
  4. How to change the vagrant name of "Default" to actual name of the vagrant box being used which is "cargomedia/debian-7-amd64-default?"
See screenshots

Software being used Versions

  • OS: Windows 10x64
  • GIT Bash terminal: GIT version 2.9.0.windows.1
  • Vagrant: v2.0.0
  • Virtual Box: 5.1.14 r112924
Any suggestions and tips greatly appreciated.

Thank you.

Anthony

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/09e1136d-9177-4189-a4c7-3634f88e7d2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0eyMAfTOqAxqPnm01P2S_GErM%3D-TR2BgO2AV1yQfUHOAKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to install ASCIIdoctor, a ruby gem using Vagrant

Anthony Alvarez
Alvaro,

You are a genius!
It worked.
Really appreciate your help.

Thank you so much.

On 9/30/2017 7:49 PM, Alvaro Miranda Aguilera wrote:
the error is the user vagrant doesnt have access to install gems into /var/lib/gems

try to become root with
sudo su -

and try again


On Sat, Sep 30, 2017 at 8:10 PM, Anthony Alvarez <[hidden email]> wrote:
Hello,

Got inspiration to use Vagrant from a YouTube Video but instead of "Ruby installer for Windows" wanted to use vagrant.

The question is about installing ASCIIdoctor, which is a Ruby Gem, on a Vagrant box called "cargomedia/debian-7-amd64-default."
ASCIIdoc installation cannot complete due to file permissions error below.

vagrant@debian-7-amd64-default:~$ gem install asciidoctor
ERROR
:  While executing gem ... (Errno::EACCES)
   
Permission denied - /var/lib/gems


Questions
  1. How to choose the best Vagrant box for ASCIIdoc installatio?
  2. What is vagrant super user password? Is it needed to install ASCIIdoctor gem?
  3. Is Oracle VM VirtualBox installation separate from Vagrant? For example: if Vagrant is updated does VirtualBox automatically update or does VirtualBox have to be updated manually?
  4. How to change the vagrant name of "Default" to actual name of the vagrant box being used which is "cargomedia/debian-7-amd64-default?"
See screenshots

Software being used Versions

  • OS: Windows 10x64
  • GIT Bash terminal: GIT version 2.9.0.windows.1
  • Vagrant: v2.0.0
  • Virtual Box: 5.1.14 r112924
Any suggestions and tips greatly appreciated.

Thank you.

Anthony
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/09e1136d-9177-4189-a4c7-3634f88e7d2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/EsAddoBU6YY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0eyMAfTOqAxqPnm01P2S_GErM%3D-TR2BgO2AV1yQfUHOAKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/62b209ae-809f-f800-137e-a4d8582a921f%40gmail.com.
For more options, visit https://groups.google.com/d/optout.