Questions tagged [rubygems]

RubyGems is a package management tool for the Ruby programming language. It allows users to download and update Ruby libraries, and provides automatic dependency resolution.

RubyGems is a package manager for the programming language that provides a standard format for distributing Ruby programs and libraries (in a self-contained format called a ), a tool designed to easily manage the installation of gems, and a server for distributing them.

Documentation

16886 questions
1088
votes
13 answers

How to make --no-ri --no-rdoc the default for gem install?

I don't use the RI or RDoc output from the gems I install in my machine or in the servers I handle (I use other means of documentation). Every gem I install installs RI and RDoc documentation by default, because I forget to set --no-ri --no-rdoc. Is…
Ricardo Acras
  • 35,784
  • 16
  • 71
  • 112
1033
votes
8 answers

Ruby: How to install a specific version of a ruby gem?

Using the command-line gem tool, how can I install a specific version of a gem?
mjs
  • 63,493
  • 27
  • 91
  • 122
635
votes
13 answers

How to remove RVM (Ruby Version Manager) from my system

How can I remove RVM (Ruby Version Manager) from my system?
lucianosousa
  • 8,144
  • 4
  • 21
  • 25
633
votes
32 answers

How to install a gem or update RubyGems if it fails with a permissions error

I'm trying to install a gem using gem install mygem or update RubyGems using gem update --system, and it fails with this error: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the…
Gaurav
  • 8,227
  • 4
  • 34
  • 55
527
votes
33 answers

Error installing mysql2: Failed to build gem native extension

I am having some problems when trying to install mysql2 gem for Rails. When I try to install it by running bundle install or gem install mysql2 it gives me the following error: Error installing mysql2: ERROR: Failed to build gem native…
spacemonkey
  • 19,664
  • 14
  • 42
  • 62
514
votes
19 answers

Error while installing json gem 'mkmf.rb can't find header files for ruby'

For context, it on a remote server which has a firewall. I'm setting up my environment through a proxy. I have ruby 1.8.7. When I try to gem install.. sudo gem install --http-proxy : json I get the following error: Building…
Navneet
  • 9,590
  • 11
  • 34
  • 51
470
votes
11 answers

How to install gem from GitHub source?

I would like to install gem from the latest GitHub source. How do I do this?
Vojto
  • 6,901
  • 4
  • 27
  • 33
457
votes
8 answers

How to downgrade or install an older version of Cocoapods

How can I downgrade Cocoapods to an older version, or how can I install an older version of Cocoapods?
a fair player
  • 11,530
  • 9
  • 46
  • 48
438
votes
6 answers

How can I specify a local gem in my Gemfile?

I'd like Bundler to load a local gem. Is there an option for that? Or do I have to move the gem folder into the .bundle directory?
picardo
  • 24,530
  • 33
  • 104
  • 151
427
votes
30 answers

How do I install CocoaPods?

I referred to many links and tried, but I had no success. I read CocoaPods documents and many times tried to install, but I always failed because of the starting steps. I found one error whereby I can't install gems first. What are the steps one by…
kagmanoj
  • 5,038
  • 5
  • 19
  • 21
414
votes
35 answers

You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)

below is what I need to do. To run the specs, you'll need to install RSpec. First, run gem install bundler in the root directory of your project. Then, run bundle install. To run a single spec file, run a command like this: bundle exec rspec…
user9426236
  • 4,141
  • 2
  • 8
  • 3
412
votes
7 answers

Uninstall old versions of Ruby gems

I have several versions of a Ruby gem: $ gem list rjb (1.3.4, 1.3.3, 1.1.9) How can I remove old versions but keep the most recent?
Philippe Blayo
  • 10,610
  • 14
  • 48
  • 65
403
votes
12 answers

How to find where gem files are installed

I can finds gems that are installed using gem list, but it doesn't show me where the gems are installed. How can I find where the gems are, and how can I know before installing a gem where it will be installed?
ironsand
  • 14,329
  • 17
  • 83
  • 176
363
votes
18 answers

gem install: Failed to build gem native extension (can't find header files)

I am using Fedora 14 and I have MySQL and MySQL server 5.1.42 installed and running. Now I tried to do this as root user: gem install mysql But I get this error: Building native extensions. This could take a while... ERROR: Error installing…
Tim
  • 13,228
  • 36
  • 108
  • 159
362
votes
9 answers

How can I install a local gem?

If I download a .gem file to a folder in my computer, can I install it later using gem install?
hectorsq
  • 74,396
  • 19
  • 43
  • 46
1
2 3
99 100