RubyGems is a package manager for the Ruby programming language. Ruby packages, known as gems, are managed via the 'gem' command-line tool. This tag is for all questions related to managing the Ruby packaging system: gem installation, updates, removal, troubleshooting, etc.
Questions tagged [gem]
56 questions
67
votes
7 answers
Determine which version of a gem is installed?
Is there a way via CLI to determine which version number of a gem is installed on my machine? Similar to yolk -l for python?
I'm trying to see if I have the latest version of compass / sass / zurb foundation. I have a dependency that requires a…
chrisjlee
- 10,716
- 14
- 45
- 51
14
votes
3 answers
Error: Failed to build gem native extension when trying to download Rubocop
when I try "sudo gem install rubocop", I get...
Building native extensions. This could take a while...
ERROR: Error installing rubocop:
ERROR: Failed to build gem native extension.
current directory:…
user642832
- 151
- 1
- 1
- 5
9
votes
3 answers
How do I update to the latest version of SASS?
This is really stupid but I've been Googling for an hour now and can't find the answer.
I'm on Ubuntu 10.10, and I'm trying to update to the latest version of SASS so that I can use an @import rule inside an @media rule.
As suggested here;…
powerbuoy
- 337
- 3
- 4
- 13
6
votes
1 answer
Can't install json 1.8.1
I'm trying to install json gem using ruby 2.2.3 (I've tried with other oversions), and I always get the same error:
Fetching: json-1.8.1.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR:…
mishelashala
- 161
- 1
- 4
5
votes
1 answer
Can't install gems from behind proxy
I'm running 12.04 in a VM, and I am behind a corporate proxy.
I've got the environment variables set (tried both all lower and all upper case for [http|https|ftp]_proxy, as well as not specifying the user:pass but setting http_proxy_[user|pass])
I…
Lee Lowder
- 173
- 1
- 7
5
votes
1 answer
Can't install RMagick 4.0.0. Can't find ImageMagick with pkg-config on Ubuntu 16.04
Trying to install pdfbeads on Ubuntu LTS 16.04 with the command
$ gem install pdfbeads
I'm getting the error message
"ERROR: Can't install RMagick 4.0.0. Can't find ImageMagick with pkg-config"
Below between the separators is the corresponding…
marinnen128
- 105
- 1
- 7
4
votes
1 answer
Why did lolcat stop working after installing rvm?
After recently doing something that involved installing rvm, this error occurs when I try using lolcat.
/home/max/.rvm/rubies/ruby-
2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require':
cannot load such file --…
Katana
- 51
- 3
3
votes
1 answer
Is ruby a pre-requisite to install gem?
I need to install gem on my Ubuntu 16.04 in order to install Travis CI CLI. Is it necessary to install ruby before installing gem? I literally have no idea about ruby and gem.
sphoenix
- 941
- 4
- 12
- 20
3
votes
1 answer
Unable to install Github-Pages with gem?
I've been trying to install github-pages using gem.
I have Ruby v. 2.1.2:
✦ ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
I installed Ruby using RVM and I've set 2.1.2 as my default version to use. Somehow, I'm still getting this…
Aeris
- 31
- 4
3
votes
1 answer
can't bundle install json gem in ubuntu
I have installed ruby on rails using rvm . I am trying to bundle install an older project that I had on a former pc but I get the following error when I run the bundle install command:
Installing json 1.8.3 with native…
Lucian Tarna
- 159
- 1
- 9
3
votes
2 answers
Unable to Install Guard
I've seen Guard and it's usefulness in web development and would like to install it. Naturally, I expected to be able to use sudo gem install guard to do so (yes, it is a Ruby Gem). However the installation errors out. Here is what I'm…
Dillmo
- 1,975
- 3
- 18
- 34
3
votes
2 answers
Installing Jekyll with gem
I'm using Ubuntu 12.04.
I am trying to install Jekyll through gem with
sudo gem install jekyll
but I get this error at some point of the installation:
ERROR: While generating documentation for jekyll-0.12.1
... MESSAGE: Unhandled special:…
Enrique Moreno Tent
- 3,289
- 11
- 41
- 65
3
votes
0 answers
Failed to install a ruby gem, eventmachine
I tried to run a script that return this error messaged:
Could not find gem 'eventmachine (= 0.12.10) ruby' in the gems
available on this machine. Run `bundle install` to install missing gems.
Results of sudo bundle install :
Fetching gem…
Smile.Hunter
- 8,205
- 10
- 33
- 35
3
votes
1 answer
How do I start a ruby/gem program?
I have installed taskjuggler (gem install taskjuggler), but now I have no idea how to start it...
$ taskjuggler
taskjuggler: command not found
$ gem taskjuggler
ERROR: While executing gem ... (RuntimeError)
Unknown command taskjuggler
this…
The Student
- 11,786
- 27
- 61
- 94
3
votes
3 answers
Can't run a program installed through gem install
I have installed Ruby using RVM.
I did a gem install rspec command and it seemed to install rspec correctly. If I do a rspec I get a "The program 'rspec' is not currently installed" and I am suggested to apt-get it.
If I try to do a gem install…
Gilles
- 153
- 1
- 9