Questions tagged [gem]
38 questions
15
votes
4 answers
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 problem that comes when I need to restart Mongrel…
Catherine
- 16,103
- 5
- 46
- 55
14
votes
2 answers
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 a lot.
What are the pros and cons with each?
ajsie
- 1,871
- 4
- 23
- 30
10
votes
3 answers
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 could take a while...
ERROR: Error installing mysql:
…
Andrew
- 14,554
- 30
- 70
- 82
6
votes
4 answers
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 for both the default Windows shells and…
Neonit
- 182
- 1
- 8
5
votes
1 answer
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…
Edward
- 153
- 1
- 5
4
votes
1 answer
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 part of the full error message…
Camusensei
- 231
- 2
- 8
4
votes
2 answers
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 it said everything installed properly.
However,…
Ev-
- 479
- 2
- 6
- 17
3
votes
1 answer
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 in my $PATH.
jsejcksn
- 3,923
- 3
- 27
- 34
2
votes
2 answers
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 install any gem, it always throws me the same…
Cristian
- 81
- 1
- 6
2
votes
1 answer
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 plan to develop using Middleman, I can't install…
Joel Cipriano
- 21
- 3
2
votes
1 answer
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 gem I get this error. How can I go about fixing…
Dustin
- 837
- 2
- 9
- 14
2
votes
1 answer
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 install mechanize
However this fails with an…
asdrubael
- 637
- 1
- 6
- 10
2
votes
0 answers
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 (2.7.0)
CFPropertyList (2.3.5)
claide…
Duck
- 1,757
- 2
- 28
- 44
2
votes
0 answers
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 install wdm
Building native extensions. This could…
Neonit
- 182
- 1
- 8
1
vote
1 answer
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-git from AUR. I’ve followed the Arch linux…
user3408678
- 41
- 1
- 4