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

Error on bundle install on New Ubuntu system #66

Open
viper25 opened this issue Aug 26, 2018 · 2 comments
Open

Error on bundle install on New Ubuntu system #66

viper25 opened this issue Aug 26, 2018 · 2 comments

Comments

@viper25
Copy link

viper25 commented Aug 26, 2018

ON a fresh new Ubuntu system:

ubuntu@ubuntu:~/resume-template$ uname -a
Linux ubuntu 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

I did a clone of your repo and ran bundle install. I get this:

ubuntu@ubuntu:~/resume-template$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Using concurrent-ruby 1.0.5
Using i18n 0.9.4
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 4.2.9
Using public_suffix 2.0.5
Using addressable 2.5.2
Using bundler 1.16.4
Using coffee-script-source 1.11.1
Using execjs 2.7.0
Using coffee-script 2.4.1
Using colorator 1.1.0
Using ruby-enum 0.7.1
Using commonmarker 0.17.7.1
Fetching ffi 1.9.21
Installing ffi 1.9.21 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /home/ubuntu/resume-template/_vendor/bundle/ruby/2.5.0/gems/ffi-1.9.21/ext/ffi_c
/usr/bin/ruby2.5 -r ./siteconf20180826-31022-1y4iasi.rb extconf.rb
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi... no
checking for shlwapi.h... no
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
creating extconf.h
creating Makefile

current directory: /home/ubuntu/resume-template/_vendor/bundle/ruby/2.5.0/gems/ffi-1.9.21/ext/ffi_c
make "DESTDIR=" clean

current directory: /home/ubuntu/resume-template/_vendor/bundle/ruby/2.5.0/gems/ffi-1.9.21/ext/ffi_c
make "DESTDIR="
Running autoreconf for libffi
/home/ubuntu/resume-template/_vendor/bundle/ruby/2.5.0/gems/ffi-1.9.21/ext/ffi_c/libffi/autogen.sh: 2: exec: autoreconf: not found
libffi.mk:6: recipe for target '"/home/ubuntu/resume-template/_vendor/bundle/ruby/2.5.0/gems/ffi-1.9.21/ext/ffi_c/libffi-x86_64-linux-gnu"/.libs/libffi_convenience.a' failed
make: *** ["/home/ubuntu/resume-template/_vendor/bundle/ruby/2.5.0/gems/ffi-1.9.21/ext/ffi_c/libffi-x86_64-linux-gnu"/.libs/libffi_convenience.a] Error 127

make failed, exit code 2

Gem files will remain installed in /home/ubuntu/resume-template/_vendor/bundle/ruby/2.5.0/gems/ffi-1.9.21 for inspection.
Results logged to /home/ubuntu/resume-template/_vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.9.21/gem_make.out

An error occurred while installing ffi (1.9.21), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.21' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  github-pages was resolved to 176, which depends on
    github-pages-health-check was resolved to 1.3.5, which depends on
      typhoeus was resolved to 0.8.0, which depends on
        ethon was resolved to 0.11.0, which depends on
          ffi
@antgel
Copy link
Contributor

antgel commented Jan 27, 2019

Did you search the web for a solution? How about https://stackoverflow.com/questions/48873852/cannot-install-jekyll-on-ubuntu-17-10?

@rmojgani
Copy link

rmojgani commented Dec 27, 2020

fixed mine with

sudo apt-get update

sudo apt install libtool-bin

sudo apt-get install autoconf

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