Tag: rvm

第80行的重复键忽略:“name”rvm

这似乎没有影响任何东西,它只是在我的终端烦恼 – 我经常收到以下警告(有时我收到多个,呼唤不同的行,有时候/gem/变化之后的路径,但/gem/ ,这个是输出: /Users/alecwilson/.rvm/gems/ruby-2.2.1/gems/fog-1.23.0/lib/fog/rackspace/mock_data.rb:42: warning: duplicated key at line 80 ignored: “name” 捆绑和运行rake test时最常见。 有关如何解决它的任何想法? 我一般都非常谨慎地编辑我的.rvm目录中的文件,因为我之前已经把它搞砸了,但有时仍然会警告我的PATH设置不正确(但只是偶尔)。 如果有人能够引导我了解导致这种情况的原因,我将非常感激。

使用Mountain Lion,Xcode 4.5和RVM安装Ruby?

rvm install 1.9.3 –with-gcc=clang (由于无法在Lion下安装Ruby与RVM – GCC问题的建议 )不起作用,因为Mac OS X 10.8.2(Mountain Lion)和Xcode 4.5都没有clang 是否可以使用llvm编译Ruby? 根据Matthias Schmidt的“如何在带有LLVM和rbenv的Mac OS X上安装Ruby 1.9.3” ,Ruby现在与LLVM完全兼容。 但是,我仍然得到: error: C compiler cannot create executables 更新: 实际上,我在这里找到了clang /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang (感谢Node.js安装Wiki )。 我只是没有在我的道路上clang 。 所以,如果我将clang添加到我的路径中, rvm install 1.9.3 –with-gcc=clang足够?

在我的终端中运行“rvm get stable”并没有做任何事情。 如何更新RVM?

当我“rvm稳定”时,没有任何反应。 Last login: Sat Feb 11 18:22:14 on ttys000 Adams-MacBook-Pro:~ adam$ rvm -v rvm 1.8.3 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/] Adams-MacBook-Pro:~ adam$ rvm get stable 没有发生任何事 它没有更新。 Adams-MacBook-Pro:~ adam$ rvm -v rvm 1.8.3 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/] Adams-MacBook-Pro:~ adam$ 如何更新我的RVM?

RVM,Ruby 1.9.2,Rails 2.3.8,Passenger和“US-ASCII中的无效字节序列”

我刚刚开始从Ruby 1.8.7升级到Ruby 1.9.2(使用RVM)。 我的所有应用程序都使用’script / server’(或’rails server’)和1.9.2运行,但只有Rails 3.0.0 RC应用程序可以与Passenger一起使用。 Rails 2.3.8应用程序给出的错误消息是: US-ASCII中的无效字节序列 我猜这是一个乘客问题。 我使用此处的RVM指南安装了Passenger 2.2.15。 任何想法如何解决这个错误? 谢谢。 我已更新为包含堆栈跟踪: /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_view/template_handlers/erb.rb:14:in `compile’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_view/template_handler.rb:11:in `call’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_view/renderable.rb:19:in `compiled_source’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_view/renderable.rb:68:in `compile!’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_view/renderable.rb:61:in `compile’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_view/renderable.rb:28:in `render’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_view/template.rb:205:in `render_template’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_view/base.rb:265:in `render’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_view/base.rb:352:in `_render_with_layout’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_view/base.rb:262:in `render’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/base.rb:1250:in `render_for_file’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/base.rb:942:in `render’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:51:in `block in render_with_benchmark’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `block in ms’ /Users/kevin/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/benchmark.rb:309:in `realtime’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:17:in `ms’ /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:51:in […]

使ruby gems响应终端命令

我对ruby和gem制作都非常陌生。 我创建了一个简单的gem,根据输入webscrapes一些信息。 但是,要使用我的gem,我需要进入解释器(irb)并需要我的gem,然后使用一些参数调用该方法。 假设gem被称为foo 。 假设该方法称为print_website(x) # where x is a string 。 我希望能够做到这样的事情: $ foo test.com 它应该自动调用方法并执行它。 提前致谢! 如果我不清楚,请问我澄清一下! :d

使用RVM时,如果gem安装在不同的ruby版本中,则bundler不会安装在正确的gemset中

我遇到了rvm,bundler和gemsets的问题。 我在rvm中安装了3个ruby: rvm rubies macruby-0.7.1 [ x86_64 ] ree-1.8.7-2010.02 [ x86_64 ] => ruby-1.9.2-p0 [ x86_64 ] 和gem一样: rvm gemsets macruby-0.7.1 [ x86_64 ] ree-1.8.7-2010.02 [ x86_64 ] ree-1.8.7-2010.02@chef [ x86_64 ] ree-1.8.7-2010.02@global [ x86_64 ] ree-1.8.7-2010.02@mobi [ x86_64 ] ree-1.8.7-2010.02@temple_rails [ x86_64 ] ruby-1.9.2-p0 [ x86_64 ] => ruby-1.9.2-p0@instapaper [ x86_64 ] ruby-1.9.2-p0@mobi [ […]

在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 […]

无法使用rvm在Mountain Lion上安装Ruby

尝试使用rvm在Mountain Lion上安装Ruby,但收到此错误消息: ruby-1.9.3-p362 – #extracted to /usr/local/rvm/src/ruby-1.9.3-p362 ruby-1.9.3-p362 – #configuring Error running ‘env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure –enable-shared –disable-install-doc –prefix=/usr/local/rvm/rubies/ruby-1.9.3-p362 –with-opt-dir=/usr/local/rvm/usr’, please read /usr/local/rvm/log/ruby-1.9.3-p362/configure.log There has been an error while running configure. Halting the installation. ruby-1.9.3-p362 is not installed. Creating alias default for ruby-1.9.3-p362. Recording alias default for ruby-1.9.3-p362. Creating default links/files ruby-1.9.3-p362 is not […]

Cron +每当不使用RVM时

我正在使用RVM环境。 RUby版本:2.1.2 rails:4.1.1 schedule.rb : every 1.minute do runner “note.send_mail” end 我whenever –update-crontab使用whenever –update-crontab来更新cron选项卡。 当我使用crontab -l检查作业时,它显示如下,没有设置适当的时间。 并且cron工作不起作用。 * * * * * /bin/bash -l -c ‘cd /Desktop/folder1/blog2 && bin/rails runner -e production ‘\”note.send_mail’\”’ 有人可以帮我解决这个问题。 谢谢!