fpm installation error

197 views
Skip to first unread message

Nathan West

unread,
May 8, 2013, 7:05:19 PM5/8/13
to fpm-...@googlegroups.com
Hey all, I'm not very familiar with ruby in general and am stuck on the simple fpm install.

I've tried also installing the 2.8.0 version of backports, and am able to 'make' fpm. However, it errors at the end:

# make rpm
Makefile:33: warning: overriding commands for target `clean'
Makefile.ext:15: warning: ignoring old commands for target `clean'
fpm -s dir -t rpm -n lumberjack -v 0.0.30 --prefix /opt/lumberjack \
--exclude '*.a' --exclude 'lib/pkgconfig/zlib.pc' -C build \
--description "a log shipping tool" \
bin/lumberjack bin/lumberjack.sh lib
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:233:in `activate': can't activate backports (= 2.3.0, runtime) for ["ftw-0.0.32", "fpm-0.4.35"], already activated backports-3.3.0 for ["fpm-0.4.35"] (Gem::LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:249:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `each'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:249:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `each'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:1082:in `gem'
from /usr/bin/fpm:18
make: *** [rpm] Error 1
#


Uninstalling all backports versions, and trying this doesn't get me anywhere either:

# sudo gem install fpm
Successfully installed backports-3.3.0
Successfully installed ftw-0.0.33
Successfully installed fpm-0.4.35
3 gems installed
Installing ri documentation for backports-3.3.0...


RDoc failure in lib/backports/1.9.1/math/log.rb at or around line 4 column 29

Before reporting this, could you check that the file
you're documenting compiles cleanly--RDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.

The internal error was:

ERROR:  While executing gem ... (NoMethodError)
    undefined method `add_require' for nil:NilClass

Anything else I can try??

Thanks.

Jordan Sissel

unread,
May 8, 2013, 7:26:20 PM5/8/13
to fpm-...@googlegroups.com
On Wed, May 8, 2013 at 4:05 PM, Nathan West <nwe...@gmail.com> wrote:
Hey all, I'm not very familiar with ruby in general and am stuck on the simple fpm install.

I've tried also installing the 2.8.0 version of backports, and am able to 'make' fpm. However, it errors at the end:

# make rpm
Makefile:33: warning: overriding commands for target `clean'
Makefile.ext:15: warning: ignoring old commands for target `clean'
fpm -s dir -t rpm -n lumberjack -v 0.0.30 --prefix /opt/lumberjack \
--exclude '*.a' --exclude 'lib/pkgconfig/zlib.pc' -C build \
--description "a log shipping tool" \
bin/lumberjack bin/lumberjack.sh lib
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:233:in `activate': can't activate backports (= 2.3.0, runtime) for ["ftw-0.0.32", "fpm-0.4.35"], already activated backports-3.3.0 for ["fpm-0.4.35"] (Gem::LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:249:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `each'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:249:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `each'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:1082:in `gem'
from /usr/bin/fpm:18
make: *** [rpm] Error 1

This is a bug, not something you have done wrong

I release a new ftw gem that should fix this. If you 'gem uninstall fpm ftw' and reinstall fpm it should work.

-Jordan

Nathan West

unread,
May 9, 2013, 10:26:14 AM5/9/13
to fpm-...@googlegroups.com
Everything installed perfectly. Thanks for the quick response Jordan!
Reply all
Reply to author
Forward
0 new messages