Can I use non-embedded ruby in vagrant?

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

Can I use non-embedded ruby in vagrant?

Jay Zhu
Hi - 

I am new to vagrant. I am trying to experiment it on my Mac OSX 10.8, with the tutorial http://leopard.in.ua/2013/01/04/chef-solo-getting-started-part-1/

I followed the tutorial, expect that I didn't install vagrant from bundle, instead I downloaded the package and installed it as it seems to be the way recommended by document: http://docs.vagrantup.com/v1/docs/getting-started/index.html. I thus removed the line 'gem 'vagrant', "~> 1.0.5"' from the Gemfile.

After I set everything up, and I can run knife solo successfully. However when I run 'vagrant up' I see the following error:

/Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler (LoadError)
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jay/Development/projects/playground/chef-solo-example/Vagrantfile:5:in `<top (required)>'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:115:in `load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:115:in `block in procs_for_source'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config.rb:41:in `block in capture_configures'
from <internal:prelude>:10:in `synchronize'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config.rb:36:in `capture_configures'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:114:in `procs_for_source'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:51:in `block in set'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:45:in `each'
       ....

The following is my ruby information (from rvm info): 
ruby-1.9.3-p374:

  system:
    uname:       "Darwin Jays-MacBook-Pro.local 12.2.1 Darwin Kernel Version 12.2.1: Thu Oct 18 16:32:48 PDT 2012; root:xnu-2050.20.9~2/RELEASE_X86_64 x86_64"
    system:      "osx/10.8/x86_64"
    bash:        "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12)"
    zsh:         "/bin/zsh => zsh 4.3.11 (i386-apple-darwin12.0)"

  rvm:
    version:      "rvm 1.18.5 (stable) by Wayne E. Seguin <[hidden email]>, Michal Papis <[hidden email]> [https://rvm.io/]"
    updated:      "14 hours 32 minutes 56 seconds ago"

  ruby:
    interpreter:  "ruby"
    version:      "1.9.3p374"
    date:         "2013-01-15"
    platform:     "x86_64-darwin12.2.1"
    patchlevel:   "2013-01-15 revision 38858"
    full_version: "ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.1]"

So I suppose that the issue is caused by vagrant is using its embedded ruby instead of the one specified by rvm. Is there anyway to use ruby in my system instead of the embedded one?

Thanks in advance for any help and suggestions!

Thanks,
Jay

--
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].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Can I use non-embedded ruby in vagrant?

Kevin Kaland
Currently, you can't. I asked the author about if Vagrant still worked directly with Rake and got a no precisely because of this.

If you want to integrate with Vagrant, you have to do it by shelling out.

All that said, the downloadable Vagrant packages should install without issue and be self-contained. I also use Mac OS X (although 10.7).

On Monday, February 4, 2013 6:10:45 AM UTC+1, Jay Zhu wrote:
Hi - 

I am new to vagrant. I am trying to experiment it on my Mac OSX 10.8, with the tutorial http://leopard.in.ua/2013/01/04/chef-solo-getting-started-part-1/

I followed the tutorial, expect that I didn't install vagrant from bundle, instead I downloaded the package and installed it as it seems to be the way recommended by document: http://docs.vagrantup.com/v1/docs/getting-started/index.html. I thus removed the line 'gem 'vagrant', "~> 1.0.5"' from the Gemfile.

After I set everything up, and I can run knife solo successfully. However when I run 'vagrant up' I see the following error:

/Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler (LoadError)
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jay/Development/projects/playground/chef-solo-example/Vagrantfile:5:in `<top (required)>'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:115:in `load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:115:in `block in procs_for_source'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config.rb:41:in `block in capture_configures'
from <internal:prelude>:10:in `synchronize'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config.rb:36:in `capture_configures'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:114:in `procs_for_source'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:51:in `block in set'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:45:in `each'
       ....

The following is my ruby information (from rvm info): 
ruby-1.9.3-p374:

  system:
    uname:       "Darwin Jays-MacBook-Pro.local 12.2.1 Darwin Kernel Version 12.2.1: Thu Oct 18 16:32:48 PDT 2012; root:xnu-2050.20.9~2/RELEASE_X86_64 x86_64"
    system:      "osx/10.8/x86_64"
    bash:        "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12)"
    zsh:         "/bin/zsh => zsh 4.3.11 (i386-apple-darwin12.0)"

  rvm:
    version:      "rvm 1.18.5 (stable) by Wayne E. Seguin <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="yydci22T39UJ">waynee...@...>, Michal Papis <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="yydci22T39UJ">mpa...@...> [https://rvm.io/]"
    updated:      "14 hours 32 minutes 56 seconds ago"

  ruby:
    interpreter:  "ruby"
    version:      "1.9.3p374"
    date:         "2013-01-15"
    platform:     "x86_64-darwin12.2.1"
    patchlevel:   "2013-01-15 revision 38858"
    full_version: "ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.1]"

So I suppose that the issue is caused by vagrant is using its embedded ruby instead of the one specified by rvm. Is there anyway to use ruby in my system instead of the embedded one?

Thanks in advance for any help and suggestions!

Thanks,
Jay

--
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].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Can I use non-embedded ruby in vagrant?

gareth rushgrove
In reply to this post by Jay Zhu
On 4 February 2013 05:10, Jay Zhu <[hidden email]> wrote:

> Hi -
>
> I am new to vagrant. I am trying to experiment it on my Mac OSX 10.8, with
> the tutorial
> http://leopard.in.ua/2013/01/04/chef-solo-getting-started-part-1/
>
> I followed the tutorial, expect that I didn't install vagrant from bundle,
> instead I downloaded the package and installed it as it seems to be the way
> recommended by document:
> http://docs.vagrantup.com/v1/docs/getting-started/index.html. I thus removed
> the line 'gem 'vagrant', "~> 1.0.5"' from the Gemfile.
>
> After I set everything up, and I can run knife solo successfully. However
> when I run 'vagrant up' I see the following error:
>

This error is being caused because of the the Vagrantfile in the
example, specifically the line

    require 'bundler'

Vagrant has it's own Ruby and it's own set of gems. Which means when
the Vagrantfile hits that line it fails to load bundler, because it's
not available. You might be able to get somewhere with:

    vagrant gem install bundler

In reality what you actually require is multi_json, so I'd be tempted
to remove the bundler references from the Vagrantfile and do

    vagrant gem install multi_json


The Vagrantfile is just Ruby code, which makes it powerful but also
means if you're using things from outside the standard library you
need to understand a bit of the rabbit warren that is Ruby library
support.

Gareth


> /Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
> `require': cannot load such file -- bundler (LoadError)
> from
> /Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
> `require'
> from
> /Users/jay/Development/projects/playground/chef-solo-example/Vagrantfile:5:in
> `<top (required)>'
> from
> /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:115:in
> `load'
> from
> /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:115:in
> `block in procs_for_source'
> from
> /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config.rb:41:in
> `block in capture_configures'
> from <internal:prelude>:10:in `synchronize'
> from
> /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config.rb:36:in
> `capture_configures'
> from
> /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:114:in
> `procs_for_source'
> from
> /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:51:in
> `block in set'
> from
> /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:45:in
> `each'
>        ....
>
>
> The following is my ruby information (from rvm info):
>
> ruby-1.9.3-p374:
>
>   system:
>     uname:       "Darwin Jays-MacBook-Pro.local 12.2.1 Darwin Kernel Version
> 12.2.1: Thu Oct 18 16:32:48 PDT 2012; root:xnu-2050.20.9~2/RELEASE_X86_64
> x86_64"
>     system:      "osx/10.8/x86_64"
>     bash:        "/bin/bash => GNU bash, version 3.2.48(1)-release
> (x86_64-apple-darwin12)"
>     zsh:         "/bin/zsh => zsh 4.3.11 (i386-apple-darwin12.0)"
>
>   rvm:
>     version:      "rvm 1.18.5 (stable) by Wayne E. Seguin
> <[hidden email]>, Michal Papis <[hidden email]> [https://rvm.io/]"
>     updated:      "14 hours 32 minutes 56 seconds ago"
>
>   ruby:
>     interpreter:  "ruby"
>     version:      "1.9.3p374"
>     date:         "2013-01-15"
>     platform:     "x86_64-darwin12.2.1"
>     patchlevel:   "2013-01-15 revision 38858"
>     full_version: "ruby 1.9.3p374 (2013-01-15 revision 38858)
> [x86_64-darwin12.2.1]"
>
>
> So I suppose that the issue is caused by vagrant is using its embedded ruby
> instead of the one specified by rvm. Is there anyway to use ruby in my
> system instead of the embedded one?
>
> Thanks in advance for any help and suggestions!
>
> Thanks,
> Jay
>
> --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Gareth Rushgrove
Web Geek

morethanseven.net
garethrushgrove.com

--
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply | Threaded
Open this post in threaded view
|

Re: Can I use non-embedded ruby in vagrant?

bot 4
In reply to this post by Kevin Kaland
Hi,

It's 2018 now, is there a way to quote "Is there anyway to use ruby in my system instead of the embedded one?"

On Sunday, February 10, 2013 at 1:56:46 PM UTC+5, Kevin Kaland wrote:
Currently, you can't. I asked the author about if Vagrant still worked directly with Rake and got a no precisely because of this.

If you want to integrate with Vagrant, you have to do it by shelling out.

All that said, the downloadable Vagrant packages should install without issue and be self-contained. I also use Mac OS X (although 10.7).

On Monday, February 4, 2013 6:10:45 AM UTC+1, Jay Zhu wrote:
Hi - 

I am new to vagrant. I am trying to experiment it on my Mac OSX 10.8, with the tutorial <a href="http://leopard.in.ua/2013/01/04/chef-solo-getting-started-part-1/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fleopard.in.ua%2F2013%2F01%2F04%2Fchef-solo-getting-started-part-1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEZ6HJj4-23beFOCcYlBfMKH7S5qw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fleopard.in.ua%2F2013%2F01%2F04%2Fchef-solo-getting-started-part-1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEZ6HJj4-23beFOCcYlBfMKH7S5qw&#39;;return true;">http://leopard.in.ua/2013/01/04/chef-solo-getting-started-part-1/

I followed the tutorial, expect that I didn't install vagrant from bundle, instead I downloaded the package and installed it as it seems to be the way recommended by document: <a href="http://docs.vagrantup.com/v1/docs/getting-started/index.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdocs.vagrantup.com%2Fv1%2Fdocs%2Fgetting-started%2Findex.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHaX_3e7WyNsSQGlf2THNnlbQfpIg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdocs.vagrantup.com%2Fv1%2Fdocs%2Fgetting-started%2Findex.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHaX_3e7WyNsSQGlf2THNnlbQfpIg&#39;;return true;">http://docs.vagrantup.com/v1/docs/getting-started/index.html. I thus removed the line 'gem 'vagrant', "~> 1.0.5"' from the Gemfile.

After I set everything up, and I can run knife solo successfully. However when I run 'vagrant up' I see the following error:

/Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler (LoadError)
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jay/Development/projects/playground/chef-solo-example/Vagrantfile:5:in `<top (required)>'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:115:in `load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:115:in `block in procs_for_source'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config.rb:41:in `block in capture_configures'
from <internal:prelude>:10:in `synchronize'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config.rb:36:in `capture_configures'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:114:in `procs_for_source'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:51:in `block in set'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:45:in `each'
       ....

The following is my ruby information (from rvm info): 
ruby-1.9.3-p374:

  system:
    uname:       "Darwin Jays-MacBook-Pro.local 12.2.1 Darwin Kernel Version 12.2.1: Thu Oct 18 16:32:48 PDT 2012; root:xnu-2050.20.9~2/RELEASE_X86_64 x86_64"
    system:      "osx/10.8/x86_64"
    bash:        "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12)"
    zsh:         "/bin/zsh => zsh 4.3.11 (i386-apple-darwin12.0)"

  rvm:
    version:      "rvm 1.18.5 (stable) by Wayne E. Seguin <[hidden email]>, Michal Papis <[hidden email]> [<a href="https://rvm.io/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frvm.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGi5Vdl_7_0j7C0-OHlnVJAJLHyQw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frvm.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGi5Vdl_7_0j7C0-OHlnVJAJLHyQw&#39;;return true;">https://rvm.io/]"
    updated:      "14 hours 32 minutes 56 seconds ago"

  ruby:
    interpreter:  "ruby"
    version:      "1.9.3p374"
    date:         "2013-01-15"
    platform:     "x86_64-darwin12.2.1"
    patchlevel:   "2013-01-15 revision 38858"
    full_version: "ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.1]"

So I suppose that the issue is caused by vagrant is using its embedded ruby instead of the one specified by rvm. Is there anyway to use ruby in my system instead of the embedded one?

Thanks in advance for any help and suggestions!

Thanks,
Jay

--
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/d20bd129-9af3-4070-bfaa-0fec33f2f248%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Can I use non-embedded ruby in vagrant?

Alvaro Miranda Aguilera
No.

Vagrant is distributed with an installed now,

whats the problem using the installer and the environment that came with it?

On Tue, Jul 3, 2018 at 7:55 PM, bot 4 <[hidden email]> wrote:
Hi,

It's 2018 now, is there a way to quote "Is there anyway to use ruby in my system instead of the embedded one?"

On Sunday, February 10, 2013 at 1:56:46 PM UTC+5, Kevin Kaland wrote:
Currently, you can't. I asked the author about if Vagrant still worked directly with Rake and got a no precisely because of this.

If you want to integrate with Vagrant, you have to do it by shelling out.

All that said, the downloadable Vagrant packages should install without issue and be self-contained. I also use Mac OS X (although 10.7).

On Monday, February 4, 2013 6:10:45 AM UTC+1, Jay Zhu wrote:
Hi - 

I am new to vagrant. I am trying to experiment it on my Mac OSX 10.8, with the tutorial http://leopard.in.ua/2013/01/04/chef-solo-getting-started-part-1/

I followed the tutorial, expect that I didn't install vagrant from bundle, instead I downloaded the package and installed it as it seems to be the way recommended by document: http://docs.vagrantup.com/v1/docs/getting-started/index.html. I thus removed the line 'gem 'vagrant', "~> 1.0.5"' from the Gemfile.

After I set everything up, and I can run knife solo successfully. However when I run 'vagrant up' I see the following error:

/Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler (LoadError)
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jay/Development/projects/playground/chef-solo-example/Vagrantfile:5:in `<top (required)>'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:115:in `load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:115:in `block in procs_for_source'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config.rb:41:in `block in capture_configures'
from <internal:prelude>:10:in `synchronize'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config.rb:36:in `capture_configures'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:114:in `procs_for_source'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:51:in `block in set'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:45:in `each'
       ....

The following is my ruby information (from rvm info): 
ruby-1.9.3-p374:

  system:
    uname:       "Darwin Jays-MacBook-Pro.local 12.2.1 Darwin Kernel Version 12.2.1: Thu Oct 18 16:32:48 PDT 2012; root:xnu-2050.20.9~2/RELEASE_X86_64 x86_64"
    system:      "osx/10.8/x86_64"
    bash:        "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12)"
    zsh:         "/bin/zsh => zsh 4.3.11 (i386-apple-darwin12.0)"

  rvm:
    version:      "rvm 1.18.5 (stable) by Wayne E. Seguin <[hidden email]>, Michal Papis <[hidden email]> [https://rvm.io/]"
    updated:      "14 hours 32 minutes 56 seconds ago"

  ruby:
    interpreter:  "ruby"
    version:      "1.9.3p374"
    date:         "2013-01-15"
    platform:     "x86_64-darwin12.2.1"
    patchlevel:   "2013-01-15 revision 38858"
    full_version: "ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.1]"

So I suppose that the issue is caused by vagrant is using its embedded ruby instead of the one specified by rvm. Is there anyway to use ruby in my system instead of the embedded one?

Thanks in advance for any help and suggestions!

Thanks,
Jay

--
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/d20bd129-9af3-4070-bfaa-0fec33f2f248%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/CAHqq0ewTvgyWxMbLfFdnTE4xjor71vZrqMRBpz%3DR%2BstGiSFUfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Can I use non-embedded ruby in vagrant?

bot 4
Hi,

Was trying a different approach to another problem, solved it by finding the required updated vagrant version.


On Wednesday, July 4, 2018 at 7:56:25 PM UTC+5, Alvaro Miranda Aguilera wrote:
No.

Vagrant is distributed with an installed now,

whats the problem using the installer and the environment that came with it?

On Tue, Jul 3, 2018 at 7:55 PM, bot 4 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="E0Dy--roCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">botwillt...@...> wrote:
Hi,

It's 2018 now, is there a way to quote "Is there anyway to use ruby in my system instead of the embedded one?"

On Sunday, February 10, 2013 at 1:56:46 PM UTC+5, Kevin Kaland wrote:
Currently, you can't. I asked the author about if Vagrant still worked directly with Rake and got a no precisely because of this.

If you want to integrate with Vagrant, you have to do it by shelling out.

All that said, the downloadable Vagrant packages should install without issue and be self-contained. I also use Mac OS X (although 10.7).

On Monday, February 4, 2013 6:10:45 AM UTC+1, Jay Zhu wrote:
Hi - 

I am new to vagrant. I am trying to experiment it on my Mac OSX 10.8, with the tutorial <a href="http://leopard.in.ua/2013/01/04/chef-solo-getting-started-part-1/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fleopard.in.ua%2F2013%2F01%2F04%2Fchef-solo-getting-started-part-1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEZ6HJj4-23beFOCcYlBfMKH7S5qw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fleopard.in.ua%2F2013%2F01%2F04%2Fchef-solo-getting-started-part-1%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEZ6HJj4-23beFOCcYlBfMKH7S5qw&#39;;return true;">http://leopard.in.ua/2013/01/04/chef-solo-getting-started-part-1/

I followed the tutorial, expect that I didn't install vagrant from bundle, instead I downloaded the package and installed it as it seems to be the way recommended by document: <a href="http://docs.vagrantup.com/v1/docs/getting-started/index.html" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdocs.vagrantup.com%2Fv1%2Fdocs%2Fgetting-started%2Findex.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHaX_3e7WyNsSQGlf2THNnlbQfpIg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdocs.vagrantup.com%2Fv1%2Fdocs%2Fgetting-started%2Findex.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHaX_3e7WyNsSQGlf2THNnlbQfpIg&#39;;return true;">http://docs.vagrantup.com/v1/docs/getting-started/index.html. I thus removed the line 'gem 'vagrant', "~> 1.0.5"' from the Gemfile.

After I set everything up, and I can run knife solo successfully. However when I run 'vagrant up' I see the following error:

/Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler (LoadError)
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jay/Development/projects/playground/chef-solo-example/Vagrantfile:5:in `<top (required)>'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:115:in `load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:115:in `block in procs_for_source'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config.rb:41:in `block in capture_configures'
from <internal:prelude>:10:in `synchronize'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config.rb:36:in `capture_configures'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:114:in `procs_for_source'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:51:in `block in set'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.6/lib/vagrant/config/loader.rb:45:in `each'
       ....

The following is my ruby information (from rvm info): 
ruby-1.9.3-p374:

  system:
    uname:       "Darwin Jays-MacBook-Pro.local 12.2.1 Darwin Kernel Version 12.2.1: Thu Oct 18 16:32:48 PDT 2012; root:xnu-2050.20.9~2/RELEASE_X86_64 x86_64"
    system:      "osx/10.8/x86_64"
    bash:        "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12)"
    zsh:         "/bin/zsh => zsh 4.3.11 (i386-apple-darwin12.0)"

  rvm:
    version:      "rvm 1.18.5 (stable) by Wayne E. Seguin <[hidden email]>, Michal Papis <[hidden email]> [<a href="https://rvm.io/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frvm.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGi5Vdl_7_0j7C0-OHlnVJAJLHyQw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frvm.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGi5Vdl_7_0j7C0-OHlnVJAJLHyQw&#39;;return true;">https://rvm.io/]"
    updated:      "14 hours 32 minutes 56 seconds ago"

  ruby:
    interpreter:  "ruby"
    version:      "1.9.3p374"
    date:         "2013-01-15"
    platform:     "x86_64-darwin12.2.1"
    patchlevel:   "2013-01-15 revision 38858"
    full_version: "ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.1]"

So I suppose that the issue is caused by vagrant is using its embedded ruby instead of the one specified by rvm. Is there anyway to use ruby in my system instead of the embedded one?

Thanks in advance for any help and suggestions!

Thanks,
Jay

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="E0Dy--roCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/d20bd129-9af3-4070-bfaa-0fec33f2f248%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/d20bd129-9af3-4070-bfaa-0fec33f2f248%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/d20bd129-9af3-4070-bfaa-0fec33f2f248%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/d20bd129-9af3-4070-bfaa-0fec33f2f248%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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/6fa3cc83-8053-42fa-9ba1-f6f16966ea87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.