Cannot load Shorturl gem (ruby ErrorLoad)

爷,独闯天下 提交于 2019-12-06 21:11:36

You can run gem environment to see the environment that RubyGems is running in. Under GEM PATHS should be listed the paths that RubyGems will search for gems.

Depending on if you installed the gem as root or not it will either be under somewhere like /usr/local/lib/ruby/gems/1.8 or somewhere within your home directory. You can use gem list -d shorturl to find out where it is installed. If where it is isn't listed in the GEM PATHS you will have to add it to the GEM_PATH environment variable. For example:

export "GEM_PATH=$GEM_PATH:/usr/local/lib/ruby/gems/1.8"

if that works you then need to add it to somewhere like your .bashrc to ensure its always loaded.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!