method
description
Ruby latest stable (v2_5_5)
-
0 notes -
Class: InstallCommand
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (0)
- 2_2_9 (0)
- 2_4_6 (0)
- 2_5_5 (0)
- 2_6_3 (0)
- What's this?
description()
public
Hide source
# File lib/rubygems/commands/install_command.rb, line 51 def description # :nodoc: The install command installs local or remote gem into a gem repository.For gems with executables ruby installs a wrapper file into the executabledirectory by default. This can be overridden with the --no-wrappers option.The wrapper allows you to choose among alternate gem versions using _version_.For example `rake _0.7.3_ --version` will run rake version 0.7.3 if a newerversion is also installed.Gem Dependency Files====================RubyGems can install a consistent set of gems across multiple environmentsusing `gem install -g` when a gem dependencies file (gem.deps.rb, Gemfile orIsolate) is present. If no explicit file is given RubyGems attempts to findone in the current directory.When the RUBYGEMS_GEMDEPS environment variable is set to a gem dependenciesfile the gems from that file will be activated at startup time. Set it to aspecific filename or to "-" to have RubyGems automatically discover the gemdependencies file by walking up from the current directory.NOTE: Enabling automatic discovery on multiuser systems can lead toexecution of arbitrary code when used from directories outside your control.Extension Install Failures==========================If an extension fails to compile during gem installation the gemspecification is not written out, but the gem remains unpacked in therepository. You may need to specify the path to the library's headers andlibraries to continue. You can do this by adding a -- between RubyGems'options and the extension's build options: $ gem install some_extension_gem [build fails] Gem files will remain installed in \\ /path/to/gems/some_extension_gem-1.0 for inspection. Results logged to /path/to/gems/some_extension_gem-1.0/gem_make.out $ gem install some_extension_gem -- --with-extension-lib=/path/to/lib [build succeeds] $ gem list some_extension_gem *** LOCAL GEMS *** some_extension_gem (1.0) $If you correct the compilation errors by editing the gem files you will needto write the specification by hand. For example: $ gem install some_extension_gem [build fails] Gem files will remain installed in \\ /path/to/gems/some_extension_gem-1.0 for inspection. Results logged to /path/to/gems/some_extension_gem-1.0/gem_make.out $ [cd /path/to/gems/some_extension_gem-1.0] $ [edit files or what-have-you and run make] $ gem spec ../../cache/some_extension_gem-1.0.gem --ruby > \\ ../../specifications/some_extension_gem-1.0.gemspec $ gem list some_extension_gem *** LOCAL GEMS *** some_extension_gem (1.0) $ end