# Tengo problemas para instalar la gema \`eth\` en un plugin en producción

**URL:** <https://meta.discourse.org/t/having-a-hard-time-installing-eth-gem-in-a-plugin-in-production/217496>\
**Category:** Development\
**Created:** [8 Febrero, 2022 11:54 UTC](https://meta.discourse.org/t/having-a-hard-time-installing-eth-gem-in-a-plugin-in-production/217496 "2022-02-08T11:54:21Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [10 Marzo, 2022 07:39 UTC](https://meta.discourse.org/t/having-a-hard-time-installing-eth-gem-in-a-plugin-in-production/217496/4 "2022-03-10T07:39:20Z")

</div>

> [@fzngagan](#):
>
> ¿por qué los mismos comandos que funcionan cuando se ejecutan desde la terminal fallan cuando Discourse intenta ejecutarlos?

Arreglé esto recientemente en

> <https://github.com/discourse/discourse/commit/6b8c622762571a9012cb1805f04b6b2593526021>
>
> when bundler is loaded, it sets the \`RUBYOPT\` environment variable to setup bund…ler. However, it was causing weird errors like the following when we try to install
> custom plugin gems into a specific directory.
> 
> \`\`\`
> /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/source/git.rb:214:in \`rescue in load\_spec\_files': https://github.com/discourse/mail.git is not yet checked out. Run \`bundle install\` first. (Bundler::GitError)
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/source/git.rb:210:in \`load\_spec\_files'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/source/path.rb:107:in \`local\_specs'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/source/git.rb:178:in \`specs'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/lazy\_specification.rb:88:in \`\_\_materialize\_\_'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/spec\_set.rb:75:in \`block in materialize'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/spec\_set.rb:72:in \`map!'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/spec\_set.rb:72:in \`materialize'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/definition.rb:468:in \`materialize'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/definition.rb:190:in \`specs'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/definition.rb:238:in \`specs\_for'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/runtime.rb:18:in \`setup'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler.rb:151:in \`setup'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/setup.rb:20:in \`block in \<top (required)\>'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/ui/shell.rb:136:in \`with\_level'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/ui/shell.rb:88:in \`silence'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/setup.rb:20:in \`\<top (required)\>'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/site\_ruby/2.7.0/rubygems/core\_ext/kernel\_require.rb:85:in \`require'
> from /home/tgxworld/.asdf/installs/ruby/2.7.5/lib/ruby/site\_ruby/2.7.0/rubygems/core\_ext/kernel\_require.rb:85:in \`require'
> \`\`\`

---

_[View the full topic](https://meta.discourse.org/t/having-a-hard-time-installing-eth-gem-in-a-plugin-in-production/217496)._
