手动安装Ruby Gems [英] Installing Ruby Gems manually

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

问题描述

我在办公室使用代理脚本连接到互联网。因此,我的
命令提示符(Win XP)无法连接,只能使用
浏览器访问网络。



有没有我可以手动安装一些我需要的宝石宝石 - 无需使用

  gem install'abc'

或者有什么方法可以让我的命令提示符连接到互联网。
尽管我的IE设置确实使用了脚本,但我仍然无法获得CMD连接。

解决方案

在密闭环境下工作时也遇到同样的问题。一个很好的解决方法是下载你对USB棒感兴趣的Gem,然后手动安装它。



这是可以找到所有可用ruby宝石的网站。 Ruby宝石下载。找到你感兴趣的人并下载它。

然后把宝石移到你选择的目录中,然后在命令提示符下输入。
我正在使用 C:/ruby193/bin/pony-1.4.gem



假设我们感兴趣的宝石是小马宝石(smtp电子邮件)。



只需键入 gem install pony-1.4.gem



,您应该手动安装它,除非您对ACC没有足够的管理权限进行限制。


I'm connected to the internet using a proxy script in my office. As a result my command prompt (Win XP) doesn't connect and I can access net only using the browser.

Is there some I can install some ruby gems that I need manually - without using

gem install 'abc'

Or is there a way I can get my command prompt to connect to the internet. Although my IE settings do use the script, I still cant get the CMD to connect.

解决方案

I had the same problem when working on a confined environment. A nice workaround is to download the gem that you are interested in a usb stick and then install it manually.

This is the website where you can find all available ruby gems. Ruby gems download. Find the one you are interested and download it.

Then move the gem in a directory of your choice and cd into that from the command prompt. I am using C:/ruby193/bin/pony-1.4.gem

Let's say that the gem we are interested in is the pony gem (smtp email).

Just type gem install pony-1.4.gem

and you should get it installed manually unless you have a restricted acc with not adequate administrative privileges.

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

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