Open sparr opened 4 years ago
If an embedded chef gem requires FFI, you will have to ensure your environment already has make/gcc tools installed (like build-essential
on Ubuntu).
OS packages normally install during Chef's 2nd stage (converge
), so make/gcc might not be available during Chef's 1st stage (compile
), which might happen if something like Test Kitchen tries to install libyajl2
during a compile phase (or before build packages are available).
If you have gems that need to be added to Chef's embedded library, and participate in the compile phase, you likely have three options:
Describe the problem
When trying to install this gem without
make
installed, an unhelpful error message is produced that requires looking at the gem source to figure out.Software Version
1.2.0 Ubuntu 20.04
Replication Case
gem install libyajl2
Stacktrace
Possible Solution