Questions tagged [gem]
50 questions
14
votes
3 answers
Checking if a ruby gem is installed from bash script
I need to, from a bash script, check to see if certain Ruby gems are installed .
I thought I could do something like
if ! gem list ; then do_stuff; fi
but testing on the command line using echo $? shows that gem list returns 0…
Lee Lowder
- 440
- 1
- 5
- 17
7
votes
5 answers
RVM not picking up /etc/gemrc
in a system wide RVM ....
heres my /etc/gemrc
---
gem:--no-ri --no-rdoc
heres the system gem env
GEM PATHS:
- /usr/lib/ruby/gems/1.9.1
- /home/${USER}/.gem/ruby/1.9.1
GEM CONFIGURATION:
- :update_sources => true
-…
jtzero
- 171
- 1
- 7
4
votes
1 answer
Why does puppet module generate produce a Gemfile, and what is its purpose?
I recently ran puppet module generate, and ended up with a whole lot of crap that looked unnecessary for a simple module. I mean, a lot of minimal modules amount to templating a configuration file or two and letting an open source Puppet module do…
Nathan Basanese
- 321
- 1
- 4
- 19
3
votes
1 answer
gem install append CPPFLAGS / LDFLAGS
I can't seem to get gem install charlock_holmes -v 0.6.9.4 to work.
I can hand edit the ./ext/charlock_holmes/extconf.rb and includ
$INCFLAGS << " -I/usr/local/include "
$LDFLAGS << " -L/usr/local/lib "
execute make cleanly and re-write the spec…
Rob Paisley
- 296
- 2
- 9
3
votes
1 answer
Install gems of ruby 1.9 bins without suffix in openSuSE
I got issue on my openSuSE instances.
By default in openSuSE after installation by gem utility (gem install some_app) you will got something like that:
# some_app1.9
# chef-solo1.9
etc.
That a bad behaviour especially if you want automate stuff.
user111277
3
votes
1 answer
Passenger fails to run on first load, but successfully launches after single refresh
I have a pretty simply passenger installation on my production server. It seems that every night the passenger process quits due to inactivity.
When I hit the site in the morning, passenger starts up again and will give me a fairly straightforward…
Andy
- 31
- 1
2
votes
0 answers
Deploying a c-compiled ruby gem with puppet module
I have a type/provider module that depends on a c-compiled gem. What is the best way to package this up and deploy to the users? Is the SOP to install the gem as a package (using gem provider) first, then I can make use of the module? Or is there a…
destructo
- 21
- 1
2
votes
2 answers
How to install gems for non-default Ruby with Puppet?
The ruby included with RedHat/CentOS-6 is of version 1.8.7, which is too old for many applications. Though simply updating it with a custom-built RPM is possible, my colleagues shy away from the idea and wish to use the rh-ruby22 packages available…
Mikhail T.
- 2,272
- 1
- 22
- 49
2
votes
1 answer
vagrant plugin install error
I'm trying to install a vagrant plugin
$ vagrant plugin install vagrant-aws
which exits with this error:
Make sure that `gem install nokogiri -v '1.6.3.1'` succeeds before bundling.
When I try that command
$ gem install nokogiri -v '1.6.3.1'
It…
andrewtweber
- 449
- 1
- 10
- 18
2
votes
1 answer
Redmine won't start after move
I met trouble with redmine(or ruby configuration) when move from one server to another
redmine@dirty:~/www$ ruby script/rails server webrick -e production
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/mysql2-0.3.14/lib/mysql2.rb:8:in `require': Incorrect…
ruX
- 71
- 5
2
votes
2 answers
Monit and Thin and Unfound Gems
I've been using Monit to monitor my Thin server and everything was working until I upgraded my Rails version from 2.3.4 to 2.3.14. Now when I try and start Thin using monit it gives me an unfound gem error:
Missing the Rails 2.3.14 gem. Please `gem…
TenJack
- 193
- 2
- 7
2
votes
0 answers
Problems installing Gitorious on Debian 6.0.4
i am trying to install Gitorious on latest Debian 6.0.4 but i am running into some problems and hope there is somebody out here who might be able to help.
I followed this article: http://gitorious.org/gitorious/pages/DebianSqueezeInstallation
I…
Thomas
- 21
- 1
2
votes
1 answer
Memcache on ubuntu server lucid and ruby 1.9.1
I'm trying to set up a memcache server on the above setup. I'm getting the following error:
/var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:443:in `load_missing_constant': uninitialized constant MemCache…
Thiago
- 267
- 1
- 2
- 7
1
vote
0 answers
Gem bundler disappeared from Ruby on Rails server
Linux (Ubuntu) Ruby on Rails WEBrick server was running fine last night. Woke up this morning and the computer I use to SSH on to my remote server had stalled. After rebooting I attempted to restart the server process. When I did so, I was greeted…
Just In Time Berlake
- 111
- 6
1
vote
2 answers
How to puppetize gem install specific to puppet's ruby?
The Puppet Azure module requires specific gems to be installed. The directions https://github.com/puppetlabs/puppetlabs-azure show the following example:
/opt/puppetlabs/puppet/bin/gem install azure azure_mgmt_compute azure_mgmt_storage…
Mike Marseglia
- 883
- 7
- 18