Gentoo Archives: gentoo-user

From: Hubert Hauser <hubot@××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Why I'm unable to run Vagrant as non-root user?
Date: Sat, 07 Oct 2017 10:25:34
Message-Id: e8bdb0a6-ecd1-8e7a-d2f8-00f5da5e4ed9@mail.com
1 I've installed Vagrant in Gentoo from repository. I'm using Ruby 2.2.8.
2 I've got following error when I was tried run Vagrant as non-root user:
3
4     pecan@tux ~ $ vagrant
5    
6 /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in
7 `require': cannot load such file -- checkpoint (LoadError)
8             from
9 /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in
10 `require'
11             from
12 /usr/lib64/ruby/gems/2.2.0/gems/vagrant-1.9.8/lib/vagrant/environment.rb:7:in
13 `<top (required)>'
14             from
15 /usr/lib64/ruby/gems/2.2.0/gems/vagrant-1.9.8/bin/vagrant:118:in `<main>'
16
17 The result of `ruby
18 /usr/lib64/ruby/gems/2.2.0/gems/vagrant-2.0.0/bin/vagrant`:
19
20     pecan@tux ~ $ ruby
21 /usr/lib64/ruby/gems/2.2.0/gems/vagrant-2.0.0/bin/vagrant
22    
23 /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in
24 `require': cannot load such file -- log4r (LoadError)
25             from
26 /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in
27 `require'
28             from
29 /usr/lib64/ruby/gems/2.2.0/gems/vagrant-2.0.0/bin/vagrant:61:in `<main>'
30
31 The result of `sudo vagrant`:
32
33     pecan@tux ~ $ sudo vagrant
34     Usage: vagrant [options] <command> [<args>]
35    
36         -v, --version                    Print the version and exit.
37         -h, --help                       Print this help.
38    
39     Common commands:
40          box             manages boxes: installation, removal, etc.
41          destroy         stops and deletes all traces of the vagrant machine
42          global-status   outputs status Vagrant environments for this user
43          halt            stops the vagrant machine
44          help            shows the help for a subcommand
45          init            initializes a new Vagrant environment by
46 creating a Vagrantfile
47          login           log in to HashiCorp's Vagrant Cloud
48          package         packages a running vagrant environment into a box
49          plugin          manages plugins: install, uninstall, update, etc.
50          port            displays information about guest port mappings
51          powershell      connects to machine via powershell remoting
52          provision       provisions the vagrant machine
53          push            deploys code in this environment to a
54 configured destination
55          rdp             connects to machine via RDP
56          reload          restarts vagrant machine, loads new Vagrantfile
57 configuration
58          resume          resume a suspended vagrant machine
59          snapshot        manages snapshots: saving, restoring, etc.
60          ssh             connects to machine via SSH
61          ssh-config      outputs OpenSSH valid configuration to connect
62 to the machine
63          status          outputs status of the vagrant machine
64          suspend         suspends the machine
65          up              starts and provisions the vagrant environment
66          validate        validates the Vagrantfile
67          version         prints current and latest Vagrant version
68    
69     For help on any individual command run `vagrant COMMAND -h`
70    
71     Additional subcommands are available, but are either more advanced
72     or not commonly used. To see all subcommands, run the command
73     `vagrant list-commands`.
74
75 I'm using the system Ruby. As you can see Vagrant with sudo works but
76 I've question why I'm unable to run Vagrant as non-root user? What
77 should I do to be able run Vagrant as non-root user?
78
79 I'm counting for help.