rvm

Error installing gems that use native extensions on Ubuntu, Ruby 1.9.2 via RVM

余生颓废 提交于 2019-12-18 10:55:18
问题 I get an error while trying to install the ffi gem: ~ - 16:54>gem i ffi Building native extensions. This could take a while... ERROR: Error installing ffi: ERROR: Failed to build gem native extension. rake RUBYARCHDIR=/home/mdemare/.rvm/gems/ruby-1.9.2-p136/gems/ffi-1.0.6/lib RUBYLIBDIR=/home/mdemare/.rvm/gems/ruby-1.9.2-p136/gems/ffi-1.0.6/lib /home/mdemare/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems.rb:370:in `bin_path': can't find gem rake ([">= 0"]) with executable rake

install ruby 1.9.3 using rvm on ubuntu [duplicate]

天大地大妈咪最大 提交于 2019-12-18 10:51:40
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Ruby 1.9.2 and Rails 3 cannot open rails console I have already installed rvm and ruby 1.9.2, both working properly. Using rvm version 1.10.2. I previously installed the rvm packages readline/zlib, but now I'm having big troubles with readline now. I'm trying to install ruby 1.9.3 in rvm, but I always end up having readline not found. I tried to follow different solutions: rvm remove 1.9.3 rvm pkg install

Rails 5.2.0 with Ruby 2.5.1 console - `warning:` `already` initialized constant FileUtils::VERSION

Deadly 提交于 2019-12-18 10:48:09
问题 I'm currently experiencing an issue with my new rails application, more specifically: Rails 5.2.0 Ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17] rvm 1.29.4 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io] When I run rails c , it produces a warning links to fileutils gem as the following: `/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/fileutils.rb:90:` `warning:` `already` initialized constant FileUtils::VERSION /usr/local/lib/ruby/gems/2.5.0/gems

Rails 5.2.0 with Ruby 2.5.1 console - `warning:` `already` initialized constant FileUtils::VERSION

浪子不回头ぞ 提交于 2019-12-18 10:47:55
问题 I'm currently experiencing an issue with my new rails application, more specifically: Rails 5.2.0 Ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17] rvm 1.29.4 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io] When I run rails c , it produces a warning links to fileutils gem as the following: `/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/fileutils.rb:90:` `warning:` `already` initialized constant FileUtils::VERSION /usr/local/lib/ruby/gems/2.5.0/gems

Where does bundler store gems?

☆樱花仙子☆ 提交于 2019-12-18 10:47:14
问题 I know that when using gem install , the gem will be stored under /home/username/.rvm/gems/, under which gemset the gem was installed. But if I use Bundler and specify the gem in the Gemfile, when I run bundle install, where will those gems be stored? And what if I already installed the gem using gem install , if I run bundle install, will it use the previous gem installed using gem install ? 回答1: It depends. In the usual development setup they are installed where they would be when you

RVM Bundle Install Missing Gem Error even though gem is installed

让人想犯罪 __ 提交于 2019-12-18 10:08:44
问题 I'm getting the following error even though I currently do have the Bundler gem installed (it appears when I run $gem list). ERROR: Gem bundler is not installed, run `gem install bundler` first. I'm using RVM and my $PATH is as follows: /Users/cjstingl/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd/bin: /Users/cjstingl/.rvm/gems/ruby-1.9.2-p290@global/bin: /Users/cjstingl/.rvm/rubies/ruby-1.9.2-p290/bin: /Users/cjstingl/.rvm/bin: /Users/cjstingl/.bin: /usr/local/sbin: /usr/local/Cellar/php/5.3

Why doesn't 'USER INSTALLATION DIRECTORY' match with the Ruby version?

天涯浪子 提交于 2019-12-18 09:55:50
问题 This question was the second part of "What is "USER INSTALLATION DIRECTORY" in rubyGems env" but finally it wasn't answered. Now I'm wondering why in my case 'USER INSTALLATION DIRECTORY does not mach with the Ruby version. And another question is what option bundle install uses by default, maybe --user-install ? rvm list : * ruby-2.5.0 [ x86_64 ] => ruby-2.5.1 [ x86_64 ] ruby-2.6.0-preview1 [ x86_64 ] gem env : RubyGems Environment: - RUBYGEMS VERSION: 2.7.7 - RUBY VERSION: 2.5.1 (2018-03-29

RVM and bash_profile

岁酱吖の 提交于 2019-12-18 09:27:07
问题 I'm having problems installing RVM on my mac. I took my computer in to have the fan repaired so I'm using my wives trying to set up my environment to get some work done. The problem I'm having is the bash_profile. Every time I add the function: [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function and then reload the shell I get the following error: -bash: export: -s': not a valid identifier -bash: export: /Users/Christine/.rvm/scripts/rvm': not a valid

RVM Ruby with TK installation (OSX)

人盡茶涼 提交于 2019-12-18 07:09:08
问题 I'm trying to install Ruby with TK support. Using RVM, I did this: rvm install 1.9.2 -C --enable-shared --enable-pthread The installation appears to work fine, and I can see something called .rvm/src/ruby-1.9.2-p320/ext/tk/tcltklib.c which I assume is the library I need? I then try to run require 'tk' in irb, but get the error message LoadError: no such file to load -- tk Any ideas? Update: Fixed! If anyone is interested in the complete list of steps for a Ruby upgrade to 2.0.0 with TK

Specifying Rails Version

☆樱花仙子☆ 提交于 2019-12-18 07:02:57
问题 I decided to upgrade to Ruby 2.0.0 and Rails 4.0.0. I'm trying to set these as my default programs, by using this line: rvm use 2.0.0@rails-4.0.0 --default I get the error Failed to load /Users/michaeldunnegan/.gemrc because it doesn't contain valid YAML hash My .gemrc file is blank. I don't know what to do. I can't find any references at all. 回答1: most likely it is not empty, there is a lot of UTF-8 characters that editor will not show you, just remove the file before continuing: rm -f