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

libarchive fails to install cookbook gem: ffi-libarchive #43

Open
haidangwa opened this issue Apr 30, 2020 · 0 comments
Open

libarchive fails to install cookbook gem: ffi-libarchive #43

haidangwa opened this issue Apr 30, 2020 · 0 comments

Comments

@haidangwa
Copy link

Cookbook version

2.1.0

Chef-client version

15.6.10

Platform Details

RHEL8

Scenario:

We have a dependency on this cookbook, but running it on some RHEL8 servers fails during the installation of cookbook gems.

Steps to Reproduce:

Include libarchive in the server's run list and attempt to run chef

Expected Result:

Chef runs and no failures

Actual Result:

Chef can't install the cookbook gem dependency

Installing Cookbook Gems:

Running handlers:
[2020-04-30T19:59:30+00:00] ERROR: Running exception handlers
Running handlers complete
[2020-04-30T19:59:30+00:00] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 07 seconds
[2020-04-30T19:59:30+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2020-04-30T19:59:30+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2020-04-30T19:59:30+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '5'
---- Begin output of ["bundle", "install"] ----
STDOUT: Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/.............
Resolving dependencies...
Using aws-eventstream 1.0.3
Using aws-partitions 1.228.0
Using aws-sigv4 1.1.3
Using jmespath 1.4.0
Using aws-sdk-core 3.71.0
Using aws-sdk-cloudformation 1.21.0
Using aws-sdk-cloudwatch 1.22.0
Using aws-sdk-dynamodb 1.28.0
Using aws-sdk-ec2 1.115.0
Using aws-sdk-elasticloadbalancing 1.14.0
Using aws-sdk-iam 1.22.0
Using aws-sdk-kinesis 1.15.0
Using aws-sdk-kms 1.20.0
Using aws-sdk-route53 1.24.0
Using aws-sdk-s3 1.38.0
Using aws-sdk-ssm 1.46.0
Using bundler 1.17.2
Fetching ffi 1.12.2
Installing ffi 1.12.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/opt/chef/embedded/lib/ruby/gems/2.6.0/gems/ffi-1.12.2/ext/ffi_c
/opt/chef/embedded/bin/ruby -I /opt/chef/embedded/lib/ruby/2.6.0 -r
./siteconf20200430-26899-12btnj5.rb extconf.rb
checking for ffi.h... *** 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.
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

1 participant