安装Heroku的水龙头宝石 [英] Installing Heroku's Taps gem

查看:87
本文介绍了安装Heroku的水龙头宝石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用Heroku的Taps gem从他们的服务器获取我的数据库。



当我运行时,

  $ heroku db:pull 

它说我需要使用以下命令来安装Taps gem:

  sudo gem install taps 

我运行这个命令,正如预期的那样,Taps表示已经安装了(已安装1个宝石)。我可以在安装完成后运行Gem update taps命令而不出错。然而,


<$> $ gem list




不显示Taps已安装,并且我无法在

/ Users / username /.rvm/gems/ree-1.8.7-2010.02@timeline



不用说,我无法运行Heroku db:pull命令。

我运行的是bundlr和RVM,我不知道这些是否相关。



我确信我正在做一些简单的错误...

解决方案

使用 sudo gem install taps 可能会安装具有根权限的gem,因此当您尝试<$ c $时,您无法将其视为普通用户c> gem list 。你有没有尝试安装没有sudo的gem?或者如果你真的想找到它,试试 sudo gem list



我建议不要使用sudo安装gem,但使用rvm的要点是始终将您的gem捆绑在一个您可以访问的位置(无需root)并且方便地分离与红宝石/宝石。


I'm trying to use Heroku's Taps gem to get my database from their server.

When I run

$heroku db:pull 

it says I need to install the Taps gem using the command:

sudo gem install taps

I run this command, and as expected, Taps says it has installed ("1 gem installed"). I'm able to run the Gem update taps command without an error after installing.

However,

$gem list

does not show Taps as installed, and I cannot see it in the gem folder at

/Users/username/.rvm/gems/ree-1.8.7-2010.02@timeline

Needless to say, I cannot run the Heroku db:pull command because of this.

I am running bundlr and RVM, I don't know if these are relevant.

I'm sure I'm doing something simple wrong...

解决方案

Using sudo gem install taps probably installs the gem with root permissions, and thus you can't see it as your normal user when you try to gem list. Have you tried installing the gem without sudo? or if you really want to find it, try sudo gem list.

I would suggest not installing gems with sudo though, the point of using rvm is to always have your gems bundled in a place you can access (without root) and separated conveniently with rubies/gemsets.

这篇关于安装Heroku的水龙头宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆