Hi Honza,
Thanks for answering. nothing special, that is Vagrant Centos images from
hashicorp/centos repo. i tried to change the path after doing scl enable ,
but it did not work, could you provide me with your $PATH, as well the
output of the command
"which vagrant", and what centos release you are on? i am on updated
"CentOS Linux release 7.1.1503 (Core) "
[vagrant@agent1 ~]$ scl enable sclo-vagrant1 "bash"
[vagrant@agent1 ~]$ export PATH=/opt/rh/sclo-vagrant1/root/usr/bin/:$PATH
[vagrant@agent1 ~]$ vagrant --version
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require':
cannot load such file -- json/pure (LoadError)
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in
`require'
from
/opt/rh/rh-ruby22/root/usr/share/gems/gems/json-1.8.1/lib/json.rb:60:in
`rescue in <module:JSON>'
from
/opt/rh/rh-ruby22/root/usr/share/gems/gems/json-1.8.1/lib/json.rb:57:in
`<module:JSON>'
from
/opt/rh/rh-ruby22/root/usr/share/gems/gems/json-1.8.1/lib/json.rb:54:in
`<top (required)>'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:135:in
`require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:135:in
`rescue in require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:144:in
`require'
from
/opt/rh/sclo-vagrant1/root/usr/share/vagrant/lib/vagrant/plugin/state_file.rb:1:in
`<top (required)>'
from
/opt/rh/sclo-vagrant1/root/usr/share/vagrant/lib/vagrant/plugin/manager.rb:6:in
`require_relative'
from
/opt/rh/sclo-vagrant1/root/usr/share/vagrant/lib/vagrant/plugin/manager.rb:6:in
`<top (required)>'
from
/opt/rh/sclo-vagrant1/root/usr/share/vagrant/lib/vagrant/pre-rubygems.rb:20:in
`require_relative'
from
/opt/rh/sclo-vagrant1/root/usr/share/vagrant/lib/vagrant/pre-rubygems.rb:20:in
`<main>'
On 12 November 2015 at 13:42, Honza Horak <[email protected]> wrote:
> On 11/12/2015 10:22 AM, Walid wrote:
>
>> Hi,
>>
>> it does not seem to work for me, I mean the simple instructions as in
>> the announcement.
>>
>> [vagrant@agent1 ~]$ scl -l
>> rh-ror41
>> rh-ruby22
>> sclo-vagrant1
>>
>> [vagrant@agent1 ~]$ which vagrant
>> /usr/bin/which: no vagrant in
>>
>> (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/puppetlabs/bin:/root/bin:/usr/local/bin:/opt/puppet/bin)
>>
>>
>> [vagrant@agent1 ~]$ sudo scl enable sclo-vagrant1 "which vagrant"
>> /opt/rh/sclo-vagrant1/root/usr/bin/vagrant
>>
>>
>>
>> [vagrant@agent1 ~]$ sudo scl enable sclo-vagrant1 "bash"
>> [root@agent1 vagrant]# vagrant
>> bash: vagrant: command not found
>>
>
> Well, this is where my experience differs, it works fine in my environment:
> [hhorak@hhorak ~]$ sudo scl enable sclo-vagrant1 "bash"
> [root@hhorak ~]# vagrant
> Usage: vagrant [options] <command> [<args>]
> ...
>
> Is there anything special in your environment, especially around
> environment variables?
>
> [root@agent1 vagrant]# /opt/rh/sclo-vagrant1/root/usr/bin/vagrant
>>
>
> This is expected, that in case vagrant is not found on PATH, then it won't
> work either when running with full path.
>
> Honza
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/56446D20.6070108%40redhat.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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/CAN4dctq75Rd6bW_uL80xQpz_b%3Dw6nfq-J7PQWWA0QaMNQ60UAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.