安装Ruby宝石与家酿工作 [英] Installing Ruby gems not working with Home Brew

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

问题描述

我通过 sudo的创业板安装... 无法执行(我收到没有找到命令)。
他们似乎安装到的/ usr /本地/库/ 这是酿造的安装目录(也是在宝石/库/红宝石/ 也不能工作)。还有什么我需要做的,使宝石可执行文件?我使用ZSH在Mac OS X 10.6使用Ruby V1.8为一个在酿造。

The gems I install via sudo gem install ... can't be executed (I get a command not found). They seem to install into /usr/local/Cellar/ which is Brew's install directory (also, the gems in /Library/Ruby/ don't work either). Is there anything else I need to do to make the gems executable? I'm using ZSH on Mac OS X 10.6 with Ruby v1.8 for the one in Brew.

编辑:这似乎是现在的工作。我只是出去几个小时,回来后再次尝试。

It seems to be working now. I just went out for a few hours and came back to try it again.

推荐答案

您会使用 RVM ,而不是用自制困扰会更好。

You would be better off using RVM instead of bothering with Homebrew.

修改

更妙的是,使用 rbenv

匿名downvoters


  • 如果你是downvoting因为我推荐的 RVM 而不是 rbenv ,要知道,回来时,我写了这个答案,rbenv很可能只能上找到萨姆·斯蒂芬森的硬盘驱动器(或他的头),而RVM是标准的。

  • if you are downvoting because I recommended RVM instead of rbenv, be aware that, back when I wrote this answer, rbenv could probably only be found on Sam Stephenson's hard drive (or in his head), while RVM was the standard.

如果你是一个自制变形金刚迷,你很生气,因为我撞坏了你最喜欢的工具,请相信,我经常用它自己,认为这是一个很好的工具。只是,当时,使用专用工具是最好的选择。也许,两年后,情况已有所改善。我不知道。我知道的是,我的回答是有限的红宝石。

if you're a Homebrew fanboy, and you're angry because I bashed your favorite tool, please know that I use it myself often and think it's a great tool. Only, back then, using a dedicated tool was the best option. Maybe, two years later, things have improved. I don't know. What I know is that my answer was limited to Ruby.

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

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