Tag: rvm

rvm + rails install错误:在为nil执行gem(NoMethodError)未定义方法`ord’时:NilClass

Ububtu 14.04 rvm 1.26.11 ruby2.1.0p0 rvm list : rvm rubies =* ruby-2.1.0 [ x86_64 ] # => – current # =* – current && default # * – default which ruby :/home/awlad/.rvm/rubies/ruby-2.1.0/bin/ruby which rvm :/home/awlad/.rvm/bin/rvm which bundle :/ usr / bin / bundle RubyGems Environment: – RUBYGEMS VERSION: 2.4.8 – RUBY VERSION: 2.1.0 (2013-12-25 patchlevel […]

Rails 3在Ruby 1.9.2上初始化速度极慢

我正在使用RVM来管理环境,安装了Ruby 1.9.2.p136(我认为它的最新版本。)和Rails 3,创建了gemsets并运行了bundler。 到目前为止一切运作良好但是; 当运行命令时,Rails初始化非常慢,即生成,销毁,耙等。完成命令大约需要30-45秒。 如果使用Ruby Enterprise Edition或Ruby 1.8.7,这将永远不会发生 为什么会这样。 有什么想法吗? 在Ubuntu 10.10,RVM,Ruby 1.9.2,Rails 3上运行 谢谢。

OpenSSL,RVM,Brew,冲突错误

当我在终端运行brew医生时:我收到以下错误: Warning: Some keg-only formula are linked into the Cellar. You may wish to `brew unlink` these brews: openssl 如果我取消链接,并输入rvm要求 :我将得到以下错误。 Checking requirements for osx. dyld: Library not loaded: @@HOMEBREW_CELLAR@@/openssl/1.0.1f/lib/libssl.1.0.0.dylib Referenced from: /usr/local/opt/openssl/bin/openssl Reason: image not found Failed reading certificates path for ‘/usr/local/opt/openssl/bin/openssl’ with return code: (). RVM autolibs is now configured with mode ‘2’ […]

使用RVM安装ruby失败,没有任何痕迹

好的,我安装了RVM。 我测试使用: type rvm | head -n1 输出:“rvm是一个函数”。 到现在为止还挺好。 然后我尝试了: rvm install 1.8.7-p302 一切顺利,但随后: $ ruby -v The program ‘ruby’ is currently not installed. You can install it by typing: sudo apt-get install ruby RVM表示安装完成后一切正常…获取RVM信息说: $ rvm info ruby-1.8.7-p302: system: uname: “Linux pi-ubuntu 2.6.32-24-generic-pae #43-Ubuntu SMP Thu Sep 16 15:30:27 UTC 2010 i686 GNU/Linux” bash: […]

使用postgres.app在rvm下需要pg的错误

我在OS X上使用Postgres.app (10.8.3)。 我修改了我的PATH以便应用程序的bin文件夹优先于所有其他文件夹。 Rammy:~ phrogz$ which pg_config /Applications/Postgres.app/Contents/MacOS/bin/pg_config 我安装了rvm并且可以安装pg gem而不会出错,但是当我要求它时,我收到一个错误: Rammy:~ phrogz$ gem -v 1.8.25 Rammy:~ phrogz$ gem install pg Fetching: pg-0.15.1.gem (100%) Building native extensions. This could take a while… Successfully installed pg-0.15.1 1 gem installed Rammy:~ phrogz$ ruby -v -e “require ‘pg'” ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.3.0] /Users/phrogz/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’: dlopen(/Users/phrogz/.rvm/gems/ruby-1.9.3-p392/gems/pg-0.15.1/lib/pg_ext.bundle, 9): […]

RVM没有用cron设置环境

我正忙着用cron和RVM执行脚本/运行器。 我相信问题在于在运行跑步者之前没有设置rvm环境。 目前我正在抛出错误/ bin / sh:1.sql:命令找不到比我早先得到的更多,所以我想这很好。 我已经读过这个post需要在每个cron作业之前设置rvm环境,但我还是没有真正得到它。 我认为部分问题是错误报告。 到目前为止,这是我的跑步者。 */1 * * * * * /bin/bash -l -c ‘rvm use 1.8.7-p352@2310; cd development/app/my_app2310 && script/runner -e development “Mailer.find_customer”‘ 根据上面的链接,我试着制作一个rvm_cron_runner。 我创建了一个文件并将其放入其中: #!/bin/sh source “/Users/dude/.rvm/scripts/rvm” exec $1 然后我将我的crontab更新为此。 */1 * * * * * /bin/bash -l -c ‘/Users/dude/development/app/my_app2310/rvm_cron_runner; rvm use 1.8.7-p352@2310; cd development/app/my_app2310 && script/runner -e development […]

没有这样的文件加载 – 带有Passenger的Rails 3.2中的bundler / setup

我在乘客的apache2上运行vserver。 使用RVM进行ruby。 Ruby版本 – > 1.9.3p194 Rails版本 – > 3.2.3由Apache虚拟主机配置设置… 现在,当我将URL输入浏览器时,会显示乘客错误页面: no such file to load — bundler/setup 我不知道现在该做什么。 有人能帮我吗?

RVM | 运行用户脚本

是否可以使用Ruby版本管理器运行脚本而不是从控制台运行脚本,而是使用其他方式 – 例如在系统启动时或通过键盘快捷键?

当官方方式不起作用时,如何升级RVM?

合十! 想要查看shiny的新Rails 5.0,我碰到了一个错误,说我需要将我的Ruby版本升级到最低2.0.0(我当前的版本是2.1.3)。 我使用RVM来管理我的OSX上的Rubies,所以我尝试了很好的ol’ rvm install ruby​​ –latest ……只是被告知 已安装ruby-2.1.3。 我跑了 rvm已知列表 ……事实上,列出的Ruby的最新版本是我已经拥有的版本,即2.1.3。 接下来,我检查了我的RVM版本并发现它是1.25.31,而最近发布了RVM博客状态1.27.x。 所以我决定这可能是因为已知列表没有显示更新的Ruby版本,并使用了从其站点升级RVM的文档化步骤 。 重新加载后,我仍然看到相同版本的RVM和相同的可用Ruby版本列表。 我也试过重启终端。 现在我该怎么做?

Bundler :: RubyVersionMismatch:您的Ruby版本是1.9.3,但您的Gemfile指定为2.0.0

我正在使用带有Pow,Ruby,Rails和一堆有用gem的Mac。 每当我尝试打开我的应用程序时,我最近都会遇到此错误。 Bundler :: RubyVersionMismatch:您的Ruby版本是1.9.3,但您的Gemfile指定为2.0.0 我理解错误,但我找不到为什么它没有在这里使用正确的版本。 一些有用的信息: 堆栈跟踪 Bundler::RubyVersionMismatch: Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 ~/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/definition.rb:361:in `validate_ruby!’ ~/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler.rb:116:in `setup’ ~/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in `’ ~/Dropbox/Documents/project/Sites/project-profile/config.ru:3:in `block in ‘ ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/builder.rb:4:in `instance_eval’ ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/builder.rb:4:in `initialize’ ~/Dropbox/Documents/project/Sites/project-profile/config.ru:1:in `new’ ~/Dropbox/Documents/project/Sites/project-profile/config.ru:1:in `’ ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:50:in `eval’ ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:50:in `load_config’ ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:43:in `initialize’ ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:13:in `new’ ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:13:in `run’ ~/Library/Application […]