Broken vagrant install on openSuSE 13.2 because "nothing provides rubygem"

I’m trying to install a VM which requires a vagrant box on openSuSE 13.2

It doesn’t seem to matter which repository, or combination of online suggestions, I attempt, the install always fails with rubygem:


root@thpad  ~>zypper in rubygem-vagrant

Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides rubygem(ruby:2.1.0:listen:2.8) >= 2.8 needed by rubygem-vagrant-1.7.2-7.1.x86_64
 Solution 1: do not install rubygem-vagrant-1.7.2-7.1.x86_64
 Solution 2: break rubygem-vagrant-1.7.2-7.1.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c] (c): 1
Resolving dependencies...
Resolving package dependencies...

Nothing to do.
root@thpad  ~>


This is quite frustrating, as nothing appears to provide rubygem cleanly. I have the Ruby Extensions repo. here:


[http://download.opensuse.org/reposit.../openSUSE_13.2](http://download.opensuse.org/repositories/devel:/languages:/ruby/openSUSE_13.2)

[http://download.opensuse.org/reposit...openSUSE_13.2/](http://download.opensuse.org/repositories/devel:/languages:/ruby:/extensions/openSUSE_13.2/)


Helpful suggestions very much appreciated.

Thanks in advance.

R.

First make sure Ruby 2.1 is installed, have you installed the packages I describe in my Wiki?
https://en.opensuse.org/User:Tsu2/Install_Ruby#Install_Ruby_from_the_openSUSE_repos

Then,
Try again.
If that doesn’t work, then

  1. If you wish to try to continue to install using the openSUSE repos, you may need to submit a bug.
    But it may take awhile to resolve your issue.

  2. You can try to install from the official Ruby repos instead. My overall Wiki page describes how to install.

If you have any Q,
Post again.

TSU

hi TSU,

thanks for your reply. Ok, so I’ve run the following commands to install via the openSuSE repos:


> zypper in ruby rubygem-bundler nodejs git    gcc make libopenssl-devel sqlite3-devel
<snip>
Nothing to do.

Followed by:


>  zypper in ruby2.1 ruby2.1-devel rubygem-rubygems-update

Loading repository data...
Reading installed packages...
'ruby2.1' is already installed.
There is an update candidate for 'ruby2.1', but it is from a different vendor. Use 'zypper install ruby2.1-2.1.9-32.1.x86_64' to install this candidate.
'ruby2.1-devel' is already installed.
There is an update candidate for 'ruby2.1-devel', but it is from a different vendor. Use 'zypper install ruby2.1-devel-2.1.9-32.1.x86_64' to install this candidate.
'rubygem-rubygems-update' not found in package names. Trying capabilities.
No provider of 'rubygem-rubygems-update' found.
Resolving package dependencies...


Nothing to do.

Which suggests rubygem-rubygems-update is not supported via openSuSE.

Which is very frustrating, I’m trying your official-ruby path now…

R.

Ok, so, I’ve installed ruby from the official ruby repos., as per your description:


> ruby -vruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]

However, this doesn’t get me much further as, according to the vagrant install, I still need something which is not provided. Or am I misunderstanding something here?


>rpm -i rubygem-vagrant-1.7.2-7.1.x86_64.rpm
error: Failed dependencies:
        rubygem(ruby:2.1.0:bundler) < 1.8.0 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:childprocess:0.5) >= 0.5 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:erubis:2.7) >= 2.7 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:hashicorp-checkpoint:0.1) >= 0.1.1 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:i18n:0.6) >= 0.6 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:listen:2.8) >= 2.8 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:log4r) < 1.1.11 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:log4r:1.1) >= 1.1.9 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:net-scp:1.1) >= 1.1 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:net-sftp:2) >= 2.1 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:net-ssh) < 2.10.0 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:net-ssh) >= 2.6.6 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:nokogiri) = 1.6.3.1 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:rb-kqueue:0.2) >= 0.2 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:rest-client) >= 1.6.0 is needed by rubygem-vagrant-1.7.2-7.1.x86_64
        rubygem(ruby:2.1.0:rest-client) < 2.0 is needed by rubygem-vagrant-1.7.2-7.1.x86_64

You’ll see I’m trying to install either of 2 vagrant rpms. The above was supposed to be compatible with openSuSE 13.2 from another thread. No luck with that either. Here’s the official RPM:


>rpm -i vagrant-1.8.6-2.x86_64.rpm
error: Failed dependencies:
        /root/bamboo-builds/BUILD-VG-CORE-DEB64-1111/tmp.iAaXSV4AdK/substrate/embedded/bin/ruby is needed by vagrant-1.8.6-2.x86_64
        libc.so.7 is needed by vagrant-1.8.6-2.x86_64
        libc.so.7()(64bit) is needed by vagrant-1.8.6-2.x86_64
        libc.so.7(FBSD_1.0) is needed by vagrant-1.8.6-2.x86_64
        libc.so.7(FBSD_1.0)(64bit) is needed by vagrant-1.8.6-2.x86_64
>

All I want is a working vagrant box… :\

R.

ok, belay all of this.

Even following your assist, TSU, the Vagrant Debian RPM continued to throw rubygem errors. I switched to trying with the Vagrant CentOS RPM instead. This installed sweetly, so I’m proceeding on that front, (and we’ll see how far it runs…) It’s hard to tell for certain as I don’t want to back it all out to check it, but it may indeed have made all the difference there.

Many thanks!

Cheers

R.

Cool.
You might do a quick inspection of the contents running the following command (I’d be surprised if it contains more than just the vagrant script and a manifest) and compare to the openSUSE RPM.

rpm -ql* packagename.rpm* 

The difference and the reason is probably in there.

Whether you find a certain reason or not,
It’d be helpful to submit a bug report with your findings as much as you can do to https://bugzilla.opensuse.org.

TSU

ok, and thanks for your assistance, TSU, and here’s the bug report (fyi): 1003249 – Broken vagrant install because "nothing provides rubygem"