Tag: rvm

如果没有root权限,rvm不会安装在centos中

我尝试使用没有root权限的部署用户安装RVM,我收到此错误: bash: line 439: ./scripts/install: Permission denied 有帮助吗? 谢谢!

无法安装Nokogiri 1.4.3 gem

无法安装nokogiri 1.4.3 gem。 Nokogiri 1.6.6.2安装没有问题。 在Ubuntu上使用最新的RVM。 pm@sniegas:~$ gem install nokogiri -v ‘1.4.3’ Fetching: nokogiri-1.4.3.gem (100%) Building native extensions. This could take a while… ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /home/pm/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150519-7580-2yzgsg.rb extconf.rb *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries […]

如何使用rvm将rails 3.2 app从ruby 1.9.3升级到ruby 2.1.5

我的Rails 3.2 / Ruby 1.9.3应用程序正在使用RVM。 我想升级到使用ruby 2.1.5。 我也使用RVM来安装Ruby 2.1.5。 所以rvm list显示了1.9.3和2.1.5 我的项目目录有一个.rvmrc文件指定 environment_id = “ruby-1.9.3-p551@current_foogems” 所以我有一个名为current_foogems的gemset 如何切换我的项目以使用ruby 2.1.5? 我复制gem吗? 创建一个新的(空)gemset? 鉴于ruby版本从1.9.3跳到2.1.5,这可能意味着我应该重新编译gem,我认为安全的方法可能是: i) create a new blank gemset ‘new_foogems’ ii) edit the .rvmrc file to use “ruby-2.1.5@new_foogems” iii) run bundle install to re-create all-new gems in the new gemset

ruby on rails PIK gemset就像RVM gemset一样?

我和RVM一起工作过,我可以获得gemset和东西,但是没有办法用PIK获得它? 任何的想法? 我试着找一个解决方案,却找不到一个。 希望有人对这个问题有任何线索吗? 谢谢!

RVM无法安装Ruby

我正在尝试通过RVM安装较旧的Ruby版本,但安装失败,出现了我以前从未见过的错误。 我已经更改了rvm_max_time_flag但它没有帮助。 我能在这做什么? rvm install 1.9.3p484 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.9/x86_64/ruby-1.9.3p484. Continuing with compilation. Please read ‘rvm help mount’ to get more information on binary rubies. Checking requirements for osx. Certificates in ‘/usr/local/etc/openssl/cert.pem’ already are up to date. Requirements installation successful. Installing Ruby from source […]

rvm pkg安装openssl

我尝试安装openssl,但是当它说: 需要重新安装所有ruby: rvm reinstall all –force rvm reinstall ruby-2.0.0-p0 –with-gcc=gcc-4.7 –with-openssl-dir=$rvm_path/usr 在我运行上面的行之后,我得到你要求使用’gcc-4.7’进行构建,但它不在你的路径中。 我已经安装了xcode,我认为已经安装了gcc。 任何人都知道任何答案。

Rails失败和奇怪的捆绑安装

有一点我无法弄清楚。 当我尝试运行rails它会说: Could not find sprockets-2.1.2 in any of the sources Run `bundle install` to install missing gems. 顺便说一句,安装了sprockets-2.1.2 。 (我已成功运行bundle install ) 但据我所知,当我运行rails ,全局bin正在运行,因此我无法访问由bundler安装的本地gem。 我可以以某种方式解决这个问题,而无需手动安装很多gem,如: gem install what -v which? 我已经尝试过运行rails了 bundle exec rails … 我没有运气:( 我正在使用RVM(如果这可能是问题的根源

从rvm切换到rbenv,现在无法使用rails s。 无法激活bundler-1.12.5,已经激活了bundler-1.13.0.rc.1(Gem :: LoadError)

第一个错误: `check_version_conflict’: can’t activate bundler-1.12.5, already activated bundler-1.13.0.rc.1 (Gem::LoadError) 陷入这个错误: /Users/phillipjones/workspace/messengerApp/vendor/bundle/gems/sqlite3-1.3.11/lib/sqlite3.rb:6:in `require’: dlopen(/Users/phillipjones/workspace/messengerApp/vendor/bundle/gems/sqlite3-1.3.11/lib/sqlite3/sqlite3_native.bundle, 9): Library not loaded: /Users/phillipjones/.rvm/rubies/ruby-2.3.1/lib/libruby.2.3.0.dylib (LoadError) Referenced from: /Users/phillipjones/workspace/messengerApp/vendor/bundle/gems/sqlite3-1.3.11/lib/sqlite3/sqlite3_native.bundle Reason: image not found – /Users/phillipjones/workspace/messengerApp/vendor/bundle/gems/sqlite3-1.3.11/lib/sqlite3/sqlite3_native.bundle 以下是导致此问题的情况以及我尝试解决的步骤: 从rvm切换到rbenv后,我遇到了使用rvm创建的应用程序的问题。 我无法运行rails s。 首先我得到了这个错误: Phillip-Joness-MacBook:messengerApp phillipjones$ rails s /Users/phillipjones/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:2274:in `check_version_conflict’: can’t activate bundler-1.12.5, already activated bundler-1.13.0.rc.1 (Gem::LoadError) from /Users/phillipjones/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:1403:in `activate’ from /Users/phillipjones/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:68:in `block in gem’ from […]

尝试执行任何以“rails”开头的命令会产生“找不到Gemfile”

我正在尝试安装新的rails应用程序。 我已经在我的机器上安装了几个rails应用程序,一切正常。 $ rails new app Could not locate Gemfile 然后我想我会运行一个跟踪来弄清楚发生了什么,因为你不希望此时有一个Gemfile ,因为通常上面的命令会在一个名为app的目录中创建一个全新的rails应用app 。该Gemfile包含的Gemfile 。 $ rails new app –trace Could not locate Gemfile 因此,我尝试通过此详细指南重新安装计算机上的所有内容: http://railsapps.github.com/installing-rails.html#gems 在前20个步骤之后,我得到了这个命令: $ rake -v Could not locate Gemfile 我假设某些地方的设置已关闭,但我看不到任何关闭。 这是我的rvm设置: $ rvm version rvm 1.18.10 (latest) by Wayne E. Seguin , Michal Papis [https://rvm.io/] $ rvm list rvm rubies jruby-1.6.7 […]

Fresh Rails 4应用程序无法识别`rails`命令,坚持使用`rails new`

我已经使用Rails主分支的克隆中的rails new命令成功创建了一个新的应用程序。 该应用程序看起来很好,并且肯定是Rails 4.但是当我尝试运行任何其他rails命令时,提示符给了我: Usage: rails new APP_PATH [options] Options: -r, [–ruby=PATH] # Path to the Ruby binary of your choice … etc etc 我试过rails , bundle exec rails和bin/rails ,都给出了相同的提示。 我创建新的Rails 4应用程序的步骤是: 将Rails主分支克隆到本地计算机 创建一个新的rvm gemset,然后使用它(1.9.3) 运行rails/railties/bin/rails new myapp –edge -T –skip-index-html cd myapp并运行bundle install和bundle update以确保 运行任何rails命令 我究竟做错了什么? rvm-prompt表明我正在使用正确的gemset。 我注意到的一件事是,即使我从我的Gemfile中删除jbuilder并运行bundle update ,它仍会出现在我的gem list 。 我的rvm在这里有问题吗? rails-v输出是’Rails […]