Running fpm on CentOS 5.8

508 views
Skip to first unread message

James Marcus

unread,
Sep 30, 2012, 7:22:54 PM9/30/12
to fpm-...@googlegroups.com
Hi,
I have tried to run gem install fpm and ruby bombs. What is needed to get fpm installed correctly?

 When I run fpm from the download I get this:

[root@ws301 bin]# ./fpm --help
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- backports (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from ./../lib/fpm/package.rb:5
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from ./../lib/fpm.rb:3
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from ./fpm:5
[root@ws301 bin]# 

or

[root@ws301 src]# ~jmarcus/jordansissel-fpm-7bf937b/bin/fpm -s GeoIP-1.4.8 -t rpm -n GeoIP -v 1.4.8 GeoIP-1.4.8/
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- backports (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /home/jmarcus/jordansissel-fpm-7bf937b/bin/../lib/fpm/package.rb:5
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /home/jmarcus/jordansissel-fpm-7bf937b/bin/../lib/fpm.rb:3
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /home/jmarcus/jordansissel-fpm-7bf937b/bin/fpm:5
[root@ws301 src]# 


[root@ws301 bin]# rpm -qa | grep ruby
rubygems-1.3.2-2.el5.rf
rubygem-RedCloth-4.2.7-1.el5.rf
rubygem-hoe-2.9.1-1.el5.rf
rubygem-archive-tar-minitar-0.5.2-1.el5.rf
rubygem-haml-3.0.25-1.el5.rf
rubygem-thin-1.2.7-1.el5.rf
rubygem-rack-1.1.0-1.el5.rf
rubygem-mutter-0.5.3-1.el5.rf
rubygem-gem_plugin-0.2.3-1.el5.rf
rubygem-activesupport-3.0.4-1.el5.rf
rubygem-deltacloud-client-0.1.1-1.el5.rf
rubygem-rexical-1.0.5-1.el5.rf
ruby-irb-1.8.5-24.el5
rubygem-json-1.5.1-1.el5.rf
rubygem-eventmachine-0.12.10-1.el5.rf
libselinux-ruby-1.33.4-5.7.el5
rubygem-daemons-1.1.0-1.el5.rf
rubygem-cgi_multipart_eof_fix-2.5.0-1.el5.rf
rubygem-less-1.2.21-1.el5.rf
rubygem-amazon-ec2-0.9.17-1.el5.rf
rubygem-liquid-2.2.2-1.el5.rf
rubygem-rest-client-1.6.1-1.el5.rf
rubygem-radius-0.6.1-1.el5.rf
rubygem-mongrel-1.1.5-1.el5.rf
rubygem-rubyforge-2.0.4-1.el5.rf
rubygem-rake-compiler-0.7.6-1.el5.rf
ruby-1.8.5-24.el5
rubygem-nokogiri-1.4.4-1.el5.rf
ruby-shadow-1.4.1-2.el5.rf
rubygem-fastthread-1.0.7-1.el5.rf
rubygem-builder-3.0.0-1.el5.rf
rubygem-rack-accept-0.4.3-1.el5.rf
rubygem-treetop-1.4.9-1.el5.rf
rubygem-xml-simple-1.0.14-1.el5.rf
rubygem-erubis-2.6.6-1.el5.rf
rubygem-mime-types-1.16-1.el5.rf
rubygem-right_aws-2.0.0-1.el5.rf
rubygem-stomp-1.1.8-1.el5.rf
rubygem-minitest-2.0.2-1.el5.rf
rubygem-puppet-lint-0.1.6-1.el5.rf
ruby-libs-1.8.5-24.el5
ruby-augeas-0.4.1-2.el5.rf
rubygem-rake-0.8.7-2.el5.rf
rubygem-polyglot-0.3.1-1.el5.rf
rubygem-abstract-1.0.0-1.el5.rf
rubygem-right_http_connection-1.2.4-1.el5.rf
rubygem-couchrest-1.0.1-1.el5.rf
ruby-rdoc-1.8.5-24.el5
rubygem-rcov-0.9.9-1.el5.rf
rubygem-markaby-0.7.1-1.el5.rf
rubygem-tilt-1.2.2-1.el5.rf
rubygem-sinatra-1.1.3-1.el5.rf
rubygem-deltacloud-core-0.1.2-1.el5.rf

Matt Blair

unread,
Sep 30, 2012, 7:29:36 PM9/30/12
to fpm-...@googlegroups.com
FPM depends on the 'backports' gem, which you don't seem to have installed:

https://github.com/jordansissel/fpm/blob/master/fpm.gemspec#L27

https://github.com/marcandre/backports

It looks like you're running Ruby 1.8.5; according to the Backports README, it's 'compatible with Ruby 1.8.6, 1.8.7, 1.9.1, 1.9.2, 1.9.3, JRuby and Rubinius.'

-Matt

Ask Bjørn Hansen

unread,
May 10, 2013, 6:21:40 PM5/10/13
to fpm-...@googlegroups.com


On Sunday, September 30, 2012 4:29:38 PM UTC-7, Matthew Blair wrote:
FPM depends on the 'backports' gem, which you don't seem to have installed:

I'm also trying to build some tools on RHEL/CentOS 5, but I do have "backports" installed but get this error,

/usr/lib/ruby/gems/1.8/gems/clamp-0.6.0/lib/clamp/attribute/declaration.rb:36:in `append_to_args': undefined method `instance_variable_defined?' f
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.0/lib/clamp/parameter/parsing.rb:13:in `send'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.0/lib/clamp/parameter/parsing.rb:13:in `parse_parameters'
from /usr/lib/ruby/gems/1.8/gems/backports-3.3.0/lib/backports/tools.rb:117:in `each_without_optional_block'
from /usr/lib/ruby/gems/1.8/gems/backports-3.3.0/lib/backports/tools.rb:117:in `each'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.0/lib/clamp/parameter/parsing.rb:12:in `parse_parameters'
from /usr/lib/ruby/gems/1.8/gems/backports-3.3.0/lib/backports/tools.rb:117:in `each_without_optional_block'
from /usr/lib/ruby/gems/1.8/gems/backports-3.3.0/lib/backports/tools.rb:117:in `each'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.0/lib/clamp/parameter/parsing.rb:10:in `parse_parameters'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.0/lib/clamp/command.rb:55:in `parse'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.0/lib/clamp/command.rb:68:in `run'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.0/lib/clamp/command.rb:127:in `run'
from /usr/lib/ruby/gems/1.8/gems/fpm-0.4.35/bin/fpm:8
from /usr/bin/fpm:19:in `load'
from /usr/bin/fpm:19

If I add a --config-files option the error is instead,

/usr/lib/ruby/gems/1.8/gems/clamp-0.6.0/lib/clamp/attribute/declaration.rb:36:in `append_to_config_files': undefined method `instance_variable_def
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.0/lib/clamp/option/parsing.rb:31:in `send'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.0/lib/clamp/option/parsing.rb:31:in `parse_options'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.0/lib/clamp/command.rb:53:in `parse'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.0/lib/clamp/command.rb:68:in `run'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.0/lib/clamp/command.rb:127:in `run'
from /usr/lib/ruby/gems/1.8/gems/fpm-0.4.35/bin/fpm:8
from /usr/bin/fpm:19:in `load'
from /usr/bin/fpm:19


Ask
Reply all
Reply to author
Forward
0 new messages