Skip to content

Instantly share code, notes, and snippets.

View lichen2013's full-sized avatar

Chen Li lichen2013

  • 14:55 (UTC +08:00)
View GitHub Profile
#!/opt/sensu/embedded/bin/ruby
#
# This file was generated by RubyGems.
#
# The application 'sensu' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
gem install ./sensu-0.28.0.gem
Fetching: parse-cron-0.1.4.gem (100%)
Successfully installed parse-cron-0.1.4
Fetching: eventmachine-1.2.2.gem (100%)
Building native extensions. This could take a while...
Successfully installed eventmachine-1.2.2
Fetching: em-http-server-0.1.8.gem (100%)
Successfully installed em-http-server-0.1.8
Fetching: sensu-redis-2.1.0.gem (100%)
Successfully installed sensu-redis-2.1.0
sudo gem install ./sensu-0.28.0.gem
Fetching: eventmachine-1.2.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing ./sensu-0.28.0.gem:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:2:in `<main>'
gem build -V sensu.gemspec
Invalid gemspec in [sensu.gemspec]: can't modify frozen String
ERROR: Error loading gemspec. Aborting.
Successfully built RubyGem
Name: sensu
Version: 0.28.0
File: sensu-0.28.0.gem
git diff
diff --git a/sensu.gemspec b/sensu.gemspec
index 5fbdb5e..ab3eed2 100644
--- a/sensu.gemspec
+++ b/sensu.gemspec
@@ -3,7 +3,7 @@ require File.join(File.dirname(__FILE__), "lib", "sensu", "constants")
Gem::Specification.new do |s|
s.name = "sensu"
- s.version = Sensu::VERSION