# Facing an issue while installing some gems in the plugin

**URL:** <https://meta.discourse.org/t/facing-an-issue-while-installing-some-gems-in-the-plugin/161780>\
**Category:** Development\
**Created:** [August 22, 2020, 10:53pm UTC](https://meta.discourse.org/t/facing-an-issue-while-installing-some-gems-in-the-plugin/161780 "2020-08-22T22:53:43Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Post date:** [August 22, 2020, 10:53pm UTC](https://meta.discourse.org/t/facing-an-issue-while-installing-some-gems-in-the-plugin/161780/1 "2020-08-22T22:53:44Z")

</div>

@sam

I’m unable to install some gems in the plugin, for e.g. `google-protobuf`. This gem is dependency for `google-cloud-vision` gem.

Here’s a plugin trying to install it. [GitHub - fzngagan/gem-issue · GitHub](https://github.com/fzngagan/gem-issue)

> **Logs**
>
> ```plaintext
> gem install google-protobuf -v 3.13.0 -i /Users/faiz/discenv/discourse/plugins/gem-issue/gems/2.6.3 --no-document --ignore-dependencies --no-user-install
> Successfully installed google-protobuf-3.13.0-universal-darwin
> 1 gem installed
> You are specifying the gem google-protobuf in /Users/faiz/discenv/discourse/plugins/gem-issue/plugin.rb, however it does not exist!
> Looked for: /Users/faiz/discenv/discourse/plugins/gem-issue/gems/2.6.3/specifications/google-protobuf-3.13.0.gemspec
> 
> ```

The reason for this is that the `.gemspec` file’s name doesn’t match the `spec_file`’s name assumed in the code here.

> <https://github.com/discourse/discourse/blob/66976baefa52fe503c7fa2c396b15568464619ef/lib/plugin_gem.rb#L19>

IMO, this would happen probably only when using platform-specific gems as the platform name gets added to the gem name if its platform dependent. This is described here. [Specification Reference - RubyGems Guides](https://guides.rubygems.org/specification-reference/#platform=)

---

_[View the full topic](https://meta.discourse.org/t/facing-an-issue-while-installing-some-gems-in-the-plugin/161780)._
