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

10642 questions
1063
votes
12 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
  • 34,766
  • 15
  • 66
  • 109
950
votes
7 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
  • 57,072
  • 26
  • 82
  • 114
594
votes
12 answers

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

How can I remove RVM (Ruby Version Manager) from my system?
lucianosousa
  • 7,548
  • 4
  • 17
  • 25
577
votes
27 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
  • 7,651
  • 4
  • 31
  • 55
507
votes
28 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
  • 18,852
  • 14
  • 39
  • 59
463
votes
18 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
  • 8,012
  • 9
  • 31
  • 50
457
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,687
  • 4
  • 22
  • 30
403
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
  • 10,061
  • 9
  • 39
  • 46
387
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
  • 23,016
  • 32
  • 98
  • 148
360
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
  • 12,894
  • 35
  • 105
  • 158
350
votes
25 answers

How to install CocoaPods?

I referred to many links and tried, but had no success. If any one has an idea then please please share with me. I read CocoaPods documents and many times tried to install but always failed because of the starting steps. I found one error whereby I…
kagmanoj
  • 4,262
  • 5
  • 17
  • 21
347
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
  • 66,366
  • 19
  • 41
  • 46
336
votes
10 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
  • 11,985
  • 16
  • 58
  • 145
327
votes
9 answers

How to avoid "cannot load such file -- utils/popen" from homebrew on OSX

I'm getting an error when I run brew in the terminal: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- utils/popen (LoadError) from…
kerokero
  • 3,271
  • 2
  • 11
  • 4
265
votes
28 answers

bundle install fails with SSL certificate verification error

When I run bundle install for my Rails 3 project on Centos 5.5 it fails with an error: Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed…
mrzasa
  • 21,673
  • 11
  • 52
  • 88
1
2 3
99 100