# How to install import script gem dependencies?

**URL:** <https://meta.discourse.org/t/how-to-install-import-script-gem-dependencies/52229>\
**Category:** Development\
**Created:** [30.Октябрь.2016 12:51:27 UTC](https://meta.discourse.org/t/how-to-install-import-script-gem-dependencies/52229 "2016-10-30T12:51:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tobiasmuehl](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tobiasmuehl](https://meta.discourse.org/u/tobiasmuehl)\
**Post date:** [30.Октябрь.2016 12:51:27 UTC](https://meta.discourse.org/t/how-to-install-import-script-gem-dependencies/52229/1 "2016-10-30T12:51:27Z")

</div>

Some import scripts are using external dependencies, and those seem to work just fine.

When trying to add my own Gemfiles, I’m always presented with

```plaintext
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- redcarpet (LoadError)
        from /usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `block in require'
        from /usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
        from /usr/local/lib/ruby/gems/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
        from emed.rb:4:in `<main>'

```

I’m installing the gem using the root user inside the docker image since the discourse user isn’t privileged enough, and the gem’s can be run from the command line from the discourse user just fine. Just `require redcarpet` doesn’t work.

---

_[View the full topic](https://meta.discourse.org/t/how-to-install-import-script-gem-dependencies/52229)._
