# Inspec RPM installation cannot load such file 'aws-sdk'

**URL:** <https://discourse.chef.io/t/inspec-rpm-installation-cannot-load-such-file-aws-sdk/15399>\
**Category:** Chef InSpec\
**Created:** [June 17, 2019, 6:53pm UTC](https://discourse.chef.io/t/inspec-rpm-installation-cannot-load-such-file-aws-sdk/15399 "2019-06-17T18:53:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WHal](https://avatars.discourse-cdn.com/v4/letter/w/839c29/32.png) [@WHal](https://discourse.chef.io/u/WHal)\
**Post date:** [June 17, 2019, 6:53pm UTC](https://discourse.chef.io/t/inspec-rpm-installation-cannot-load-such-file-aws-sdk/15399/1 "2019-06-17T18:53:25Z")

</div>

Hello,

We are currently in the process of upgrading from inspec 3.9 to 4.3.2. While on 3.9, all of our custom resources/profiles ran without issue ( all of which require 'aws-sdk'). After installing inspec 4.3.2 via rpm, we receive errors when trying to run our profiles stating that 'Cannot load such file aws-sdk'. Installed aws-sdk through the os’s ruby and continue to get the Cannot load such file ‘aws-sdk’ error.  
Verified that within /opt/inspec/embedded/bin/gem list that the aws-sdk gem is not installed. Tried installing the aws-sdk gem from within the embedded ruby and run into all sorts of conflict errors.

When we install inspec 4.3.2 via the inspec-bin gem, and aws-sdk, everything runs perfectly just as it did before the upgrade.

Is there a step that I am missing that is special when installing inspec via the rpm? Ruby environmental paths? I am at a loss.

---

<div class="post-metadata">

**Author:** ![cwolfe](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@cwolfe](https://discourse.chef.io/u/cwolfe)\
**Post date:** [August 20, 2019, 5:56pm UTC](https://discourse.chef.io/t/inspec-rpm-installation-cannot-load-such-file-aws-sdk/15399/2 "2019-08-20T17:56:55Z")

</div>

This should be resolved as of InSpec 4.12.0 or earlier - give it a try and see if it is still a problem. You should need to install any gems manually if you are doing an RPM install.
