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
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
  • 13
  • 4
288
votes
8 answers

Update just one gem with bundler

I use bundler to manage dependencies in my rails app, and I have a gem hosted in a git repository included as followed: gem 'gem-name', :git => 'path/to/my/gem.git' To update this gem, I execute bundle update but it also updates all the gem…
sailor
  • 7,834
  • 3
  • 26
  • 34
270
votes
16 answers

find_spec_for_exe': can't find gem bundler (>= 0.a) (Gem::GemNotFoundException)

I used sudo bundle install and that might be the cause of the issue? Now I have: gem -v 2.6.14 ruby -v ruby 2.3.5p376 (2017-09-14 revision 59905) [x86_64-darwin15] jekyll -v jekyll 3.6.2 bundle -vBundler version 1.16.0.pre.3 I'm getting the…
Alvaro
  • 40,778
  • 30
  • 164
  • 336
265
votes
29 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
  • 22,895
  • 11
  • 56
  • 94
255
votes
25 answers

unable to install pg gem

I tried using gem install pg but it doesn't seem to work. gem install pg gives this error Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to…
Rohit
  • 5,631
  • 4
  • 31
  • 59
241
votes
25 answers

rmagick gem install "Can't find Magick-config"

I get the error shown below when attempting to install the rmagick gem. I am on Snowleopard 10.6 using RVM, Ruby 1.9.2-head and Rails 3.05. Responses to similar questions recommended installing ImageMagick, which I successfully did. Other suggested…
Joe
  • 3,352
  • 3
  • 20
  • 19
240
votes
9 answers

How to upgrade rubygems

I need to upgrade gems to 1.8 i tried installing the respective debian packages but it seems its not getting upgraded anujm@test:~$ dpkg -l |grep -i rubygem ii rubygems 1.3.5-1ubuntu2 …
Anuj
  • 9,222
  • 8
  • 33
  • 30
239
votes
20 answers

How do I update Ruby Gems from behind a Proxy (ISA-NTLM)

The firewall I'm behind is running Microsoft ISA server in NTLM-only mode. Hash anyone have success getting their Ruby gems to install/update via Ruby SSPI gem or other method? ... or am I just being lazy? Note: rubysspi-1.2.4 does not work. This…
Brett Veenstra
  • 47,674
  • 18
  • 70
  • 86
238
votes
11 answers

Uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)

When I want to create a Ruby on Rails project, I get the message below. /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError) from…
Sokmesa Khiev
  • 2,910
  • 3
  • 19
  • 30
228
votes
20 answers

Installing libv8 gem on OS X 10.9+

I'm trying to install libv8 3.16.14.3 but getting an error on OSX Mavericks using latest stable rvm and ruby-1.9.3-p125. This is the output of running the command 'gem install libv8': ~/src(branch:master) » gem install libv8 Fetching:…
tanookiben
  • 22,575
  • 8
  • 27
  • 25
226
votes
22 answers

Ignoring GEM because its extensions are not built

On both my work and home computers, I recently upgraded Ruby to 2.3.1, using ruby-install. I use chruby as my Ruby switcher. I started seeing this warning in my terminal: Ignoring bcrypt-3.1.11 because its extensions are not built. Try: gem…
Phillip Longman
  • 2,512
  • 2
  • 11
  • 15
215
votes
11 answers

Unresolved specs during Gem::Specification.reset:

When launching Guard, I'm getting this output: $ guard WARN: Unresolved specs during Gem::Specification.reset: lumberjack (>= 1.0.2) ffi (>= 0.5.0) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. What…
reneruiz
  • 2,436
  • 2
  • 20
  • 18
209
votes
7 answers

Understanding the Gemfile.lock file

After running the bundle install command, 'Gemfile.lock' is created in the working directory. What do the directives inside that file mean? For example, let's take the following file: PATH remote: . specs: gem_one (0.0.1) GEM remote:…
Shamaoke
  • 6,222
  • 8
  • 34
  • 40
207
votes
24 answers

Library not loaded: libmysqlclient.16.dylib error when trying to run 'rails server' on OS X 10.6 with mysql2 gem

I've been struggling with this for some time. I've installed Rails 3, gem, mysql on my Snow Leopard machine. All was going well until I created my first project and tried to run rails server Upon running this I get: jontybrook$ rails…
Jonty Brook
  • 3,017
  • 3
  • 16
  • 6
207
votes
17 answers

Unable to install gem - Failed to build gem native extension - cannot load such file -- mkmf (LoadError)

Ruby 1.9.3 The part of Gemfile #............... gem "pony" gem "bcrypt-ruby", :require => "bcrypt" gem "nokogiri" #.................. When I'm trying to install gems, I get an error alex@ubuntu:~/$ bundle Fetching gem metadata from…
Alexandre
  • 13,030
  • 35
  • 114
  • 173