rubygems

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

ruby sass, unable to resolve dependancies

大城市里の小女人 提交于 2019-12-18 09:24:18
问题 I downloaded two gem files: Sass-3.3.7.gem & compass-0.12.6.gem I ran gem install --local Sass-3.3.7.gem which it installed. Followed by the same command for compass , but got the error: unable to resolve dependencies: compass requires sass (~>3.2.19) I'm installing them pre-downloaded as I have no connection. Anyone knows what can be the solution? 回答1: Compass 0.12.6 apparently depends on sass ~>3.2.19, which means that the version of sass should be bigger than 3.2 and smaller than 3.3, so

Does Rails load all installed gems?

狂风中的少年 提交于 2019-12-18 07:24:20
问题 When Rails loads, does it load all the gems that are installed on the system? I've got 47 gems installed on the server, including all the various Rails gems which have multiple versions. However, both Rails, and all the gems used by the application, are frozen into the application. Are all those gems getting loaded, and would that cause the application to run slower or take up more memory (note I've got two instances of my application running on the server, one live and one as a test

Homebrew install Ruby keg-only can't find gem

北城以北 提交于 2019-12-18 05:12:48
问题 How do I get irb to work after installing Ruby with Homebrew? When I try to run irb , I get an error: $ irb Traceback (most recent call last): 2: from /usr/local/opt/ruby/bin/irb:23:in `<main>' 1: from /usr/local/lib/ruby/site_ruby/2.6.0/rubygems.rb:302:in `activate_bin_path' /usr/local/lib/ruby/site_ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': can't find gem irb (>= 0.a) with executable irb (Gem::GemNotFoundException) I tried: $ brew link ruby Warning: Refusing to link macOS-provided

Unable to install rails with jRuby

蹲街弑〆低调 提交于 2019-12-18 04:15:28
问题 I am trying to install the rails with jRuby with the following command jruby -S gem install rails -v 3.0.6 But stuck with the error : JRuby limited openssl loaded. http://jruby.org/openssl gem install jruby-openssl for full support. System.java:-2:in `arraycopy': java.lang.ArrayIndexOutOfBoundsException from DefaultResolver.java:111:in `makeTime' from DefaultResolver.java:277:in `create' from DefaultResolver.java:317:in `handleScalar' from DefaultResolver.java:435:in `orgHandler' from

How to avoid deprecation messages from RubyGems?

别来无恙 提交于 2019-12-18 03:24:12
问题 After gem update --system , when I do something related to rubygems, I receive this message: NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /usr/lib/ruby/gems/1.8/specifications/rubygems-update-1.7.2.gemspec:11. How can I avoid it? I've tried to remove rubygems and reinstall, but that didn't fix it. 回答1: You probably need to regenerate your gem specifications. After

How to avoid deprecation messages from RubyGems?

馋奶兔 提交于 2019-12-18 03:24:08
问题 After gem update --system , when I do something related to rubygems, I receive this message: NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /usr/lib/ruby/gems/1.8/specifications/rubygems-update-1.7.2.gemspec:11. How can I avoid it? I've tried to remove rubygems and reinstall, but that didn't fix it. 回答1: You probably need to regenerate your gem specifications. After

Can you install documentation for existing gems?

杀马特。学长 韩版系。学妹 提交于 2019-12-18 03:23:13
问题 Rubyinside mentioned a blog post on how to speed up gem installation by not installing RI or RDoc. Is it possible to install a gem and subsequently install documentation at a later date, so you can hack in haste and RTFM at leisure? 回答1: > gem help rdoc Usage: gem rdoc [args] [options] Options: --all Generate RDoc/RI documentation for all installed gems --[no-]rdoc Include RDoc generated documents --[no-]ri Include RI generated documents -v, --version VERSION Specify version of gem to rdoc

ROR + Unable to install tiny_tds

杀马特。学长 韩版系。学妹 提交于 2019-12-18 02:39:35
问题 Here I am trying to fetch data from MS-SQL Server 2008 to my Rails application on Ubuntu 10. But I am unable to install tiny_tds . I follow the step given at github. But no response. Please guide me to setup correctly. Used gem command :: gem install tiny_tds This command as well :: gem install tiny_tds –with-freetds-include=/usr/local/include/freetds –with-freetds-lib=/usr/local/lib Error : Installing tiny_tds (0.4.5) with native extensions /home/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1

How to add Mac-specific gems to bundle on Mac but not on Linux?

狂风中的少年 提交于 2019-12-18 01:32:11
问题 I'm developing a Rails app on a Mac, and I'm new to testing, so I just added these gems to my Gemfile : group :test, :development do gem 'rspec-rails' gem 'rb-fsevent' gem 'growl' end But my production server runs Linux, so even if they aren't grouped in :production , bundler ( v1.0.21 ) still attempts to install them. ...and fails, obviously! extconf.rb:19:in '<main>': Only Darwin (Mac OS X) systems are supported (RuntimeError) Setting RAILS_ENV to production before running bundle install