[opensuse-factory] Vagrant and Ruby 2.5 in openSUSE
I am unable to install some plugins for vagrant, e.g. vagrant-virtlib and vagrant-kvm. Vagrant will try to compile these plugin first and install the result as a Ruby gem. An number of devel packages are required for a successful compilation. One of those is ruby-devel. The reason for failing to compile, I think, is because Vagrant is shipped with an embedded Ruby. This embedded version is 2.4 and openSUSE ships Ruby 2.5 and hence no proper devel package for Ruby 2.4 is installed. I have tried to manually install Ruby 2.4 using rvm. Although I could tell I had Ruby 2.4 running by looking at the output of 'ruby --version', not all necessary Ruby files had been installed it seemed as the gem generation was still failing with the same error. My question is how do I resolve the above issue of having an embedded Ruby 2.4 within vagrant and not having the devel packages for that embedded version? Regards. Gerben -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi Gerben, On Sat, Jul 14, 2018 at 8:10 AM, Gerben Venekamp <gm.venekamp@quicknet.nl> wrote:
I am unable to install some plugins for vagrant, e.g. vagrant-virtlib and vagrant-kvm. Vagrant will try to compile these plugin first and install the result as a Ruby gem. An number of devel packages are required for a successful compilation. One of those is ruby-devel.
The reason for failing to compile, I think, is because Vagrant is shipped with an embedded Ruby. This embedded version is 2.4 and openSUSE ships Ruby 2.5 and hence no proper devel package for Ruby 2.4 is installed. I have tried to manually install Ruby 2.4 using rvm. Although I could tell I had Ruby 2.4 running by looking at the output of 'ruby --version', not all necessary Ruby files had been installed it seemed as the gem generation was still failing with the same error.
My question is how do I resolve the above issue of having an embedded Ruby 2.4 within vagrant and not having the devel packages for that embedded version?
It sounds like you are using the RPM provided by upstream. Is that correct? I would recommend that you use the RPM provided by openSUSE, although when I last tried plugin installation still did not work. Robert -- http://robert.muntea.nu/ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Tuesday, 17 July 2018 15:32:09 CEST Robert Munteanu wrote:
Hi Gerben,
On Sat, Jul 14, 2018 at 8:10 AM, Gerben Venekamp
<gm.venekamp@quicknet.nl> wrote:
I am unable to install some plugins for vagrant, e.g. vagrant-virtlib and vagrant-kvm. Vagrant will try to compile these plugin first and install the result as a Ruby gem. An number of devel packages are required for a successful compilation. One of those is ruby-devel.
The reason for failing to compile, I think, is because Vagrant is shipped with an embedded Ruby. This embedded version is 2.4 and openSUSE ships Ruby 2.5 and hence no proper devel package for Ruby 2.4 is installed. I have tried to manually install Ruby 2.4 using rvm. Although I could tell I had Ruby 2.4 running by looking at the output of 'ruby --version', not all necessary Ruby files had been installed it seemed as the gem generation was still failing with the same error.
My question is how do I resolve the above issue of having an embedded Ruby 2.4 within vagrant and not having the devel packages for that embedded version? It sounds like you are using the RPM provided by upstream. Is that correct?
That is both a yes and a no. I have tried both. My guess would be that vagrant is not produced with Ruby 2.5 on TW, but rather the binary file from vagrant is taken. However, I do not know how to test this hypothesis. Cheers, Gerben
I would recommend that you use the RPM provided by openSUSE, although when I last tried plugin installation still did not work.
Robert
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Monday, 23 July 2018 09:37:46 CEST Gerben Venekamp wrote:
On Tuesday, 17 July 2018 15:32:09 CEST Robert Munteanu wrote:
Hi Gerben,
On Sat, Jul 14, 2018 at 8:10 AM, Gerben Venekamp
<gm.venekamp@quicknet.nl> wrote:
I am unable to install some plugins for vagrant, e.g. vagrant-virtlib and vagrant-kvm. Vagrant will try to compile these plugin first and install the result as a Ruby gem. An number of devel packages are required for a successful compilation. One of those is ruby-devel.
The reason for failing to compile, I think, is because Vagrant is shipped with an embedded Ruby. This embedded version is 2.4 and openSUSE ships Ruby 2.5 and hence no proper devel package for Ruby 2.4 is installed. I have tried to manually install Ruby 2.4 using rvm. Although I could tell I had Ruby 2.4 running by looking at the output of 'ruby --version', not all necessary Ruby files had been installed it seemed as the gem generation was still failing with the same error.
My question is how do I resolve the above issue of having an embedded Ruby 2.4 within vagrant and not having the devel packages for that embedded version?
It sounds like you are using the RPM provided by upstream. Is that correct?
That is both a yes and a no. I have tried both. My guess would be that vagrant is not produced with Ruby 2.5 on TW, but rather the binary file from vagrant is taken. However, I do not know how to test this hypothesis.
I updated to TW20180720 yesterday and this morning things seem to be working again. vagrant plugin install vagrant-libvirt ==> vagrant: A new version of Vagrant is available: 2.1.2! ==> vagrant: To upgrade visit: https://www.vagrantup.com/downloads.html Installing the 'vagrant-libvirt' plugin. This can take a few minutes... Fetching: excon-0.62.0.gem (100%) Fetching: formatador-0.2.5.gem (100%) Fetching: fog-core-1.43.0.gem (100%) Fetching: fog-json-1.2.0.gem (100%) Fetching: fog-xml-0.1.3.gem (100%) Fetching: fog-libvirt-0.5.0.gem (100%) Fetching: vagrant-libvirt-0.0.43.gem (100%) Installed the plugin 'vagrant-libvirt (0.0.43)'! Cheers, Gerben
Cheers, Gerben
I would recommend that you use the RPM provided by openSUSE, although when I last tried plugin installation still did not work.
Robert
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 23.07.18 12:38 Gerben Venekamp wrote:
I updated to TW20180720 yesterday and this morning things seem to be working again. [...] Installed the plugin 'vagrant-libvirt (0.0.43)'!
I am currently working on getting the plugin installation via rpm packages working again, that has been broken for some time. Stay tuned for more updates soon... Kind Regards, Johannes P.S.: Which version did you use in your OP? Do you remember the vagrant version number? Because we recently had upgrades from 1.9.7 to 2.1.1 to 2.1.2 with quite some changes.
On Monday, 23 July 2018 20:32:25 CEST Johannes Kastl wrote:
On 23.07.18 12:38 Gerben Venekamp wrote:
I updated to TW20180720 yesterday and this morning things seem to be working again.
[...]
Installed the plugin 'vagrant-libvirt (0.0.43)'!
I am currently working on getting the plugin installation via rpm packages working again, that has been broken for some time.
That would be quite interesting indeed! Although the 'vagrant plugin install [...]' works, I would prefer rpms. It keeps the system a bit cleaner.
Stay tuned for more updates soon...
Sure I will. If you need feedback on something, I certainly can try to provide that for you. (Coming weekend I'll be away from computers for a couple of weeks though)
Kind Regards, Johannes
P.S.: Which version did you use in your OP? Do you remember the vagrant version number? Because we recently had upgrades from 1.9.7 to 2.1.1 to 2.1.2 with quite some changes.
Indeed I started with 1.9.7 and then 2.1.1. Both installed with zypper. So, I started out the packages provided by the main repository (http:// download.opensuse.org/tumbleweed/repo/oss/). Later I downloaded a zip file from vagrant itself. This was vagrant 2.1.2. To be clear, I am back on the main repository and thus vagrant 2.1.1, Thanks for all the work. Cheers, Gerben -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Gerben Venekamp
-
Johannes Kastl
-
Robert Munteanu