Questions tagged [gem]

The tag has no usage guidance.

0
votes
0answers
14 views

Why is the time to use RubyGems with the LoadError?

My system was running a crawling program that was turned off because of the power outage, After that, my crawler and any other Ruby Gem did not work,and displays the following error Traceback (most ...
0
votes
0answers
77 views

Some errors are emerging when trying to load Jekyll by gem

Building native extensions. This could take a while... ERROR: Error installing jekyll: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.3.0/gems/ffi-1.11....
0
votes
0answers
34 views

Why is this “gem update” command giving an error?

I get the following error for a gem update: $ gem update --system --http-proxy=http://username:password@proxy.abc.com:8080 ERROR: While executing gem ... (OptionParser::InvalidArgument) invalid ...
1
vote
0answers
13 views

I have ruby installed greater than 2.3.0 but it says requires greater than 2.3.0 for i18n to be installed

I have ruby version 2.5.1p57 when ran ruby -v command. While installing a cookbook which requires i18n, it throws error i18n requires Ruby version >= 2.3.0. Though the ruby version is greater ...
0
votes
0answers
47 views

Linux Ruby gem error when i want install something

When i want install something through 'gem install' i got error. I always use sudo, i have installed Ruby 2.6.3. i got error like this uilding native extensions. This could take a while... ERROR: ...
0
votes
0answers
9 views

Ruby:A gem listed by 'gem

I'm a nuby to Ruby and have to solve a problem with a Ruby gem ('soap4r'). When I run 'gem list --locale' in the console - as well as 'gem query' - I see 'soap4r (1.5.8)' in the list of gems being ...
0
votes
0answers
42 views

jekyll-theme files not included when installed using bundler?

I recently started playing with GitHub pages as a "blog" page using Jekyll. I wanted to try switching themes and ran into an issue I cannot make google provide a good answer for. I used bundler to ...
0
votes
0answers
754 views

Remove old versions of gems… gem cleanup is not doing it

This is the list of gems of my system after issuing a sudo gem cleanup command: activesupport (4.2.6) addressable (2.5.0) babosa (1.0.2) bigdecimal (1.3.1, default: 1.2.0) bundler (1.14.4) capybara (...
1
vote
1answer
158 views

Difficulty installing Rspec on windows7

I have ruby 2.2.5p319, Bundler version 1.13.1 and gem -v tells me 2.4.5.1 after visiting http://rspec.info/ I made a Gemfile and tried their suggested bundle command: PS C:\Users\user\stuff\Ruby\...
3
votes
1answer
1k views

Effective difference between “gem install --bindir ~/path/to/folder” and “--user-install” in Ruby

I don't have a desire at the moment to learn Ruby, but I just want to know what the difference is between gem install --bindir ~/path/ and gem install --user-install as long as each of the paths are ...
6
votes
4answers
2k views

gem not working in Cygwin

On a freshly installed Windows 7 Professional 64 Bit I installed Cygwin (64) and some of its packages, including Ruby. I have also installed Ruby using the Ruby installer, because I'll likely need it ...
2
votes
0answers
542 views

Failed to install native Ruby Gem wdm 0.1.1 on Windows 7 x64 (Ruby 2.2.0)

Outdated Story (find the update below the next heading) I can't find out why wdm won't install on my computer. I have tried using the Cygwin bash, Windows cmd and GIT bash. Console output: $ gem ...
3
votes
1answer
4k views

Gem installation failling with “The compiler failed to generate an executable file” on cygwin

Trying to install multiple gems on cygwin, I keep getting this error: /usr/share/ruby/2.2.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError) This error is ...
0
votes
2answers
219 views

ruby gem install to 1.9.1 instead of 1.8

I ran the following lines in linux gem install mysql And it installed the mysql gem to /var/lib/gems/1.8/gems. That's not where I want it. I wnat it at /var/lib/gems/1.9.1/gems. I could just copy ...
1
vote
1answer
8k views

Metasploit Install Fails. Requires >= Ruby 2.1 but I have 2.2

I’ve literally been trying to install metasploit for 2 days now and I think that's a ridiculous amount of time just to install some software. I have Arch linux and I am trying to install metasploit-...
0
votes
1answer
376 views

How to run Node.js on Mac after successfully installing it with gem?

On Mac OSX Yosemite I have successfully installed node: # sudo gem install node Fetching: eventmachine-1.0.7.gem (100%) Building native extensions. This could take a while... Successfully installed ...
0
votes
1answer
219 views

Installing TaskJuggler results in timeout

I'm trying to install TaskJuggler. As far as I can tell, I have successfully installed Ruby and Gem. The command I'm trying to execute and the error message is: C:\...>gem install taskjuggler-3.5....
1
vote
1answer
136 views

NoMethodError with Ruby when installing SoundCloud 2000 client for CLI

I’m trying to install SoundCloud2000 on my MacBook running Mac OS X 10.8.5. I have Ruby 2.2.0, mpg123, and portaudio installed. Installing SoundCloud 2000 as a GEM seems to work fine: gem install ...
0
votes
0answers
2k views

Gem: Could not find a valid gem in any repository

my problem is that I installed ruby and gem successfully with no errors, but when I go any further, trying to install any gem, it threw an error: ERROR: Could not find a valid gem '<name>' (&...
3
votes
2answers
5k views

Cowsay doesn't say anything

Okay, I know this is kind of a stupid question to bring to the table here... but why not. I'm using OS X 10.9.2, Mavericks, and have installed cowsay in my terminal with $ sudo gem install cowsay and ...
-1
votes
1answer
196 views

Do i need to install gems required by a Sublime Text plugin into rvm's global gemset or will default do?

If a Sublime Text 3 plugin asks me to install a gem for the plugin to work, do i need to tell rvm to install this gem into my global gemset for it to work properly or can I simply type 'gem install ...
1
vote
1answer
295 views

Issue installing gem

So I'm trying to install this gem but hitting an error. https://github.com/cgore/ruby-btce The actual README says to do a gem install, so I guess I didn't need to clone the git repo? Anyway, I had to ...
2
votes
2answers
2k views

Can't install gems with Ruby: “invalid byte sequence in UTF-8”

I'm using Mountain Lion. I've installed Ruby first with RVM, then with rbenv. I can assure it's running the latest one with which ruby, it correctly points to the one installed with rbenv. gem won't ...
2
votes
1answer
501 views

Can I install some ruby gem on a standard OS X user?

I have a Admin user for serious stuff and a Standard user for daily tasks, including front-end development. On the Admin user, I can install Brew, RVM, Middleman etc. But on the Stardard user, where I ...
4
votes
1answer
4k views

How do I use Sublime Text as the OS editor in Mac OS X?

How do I set Sublime Text as the editor for git commits in Mac OS X? In my .zshrc I have: export EDITOR='subl -w' But, if I do: bundle open devise I get the error: Could not run 'subl -w /Users/...
2
votes
1answer
2k views

Linux - Gem Error installing PG

I'm getting used to Linux, and currently making a switch to Backtrack 5 to start practicing for school in security. I'm running msfupdate, which installs a bunch of gem files. While installing PG from ...
1
vote
2answers
1k views

when trying to install the watir or watir-webdriver gem on Windows 7 via cygwin, getting long C stack trace with mentions of “W32 socket” issues

When running: $ gem install watir on Windows 7 (cygwin), I get this ERROR: Error installing watir: ERROR: Failed to build gem native extension. /usr/bin/ruby.exe extconf.rb checking for ffi.h... ...
1
vote
1answer
238 views

RHEL json gem installation requires make?

When I try to install json gem (gem install json), at first it fails to do so, because of some dev package issue. After fixing it, it fails saying that "sh: make: command not found" and "ERROR: ...
0
votes
1answer
810 views

gem install won't do anything - Mountain Lion

I just got a recent installation of Mountain Lion. I installed homebrew and the gcc on dupes to compile proper rubies. Now, with new versions of ruby (1.9.2) I can create and install gemsets and gems. ...
0
votes
1answer
1k views

Redmine installation - Ruby MySQL connector issue

I am trying to migrate from TRAC to Redmine, though i encountered a problem with the installation procedure. i follow the install guide at : http://www.redmine.org/projects/redmine/wiki/...
0
votes
1answer
257 views

installing SQLite3 gem on remote FreeBSD server using RVM - root permissions needed?

I am trying to install ruby SQLite3 gem, on a remote freebsd server. I'm using RVM which in theory does not need 'root permission' to compile gems but I get a root error, here: [user ~]$ gem ...
0
votes
1answer
391 views

I cannot get pg-0.14.0 gem installed after Mountain Lion install

I have been trying for some time now to get my Rails development environment back up since I upgraded from Lion to Mountain Lion. The problem is specifically installing the pg-0.14.0 (postgresql) gem. ...
0
votes
1answer
185 views

Cannot find Ruby on Rails installed

I've managed to install Ruby and the gems install (rvm?) but now I'm stuck actually installing Ruby on Rails. Every time I execute, gem install rails Terminal says that it's fetching each file and ...
1
vote
0answers
450 views

can I remove imagemagick by deleting directories?

I posted this to StackOverflow, but probably belongs here. I'm on OSX Lion, trying to get back to basics so I can run RMagick in Rails 3.0, using rvm. When I tried to add the RMagick gem to Rails ...
2
votes
1answer
2k views

Ruby Gem “mechanize” missing libxml2 on Mac OS X 10.7.2 (Lion)

I'm trying to run a Ruby script, so I installed Ruby together with Ruby gems on my Mac OS X 10.7 system. The script requires the Rubygem "mechanize" so I tried to install it by using: sudo gem ...
0
votes
1answer
945 views

Process monitor service in Windows

I need something that runs in the background as a service (Windows), watches defined process and when it crosses thresholds it restarts/stop/starts the process again? (similar functionality of rubygem ...
0
votes
1answer
790 views

Install ruby-debug-ide on Snow Leopard running Ruby 1.9.2

I am trying to install ruby-debug-ide on Snow Leopard running Ruby 1.9 so that I can debug ruby code in Netbeans. I am using the following command sudo gem install ruby-debug-ide19 However I keep ...
15
votes
2answers
2k views

Install packages through apt-get or gem?

If a package is available both through apt-get and gem, which one should I choose? I'm on Ubuntu and I don't know if I should install rake through apt-get or gem. I use both apt-get and gem packages ...
13
votes
4answers
17k views

Passing PATH through sudo

In short: how to make sudo not to flush PATH everytime? I have some websites deployed on my server (Debian testing) written with Ruby on Rails. I use Mongrel+Nginx to host them, but there is one ...
10
votes
3answers
16k views

How to install the MySQL Ruby Gem on Ubuntu 9.10?

I am having a problem installing the Ruby Gem for MySQL. This is the command that I am running: sudo gem install mysql and this is the output that I'm getting: Building native extensions. This ...