Should I add files that are part of the Ruby Stand

2019-05-10 08:54发布

I need to do require 'openssl' in my code. Otherwise, I get NameError: uninitialized constant Object::OpenSSL. But, when I do gem list, I don't see openssl. I'm deploying a Sinatra app to Heroku stack bamboo-mri-1.9.2. Should I add openssl to the Gemfile? I don't think so because I think openssl is part of the Ruby Standard Library. Also, what about base64?

1条回答
干净又极端
2楼-- · 2019-05-10 09:25

It's very likely that you have compiled ruby without openssl support. If you are using RVM, you can try this

查看更多
登录 后发表回答