简体   繁体   English

RVM Rails找不到宝石

[英]rvm rails can't find gem

I am using RVM 1.1.6, ruby 1.8.7-P302 and have installed l the linkedin gem with: gem install linkedin 我正在使用RVM 1.1.6,ruby 1.8.7-P302并已使用以下命令安装了linkedin gem:gem installlinkedin

  • the gem appears in the gem list --local listing 宝石出现在gem list --local列表中
  • and in the GEM_PATH directory 并在GEM_PATH目录中
  • in irb require 'linkedin' returns true 在irb中, require 'linkedin'返回true

But when I run script/server , I get Missing these required gems: linkedin and I am running out of hair to tear out. 但是,当我运行script/server ,我会Missing these required gems: linkedin而且我的头发Missing these required gems: linkedin了。 Where have I gone wrong? 我哪里出问题了?

尝试在config/environment.rb文件中添加config.gem 'linkedin'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM