Tag: rvm

Mountain Lion安装rvm ree-1.8.7

我尝试了这个其他答案 ,但我遇到了以下问题: $ export CPPFLAGS=-I/opt/X11/include $ CC=/usr/local/bin/gcc-4.2 rvm reinstall ree-1.8.7 /Users/username/.rvm/src/ree-1.8.7-2012.02 has already been removed. /Users/username/.rvm/rubies/ree-1.8.7-2012.02 has already been removed. No binary rubies available for: osx/10/x86_64/ree-1.8.7-2012.02. Continuing with compilation. Please read ‘rvm mount’ to get more information on binary rubies. You requested building with ‘/usr/local/bin/gcc-4.2’ but it is not in your path. 还有别的我做错了吗? 我正在使用Apple发布的十月发布的命令行工具,如果这有帮助…

麻烦在OSX上运行指南针 – 在线上的LoadError

我之前在这里阅读了很多问题,遗憾的是,所描述的解决方案并非适用于我。 我在OSX上并通过rvm使用ruby-1.9.3-p448。 一切都刚刚建立起来。 然后我做了sudo gem install compass获得指南针和sass。 没有错误消息。 stnwbr$ ruby -v ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.0] stnwbr$ compass -v Compass 0.12.2 (Alnilam) stnwbr$ sass -v Sass 3.2.10 (Media Mark) 但是当我做compass create或compass watch我得到: stnwbr$ compass create LoadError on line [“51”] of /Users/stnwbr/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb: cannot load such file — breakpoint Run with –trace to see the full […]

我的开发环境已经消失,我在尝试修复它时遇到了一系列错误

所以我和我的一个朋友搞乱了gem,我不小心删掉了一个。 我不确定发生了什么事,所以我只是把它擦掉了。 然后我去为我的旧应用程序运行’rails server’,我一直在努力,没有任何事情发生在2分钟,然后最终它吐出一个错误。 /Users/Nick/.rvm/bin/ruby: line 6: /Users/Nick/.rvm/bin/ruby: Argument list too long /Users/Nick/.rvm/bin/ruby: line 6: /Users/Nick/.rvm/bin/ruby: Undefined error: 0 那么我做了下面提出的所有建议,我遇到了各种各样的错误。 如果我要为每个错误创建一个单独的问题,我认为我会弄乱堆栈溢出,所以我想在这里给出一些解决这个问题的顺序。 现在我正在试图回溯并弄清楚发生了什么……每当我在答案中运行这些不同的命令时我就会改变一些事情而我不知道发生了什么。 当我尝试安装ruby版本时,我收到此错误: apple-gcc42 is not available in PATH, try: brew unlink apple-gcc42 && brew link apple-gcc42 and make sure that apple-gcc42 is available in your PATH: which gcc-4.2 我在某处读到安装xCode会解决这个问题,所以我安装了它。 虽然我得到了同样的错误。 当我尝试运行该错误的第一个建议时,我得到了这个: Unlinking /usr/local/Cellar/apple-gcc42/4.2.1-5666.3… 0 […]

使用特定版本的ruby在cron上运行gem

我们需要在cron计划上运行某个gem应用程序,因此我们有一个专门的用户设置来运行这个gem。 我们目前正在使用ruby 1.9.2 [jobrunner@test-load] rvm list rvm rubies ruby-1.8.7-p299 [ x86_64 ] ruby-1.9.2-p180 [ x86_64 ] =* ruby-1.9.2-p290 [ x86_64 ] ruby-1.9.3-p125 [ x86_64 ] ruby-1.9.3-p374 [ x86_64 ] ruby-1.9.3-p392 [ x86_64 ] ruby-1.9.3-p448 [ x86_64 ] ruby-2.0.0-p247 [ x86_64 ] # => – current # =* – current && default # * – default […]

如何使用正确的gemset加载rvm然后执行rake任务

编写一个cds到另一个目录的脚本,加载正确的rvm rvmrc文件,然后允许我执行rake任务。 我有以下脚本在我的计算机上工作,但当其他人将其下载到他们的机器时,他们会收到以下错误“Ruby rvmrc未安装”。 Bundler.with_clean_env do Dir.chdir(“../some_dir”) do puts `source ~/.rvm/scripts/rvm && rvm –with-rubies rvmrc exec — rake some_task` end end 我有最新版本的rvm(他们也是这样),我在mt.lion上 我试过像这样创建一个bash函数…… function foo { [[ -s “$HOME/.rvm/scripts/rvm” ]] && . “$HOME/.rvm/scripts/rvm” && rvm use @my_gemset } 或者,替换此行 rvm –with-rubies rvmrc exec 像…这样的事情 rvm rvmrc load rvm use rvm env –path — ree-1.8.7@some_gemset 但它都没有奏效。 […]

Capistrano抛出/ usr / bin / env:ruby:执行deploy:migration时没有这样的文件或目录

我设置了Capistrano来部署我的应用程序。 我是按步骤制作的,所以首先我设置代码部署,所以我评论了所有角色,但是:app 。 我正在使用rvm ,我遇到了一些问题。 最大的问题是一个错误,说/usr/bin/env: ruby: No such file or directory 。 我使用gem capistrano/rvm解决了它们,并在capistrano/rvm要求它并将以下行添加到deploy.rb文件中: set :default_env, { path: “/usr/local/rvm/gems/ruby-2.0.0-p247@global/bin:$PATH” } 一旦代码部署正确运行,我就会激活de :db角色以执行迁移。 我得到了同样的错误,但这次我找不到解决方案。 ~$ cap production deploy:migrate … … INFO [85d6241d] Running bundle exec rake db:migrate on 10.10.51.10 DEBUG [85d6241d] Command: cd [PROJECT_SRC]/current && ( PATH=/usr/local/rvm/gems/ruby-2.0.0-p247@global/bin:$PATH RAILS_ENV=production bundle exec rake db:migrate ) DEBUG [85d6241d] […]

如何将RVM与tcsh一起使用?

我想将RVM与tcsh一起使用; 我该怎么做呢? 据我所知,这方面没有“正式”指示。 我按照“ 使用带有tcsh的RVM ”的说明进行操作,但这对我不起作用; 特别是,我无法访问Ruby二进制文件ruby , bundle , irb , rspec等。

在Linux Mint中安装gstreamer gem时出现问题

我正在使用linux mint。 当我尝试使用gem install gstreamer安装时,我看到了这个错误: ERROR: Error installing gstreamer: ERROR: Failed to build gem native extension. /home/msdc/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb` checking for -Wall option to compiler… yes checking for -Waggregate-return option to compiler… yes checking for -Wcast-align option to compiler… yes checking for -Wextra option to compiler… yes checking for -Wformat=2 option to compiler… yes checking for […]

为什么bundler没有看到定制的gem源?

首先,事情是我在防火墙后面所以我不能使用https://rubygems.org/ $ bundle install rails bundle install requires at least 0 argument: “bundle install”. git@gitdev $ bundle install Fetching gem metadata from https://rubygems.org/……….. Fetching gem metadata from https://rubygems.org/.. Resolving dependencies… Using rake (10.0.4) Gem::RemoteFetcher::FetchError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A (https://s3.amazonaws.com/production.s3.rubygems.org/gems/i18n-0.6.1.gem) An error occurred while installing i18n (0.6.1), and Bundler cannot continue. […]

尝试使用RVM安装Ruby时,为什么会出现需求错误?

我想在我的Ubuntu系统上安装带有RVM的Ruby 2.0并收到错误消息: rvm 1.23.5 (master) ubuntu 12.04 (LTS) **—- Error message: ——-** rvm install 2.0.0 Searching for binary rubies, this might take some time. Checking requirements for ubuntu. Installing requirements for ubuntu. Updating system……………………………………………………………………………………………………………………. Error running ‘requirements_debian_update_system ruby-2.0.0-p247’, please read /home/emzett/.rvm/log/1381812161_ruby-2.0.0-p247/update_system.log Requirements installation failed with status: 100.