Tag: 安装

如何正确地使用ruby和命令行工具在小牛中安装cocoapod?

这是我的设置: 小牛10.9.1 Xcode 5.0.2哪个ruby返回: /Users/quique123/.rvm/rubies/ruby-1.9.3-p194/bin/ruby 但是dvm install ruby​​返回: Already installed ruby-2.1.0. To reinstall use: rvm reinstall ruby-2.1.0 所以这不是说我有ruby 2.1.0吗? gems list说我已经安装了cocoa豆荚和cocoapods-core 0.29.0以及其他一些gem。 在sudo gem安装cocoa豆荚后,我获得了一堆提取物并更改了日志和成功安装的cocoa豆荚0.29.0。 然后它解析并安装文档,当我运行pod setup时,我得到了: Setting up CocoaPods master repo Setup completed (read-only access) 所以我从教程中创建了一个文件: platform :iOS, ‘7.0’ pod ‘Mantle’ pod ‘TSMessages’ pod ‘ReactiveCocoa’ 但是当我运行pod安装时,我得到: /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:298:in `to_specs’: Could not find ‘cocoa pods’ (>= 0) […]

不是gzip格式错误

安装任何Gem或做任何gem gzip相关错误的列表如下所示: – C:\Documents and Settings\gangunra>gem install rhosync -v 2.0.0.beta7 –pre ERROR: While executing gem … (Zlib::GzipFile::Error) not in gzip format C:\Documents and Settings\gangunra>gem list rails -r *** REMOTE GEMS *** ERROR: While executing gem … (Zlib::GzipFile::Error) not in gzip format 请帮我解决这个问题

gem在本地安装XYZ(无需连接到互联网)

我需要在没有互联网连接的计算机上安装win32-api和antlr3 。 如果有这样的连接,我会像这样使用gem: gem install win32-api -r gem install antlr3 -r 这显然不会起作用。 所以,我认为应该有一种方法来下载gem并稍后安装它,但我不知道如何继续。 我找到了gem的which运算符,它似乎表示了gem的本地位置: c:\>gem which antlr3 c:/tools/Ruby187/lib/ruby/gems/1.8/gems/antlr3-1.8.8/lib/antlr3.rb 但是,它在win32-api上不起作用: c:\>gem which win32-api ERROR: Can’t find ruby library file or shared library win32-api 虽然我以前安装过它。 有人可以暗示正确的方向从这里继续吗?

在Snow Leopard上使用`rvm`安装`ruby-1.8.7-p334`时出错

安装Snow Leopard(OS X 10.6)后,我的一些Rubygem停止工作。 我还安装了Xcode(以获取make )并在使用rvm安装ruby-1.8.7-p334时出现以下错误。 我在运行Leopard时能够成功安装它。 任何帮助,将不胜感激。 Macintosh:haloror patelc75$ rvm install ruby-1.8.7-p334 Installing Ruby from source to: /Users/patelc75/.rvm/rubies/ruby-1.8.7-p334, this may take a while depending on your cpu(s)… ruby-1.8.7-p334 – #fetching ruby-1.8.7-p334 – #extracted to /Users/patelc75/.rvm/src/ruby-1.8.7-p334 (already extracted) ruby-1.8.7-p334 – #configuring ruby-1.8.7-p334 – #compiling ERROR: Error running ‘make ‘, please read /Users/patelc75/.rvm/log/ruby-1.8.7-p334/make.log ERROR: There has […]

使用Rvm安装Ruby 1.9.3时出现问题

我正在尝试使用本指南安装ruby 1.9.3: http : //www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/ 。 当我运行rvm install 1.9.3我收到此错误 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p392. Continuing with compilation. Please read ‘rvm mount’ to get more information on binary rubies. Installing requirements for osx, might require sudo password. Skipping `brew update` make sure your formulas are up […]

heroku工具带的问题

我是Ruby和Rails项目的绝对新手,所以如果这是一个愚蠢的问题,我很抱歉。 我已经使用wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh //toolbelt.heroku.com/install-ubuntu.sh安装了heroku工具wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh 我也试过gem install heroku 。 但是当我键入: MY_USER@home-PC:~$ heroku version :1:in `require’: cannot load such file — rubygems.rb (LoadError) from :1:in `’ 我已经检查了谷歌,人们建议gem和当前的ruby是不同的版本,所以我检查了它们,它们似乎是一样的: MY_USER@home-PC:~$ which ruby /home/MY_USER/.rvm/rubies/ruby-1.9.3-p327/bin/ruby MY_USER@home-PC:~$ gem env | grep ‘RUBY EXECUTABLE’ – RUBY EXECUTABLE: /home/MY_USER/.rvm/rubies/ruby-1.9.3-p327/bin/ruby 我不知道该怎么做,所以请帮忙。 对不起这个可能很愚蠢的问题,提前谢谢。 编辑:忘了说我正在运行Ubuntu […]

使用Ruby gem部署shell脚本并安装在bin目录中

我希望在我的gem的bin目录中放置一个shell脚本,以及属于该包的其他Ruby程序。 我希望将这个shell脚本原样安装在bin目录中(即没有包装器)。 这可能与Rubygem有关吗? 如果没有其他可能,我会对安装后挂钩感到满意。 有人有这方面的经验吗?

如何一次安装多颗ruby?

是否可以只用一个命令同时安装多个gem?

运行“捆绑安装”失败并要求我运行“捆绑安装”

事实上,当从我从git repo克隆的现有rails应用程序内部运行时,所有与gem相关的命令都会产生相同的错误消息。 $ bundle install Could not find tzinfo-0.3.27 in any of the sources Run `bundle install` to install missing gems. $ gem list Could not find tzinfo-0.3.27 in any of the sources Run `bundle install` to install missing gems. $ bundle update Could not find tzinfo-0.3.27 in any of the sources Run `bundle install` […]

使用rvm离线安装Ruby

我需要使用rvm在离线机器上安装Ruby-1.9.2。 我尝试将ruby-1.9.2-p180.tar.gz复制到./rvm/archives并运行rvm install ruby​​-1.9.2。 但是rvm仍然试图从ftp.ruby-lang.org下载Ruby。 任何意见是极大的赞赏…