Discourse can't find gems specified in the plugin

I mean, I can but the problem is not with that gem the problem is with rbsecp256k1, when it tries to build it doesn’t find the mini_portile2 gem (As the error says: cannot load such file -- mini_portile2 (LoadError) from extconf.rb:3:in <main>'