How to install ASCIIdoctor, a ruby gem using Vagrant

25 views
Skip to first unread message

Anthony Alvarez

unread,
Sep 30, 2017, 2:10:49 PM9/30/17
to Vagrant
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

Alvaro Miranda Aguilera

unread,
Sep 30, 2017, 7:49:55 PM9/30/17
to vagra...@googlegroups.com
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


--
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 vagrant-up+unsubscribe@googlegroups.com.
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

Anthony E. Alvarez

unread,
Sep 30, 2017, 11:18:31 PM9/30/17
to vagra...@googlegroups.com
Alvaro,

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

Thank you so much.
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 vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0eyMAfTOqAxqPnm01P2S_GErM%3D-TR2BgO2AV1yQfUHOAKg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages