草庐IT

rvm_cleanse_variables

全部标签

ruby - Heroku gem 不适用于 RVM

我正在学习http://railstutorial.org/chapters/beginning#sec:1.4.1上的RubyonRails教程,在我尝试让我的应用程序在Heroku上运行之前,一切都很顺利。我安装了heroku,运行良好,但现在当我运行herokukeys:add或任何其他heroku命令时,出现以下错误:/home/sirswap/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/rest-client-1.4.2/lib/restclient.rb:9:in`rescuein':nosuchfiletoload--net/h

ruby-on-rails - 运行 autoconf 时 rvm install 1.9.2 失败?

当我运行时rvminstall1.9.2我在尝试运行autoconf时遇到错误。这是堆栈跟踪:kenmare:ruby-1.9.2-p0lee$rvminstall1.9.2-p0/Users/lee/.rvm/rubies/ruby-1.9.2-p0,thismaytakeawhiledependingonyourcpu(s)...ruby-1.9.2-p0-#fetchingruby-1.9.2-p0-#extractedto/Users/lee/.rvm/src/ruby-1.9.2-p0(alreadyextracted)RunningautoconfErrorrunning'

ruby-on-rails - 程序 'rails' 可以在以下包中找到 - 某些应用程序和 RVM 有问题吗?

我刚刚从github下载了一个应用程序代码,当我尝试运行命令railss时,出现了这个错误-Theprogram'rails'canbefoundinthefollowingpackages:*rails*ruby-railties-3.2此问题仅适用于此应用,有人可以告诉我如何解决此问题吗?我正在使用RVM 最佳答案 以防其他人遇到此问题,但上述方法不起作用。尝试运行:/bin/bash--login然后运行rvmuse2.0.0#orwhateveryourversionnumberis...

ruby-on-rails - bash :/home/XXX/. rvm/scripts/rvm: 没有那个文件或目录

我只是演练了如何使用RVM在Ubuntu上安装RubyonRails。首先,我以root用户身份登录。然后我开始执行以下命令。\curl-sSLhttps://get.rvm.io|bash-sstable--rails已安装,没有任何错误。source~/.rvm/scripts/rvm当我运行这个命令时。它显示错误为bash:/home/XXX/.rvm/scripts/rvm:Nosuchfileordirectory我添加了[[-s"$HOME/.rvm/scripts/rvm"]]&&。我的.bashr文件中的“$HOME/.rvm/scripts/rvm”命令。

ruby - 获取名称错误 : `format' is not allowed as an instance variable name when testing instance variable with rspec

我有以下测试:let(:client){Descat::Client.new}describe'poblacio'doit'shouldsetformatcorrectly'doclient.poblacio('v1','json','dades')expect(client.instance_variable_get(:format)).toeq('json')endend我有以下正在测试的代码:moduleDescatclassClientBASE_URL='http://api.idescat.cat/'definitialize(attributes={})attributes

ruby - 我在 Mac OS X 上收到 "RVM is not a function"错误,并且没有发布的解决方案有效

我在MacOSx10.8.2(“MountainLion”)上,我成功安装了RVM1.17.8及其依赖项。我可以使用它来使用rvminstall1.9.2安装Ruby版本,但我无法执行rvmuse没有收到此错误:RVMisnotafunction,selectingrubieswith'rvmuse...'willnotwork.Youneedtochangeyourterminalemulatorpreferencestoallowloginshell.Sometimesitisrequiredtouse`/bin/bash--login`asthecommand.Pleasevis

ruby - 在 Ubuntu 中全新安装 RVM 不允许我安装 gems(zlib 错误)

好的,我刚刚使用VirtualBox在Windows7上创建了一个全新的Ubuntu11.04安装(不确定这是否重要,但仅供引用)列出我得到的ruby:aaron@aaron-VirtualBox:~$rvmlistrvmrubies=>ruby-1.9.2-p290[x86_64]然后尝试安装railsgem我得到了这个:aaron@aaron-VirtualBox:~$geminstallrailsERROR:Loadingcommand:install(LoadError)nosuchfiletoload--zlibERROR:Whileexecutinggem...(NameE

ruby-on-rails - RVM ruby​​ 安装错误 - Mac

我尝试通过RVM安装以下三个版本的Ruby,每个版本都有自己的一组错误。我更关心让最后一个工作,所以我会专注于此。rvminstall1.8.7rvminstall1.9.2rvminstall1.9.3rvminstall1.9.3(bash输出)14:10:41:~/.rvm/config$rvminstall1.9.3Fetchingyaml-0.1.4.tar.gzto/Users/dionnesaunders/.rvm/archivesExtractingyaml-0.1.4.tar.gzto/Users/dionnesaunders/.rvm/srcERROR:Errorr

ruby - 在 rvm 中使用多个版本的 ruby​​gems?

我的电脑上有两个项目:-需要ruby​​gems1.6且无法在ruby​​gems1.8下运行的旧Rails2.3应用程序;-需要ruby​​gems1.8且无法在ruby​​gems1.6下运行的较新应用。每个项目都有自己的rvmgemset,但我无法弄清楚如何为它们提供不同版本的ruby​​gems本身:gemupdate--system[version]结果gem--version在两者中给出相同的答案;rvmgemset[version]有相同的结果。如何在一个项目中运行ruby​​gems1.6.2而在另一个项目中运行1.8.11?澄清一下,这是我想要做的:在目录A中,有一个

ruby-on-rails - 安装 RVM(Ruby 版本管理器)的关键问题

我正在尝试在我的CentOS6.6机器上安装Ruby版本管理器(RVM)。我按照主页https://rvm.io/rvm/install上的说明进行操作当我运行这个命令时:gpg--keyserverhkp://keys.gnupg.net--recv-keys409B6B1796C275462A1703113804BB82D39DC0E3我不断收到错误:gpg:requestingkeyD39DC0E3fromhkpserverkeys.gnupg.netgpgkeys:HTTPfetcherror6:Couldn'tresolvehost'keys.gnupg.net'gpg:no