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

Installation of Snappy is failing in Docker container #28

Open
AkshayDubey29 opened this issue Mar 27, 2018 · 2 comments
Open

Installation of Snappy is failing in Docker container #28

AkshayDubey29 opened this issue Mar 27, 2018 · 2 comments

Comments

@AkshayDubey29
Copy link

Hi,
While installing the snappy in docker container I am getting below error.
Please do help me to resolve the issue.

22:22:11 ERROR: Error installing snappy:
22:22:11 ERROR: Failed to build gem native extension.
22:22:11
22:22:11 current directory: /usr/lib/ruby/gems/2.4.0/gems/snappy-0.0.15/ext
22:22:11 /usr/bin/ruby -r ./siteconf20180327-646-7algd8.rb extconf.rb
22:22:11 checking for -lsnappy... no
22:22:11 ./autogen.sh: line 3: aclocal: not found
22:22:11 ./autogen.sh: line 3: aclocal: not found
22:22:11 *** extconf.rb failed ***
22:22:11 Could not create Makefile due to some reason, probably lack of necessary
22:22:11 libraries and/or headers. Check the mkmf.log file for more details. You may
22:22:11 need configuration options.
22:22:11
22:22:11 Provided configuration options:
22:22:11 --with-opt-dir
22:22:11 --without-opt-dir
22:22:11 --with-opt-include
22:22:11 --without-opt-include=${opt-dir}/include
22:22:11 --with-opt-lib
22:22:11 --without-opt-lib=${opt-dir}/lib
22:22:11 --with-make-prog
22:22:11 --without-make-prog
22:22:11 --srcdir=.
22:22:11 --curdir
22:22:11 --ruby=/usr/bin/$(RUBY_BASE_NAME)
22:22:11 --with-libsnappy-config
22:22:11 --without-libsnappy-config
22:22:11 --with-pkg-config
22:22:11 --without-pkg-config
22:22:11 --with-snappylib
22:22:11 --without-snappylib
22:22:11 extconf.rb:17:in block in <main>': autogen.shfailed (RuntimeError) 22:22:11 from extconf.rb:14:inchdir'
22:22:11 from extconf.rb:14:in `

'
22:22:11
22:22:11 To see why this extension failed to compile, please check the mkmf.log which can be found here:
22:22:11
22:22:11 /usr/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0/snappy-0.0.15/mkmf.log
22:22:11
22:22:11 extconf failed, exit code 1
22:22:11
22:22:11 Gem files will remain installed in /usr/lib/ruby/gems/2.4.0/gems/snappy-0.0.15 for inspection.
22:22:11 Results logged to /usr/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0/snappy-0.0.15/gem_make.out
22:22:11

@miyucy
Copy link
Owner

miyucy commented Mar 31, 2018

Hi
I think your container is lack of some library.

apt-get install libsnappy-dev

or

apt-get install libtool automake autoconf

If you use other distro, please replace that.

@JacksonBaileyHM
Copy link

JacksonBaileyHM commented Oct 13, 2021

In case yum users stumble onto this, yes, yum install -y libtool automake autoconf worked.

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

3 participants