Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed in ubuntu 18.04 #2

Open
DmitryBochkarev opened this issue Oct 24, 2019 · 1 comment
Open

Build failed in ubuntu 18.04 #2

DmitryBochkarev opened this issue Oct 24, 2019 · 1 comment

Comments

@DmitryBochkarev
Copy link

Hello! Thank you for this project. I have trouble building this gem.
Build with docker failing with the following scenario:

$ cat Dockerfile
FROM ubuntu:18.04

RUN apt-get update && apt-get install -y ruby-dev bundler

RUN gem install http -v4.2.0
$ docker build .
...

Successfully installed ffi-compiler-1.0.1
Building native extensions. This could take a while...
ERROR:  Error installing http:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.5.0/gems/http-parser-1.2.1/ext
/usr/bin/ruby2.5 -rrubygems /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake RU
BYARCHDIR=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/http-parser-1.2.1 RUBYLIBDIR=/va
r/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/http-parser-1.2.1
/usr/bin/ruby2.5: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake
-12.3.1/exe/rake (LoadError)

rake failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.5.0/gems/http-parser-1.2.1 for inspection
.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/http-parser-1.2.1/gem_ma
ke.out
$ docker run --rm -it ubuntu:18.04 bash
root@179ab131b3be:/# apt-get update && apt-get install -y ruby-dev bundler

...

root@179ab131b3be:/# gem install http-parser -v1.2.1
Fetching: ffi-1.11.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed ffi-1.11.1
Fetching: ffi-compiler-1.0.1.gem (100%)
Successfully installed ffi-compiler-1.0.1
Fetching: http-parser-1.2.1.gem (100%)
Building native extensions. This could take a while...
ERROR:  Error installing http-parser:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.5.0/gems/http-parser-1.2.1/ext
/usr/bin/ruby2.5 -rrubygems /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake RUBYARCHDIR=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/http-parser-1.2.1 RUBYLIBDIR=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/http-parser-1.2.1
/usr/bin/ruby2.5: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake (LoadError)

rake failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.5.0/gems/http-parser-1.2.1 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/http-parser-1.2.1/gem_make.out

root@179ab131b3be:/# cat /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/http-parser-1.2.1/gem_make.out
current directory: /var/lib/gems/2.5.0/gems/http-parser-1.2.1/ext
/usr/bin/ruby2.5 -rrubygems /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake RUBYARCHDIR=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/http-parser-1.2.1 RUBYLIBDIR=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/http-parser-1.2.1
/usr/bin/ruby2.5: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake (LoadError)

rake failed, exit code 1
@ixti
Copy link

ixti commented Oct 24, 2019

It's an Ubuntu gems packaging issue. See httprb/http#572 for details.

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

No branches or pull requests

2 participants