如何安装下载的Ruby gem文件? [英] How to install a downloaded Ruby gem file?

查看:90
本文介绍了如何安装下载的Ruby gem文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

gem install如何工作?这不是直观的...

How does "gem install" works ? It is not intuitive...

我的宝石真的在这里:

My gem is really here :

[root@localhost Téléchargement]# ll *.gem
-rw-rw-r-- 1 jean jean 16353818 mar  5 11:39 ruby-processing-1.0.9.gem

但是一个惯用的gem install没有看到它......

But an idiomatic "gem install" does not see it...

[root@localhost Téléchargement]# gem install  ruby-processing-1.0.9.gem 
ERROR:  could not find gem ruby-processing-1.0.9.gem locally or in a repository

有什么不对?

What's wrong with that ?

推荐答案

也许我还没有完全明白这个问题。但是如果你只是想在你的本地机器上安装一个gem,你只需要从控制台进入包含你的gem和 gem install --local your.gem

Maybe I have not fully understood the question. But if you just want to install a gem that you have on your local machine, all you need to do from the console is go into the directory containing your gem and gem install --local your.gem.

这篇关于如何安装下载的Ruby gem文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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