guedes / pgxn-utils

A set of task that help developers to create PostgreSQL's extensions
http://pgxn.org
Other
37 stars 15 forks source link

Missing dependencies #11

Closed guedes closed 13 years ago

guedes commented 13 years ago

PGXN Utils fails on ruby 1.8 because json is missing.

$ ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]

$ gem install pgxn_utils
Successfully installed thor-0.14.6
Successfully installed rubyzip-0.9.4
Successfully installed zippy-0.1.0
Successfully installed pgxn_utils-0.1.1
4 gems installed
Installing ri documentation for thor-0.14.6...
Installing ri documentation for rubyzip-0.9.4...
Installing ri documentation for zippy-0.1.0...
Installing ri documentation for pgxn_utils-0.1.1...
Installing RDoc documentation for thor-0.14.6...
Installing RDoc documentation for rubyzip-0.9.4...
Installing RDoc documentation for zippy-0.1.0...
Installing RDoc documentation for pgxn_utils-0.1.1...

$ pgxn_utils 
/home/dba/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no     such file to load -- json (LoadError)
        from /home/dba/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /home/dba/.rvm/gems/ruby-1.8.7-p299@pgxn/gems/pgxn_utils-0.1.1/lib/pgxn_utils.rb:2
        from /home/dba/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in     `gem_original_require'
        from /home/dba/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /home/dba/.rvm/gems/ruby-1.8.7-p299@pgxn/gems/pgxn_utils-0.1.1/bin/pgxn_utils:4
        from /home/dba/.rvm/gems/ruby-1.8.7-p299@pgxn/bin/pgxn_utils:19:in `load'
        from /home/dba/.rvm/gems/ruby-1.8.7-p299@pgxn/bin/pgxn_utils:19
guedes commented 13 years ago

A quick solution is:

gem install json