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 installing ffi-yajl: undefined method `include_path' for Libyajl2:Module #91

Closed
easterwood opened this issue Jun 29, 2017 · 1 comment

Comments

@easterwood
Copy link

easterwood commented Jun 29, 2017

Hi,

i've got this strange error during installation of ffi-yajli. My ruby version is 2.3.0 and libyajl2 version 1.2.0 is installed see local-gems.txt.
And I'm using Ubuntu 16.04.2 LTS.

Any ideas? Any help?

Thanks

Stacktrace:

Building native extensions.  This could take a while...
ERROR:  Error installing ffi-yajl:
	ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/ffi-yajl-2.3.1/ext/ffi_yajl/ext/encoder
/usr/bin/ruby2.3 -r ./siteconf20170629-16055-wtpqe8.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/bin/$(RUBY_BASE_NAME)2.3
extconf.rb:9:in `<main>': undefined method `include_path' for Libyajl2:Module (NoMethodError)
Did you mean?  include

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/ffi-yajl-2.3.1 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ffi-yajl-2.3.1/gem_make.out
@easterwood
Copy link
Author

Okay, I found a solution for my problem. First I uninstalled every ruby thing with sudo apt remove ruby. Afterwards I installed ruby as described here. Now I use ruby version 2.4.0. Now bundle install runs without any error.

Idk if the newer ruby version helped or if the ruby from the ubuntu packages was the cause of the error.

@chef chef locked and limited conversation to collaborators Nov 16, 2017
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

1 participant