Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Gem install error on 1.9.0 #86

Closed
howels opened this issue Aug 19, 2016 · 9 comments
Closed

Gem install error on 1.9.0 #86

howels opened this issue Aug 19, 2016 · 9 comments

Comments

@howels
Copy link
Contributor

howels commented Aug 19, 2016

On a new Ubuntu 16.04.1 install I see the following errors:

# gem install rbvmomi -v '1.9.0'
Building native extensions.  This could take a while...
ERROR:  Error installing rbvmomi:
    ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/rbvmomi-1.9.0/ext
/usr/bin/ruby2.3 mkrf_conf.rb
Writing fake Rakefile

current directory: /var/lib/gems/2.3.0/gems/rbvmomi-1.9.0/ext
/usr/bin/ruby2.3 -rubygems /usr/share/rubygems-integration/all/gems/rake-10.5.0/bin/rake RUBYARCHDIR=/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/rbvmomi-1.9.0 RUBYLIBDIR=/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/rbvmomi-1.9.0
/usr/bin/ruby2.3: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake-10.5.0/bin/rake (LoadError)

rake failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/rbvmomi-1.9.0 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/rbvmomi-1.9.0/gem_make.out

Contents of the log file: /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/rbvmomi-1.9.0/gem_make.out

current directory: /var/lib/gems/2.3.0/gems/rbvmomi-1.9.0/ext
/usr/bin/ruby2.3 mkrf_conf.rb
Writing fake Rakefile

current directory: /var/lib/gems/2.3.0/gems/rbvmomi-1.9.0/ext
/usr/bin/ruby2.3 -rubygems /usr/share/rubygems-integration/all/gems/rake-10.5.0/bin/rake RUBYARCHDIR=/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/rbvmomi-1.9.0 RUBYLIBDIR=/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/rbvmomi-1.9.0
/usr/bin/ruby2.3: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake-10.5.0/bin/rake (LoadError)

rake failed, exit code 1
@howels
Copy link
Contributor Author

howels commented Aug 19, 2016

From what I see so far there is a dependency on Rake 11.2 which isn't stated, and when Rake 10.5 is used the above error is thrown.

@jrgarcia
Copy link
Contributor

@howels Yikes. Ok, thanks for reporting. I'll look into it.

@jrgarcia
Copy link
Contributor

@howels Can you provide the Ruby version and RubyGems version? I'm not able to reproduce.

@howels
Copy link
Contributor Author

howels commented Aug 19, 2016

Sure. I'm using the default Ubuntu docker image. So that means Ruby 2.3.1p112 at present. The following docker image will reproduce:

FROM ubuntu:16.04

ENV LANG C.UTF-8

RUN apt-get update && apt-get install -y \
    ruby \
    ruby-dev \
    zlib1g-dev \
    liblzma-dev \
    build-essential \
    patch \
    libxml2-dev \
    libxslt1-dev \
    libxslt-dev \
    libffi-dev \
    libssl-dev \
    --no-install-recommends 

RUN gem install rbvmomi

ENTRYPOINT [ "/bin/bash" ]

@nmaludy
Copy link

nmaludy commented Aug 25, 2016

I'm having the same issue with the following ruby and rake versions on RHEL 7.2.

# ruby --version
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]

# rake --version
rake, version 10.5.0

@jrgarcia
Copy link
Contributor

I'm working on a fix for this right now. I hope to have it committed and release a new version at some point today.

jrgarcia added a commit that referenced this issue Aug 25, 2016
Bump version to 1.9.2 for new release to fix #86
@jrgarcia
Copy link
Contributor

@howels @nmaludy Can you check to see if v1.9.2 fixes this for you?

@nmaludy
Copy link

nmaludy commented Aug 25, 2016

@jrgarcia yes this works on my end. Thanks!

@howels
Copy link
Contributor Author

howels commented Aug 26, 2016

Yes, works for me. Thanks again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants