Project

General

Profile

Actions

Bug #669

closed

Ubuntu packge doesn't detect libraries properly

Added by Dis Connect about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Category:
Packaging
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Built with pkg:deb, got:

 Missing these required gems:
  rest-client >= 1.4.0
  json

You're running:
  ruby 1.8.7.253 at /usr/bin/ruby1.8
  rubygems 1.3.7 at /usr/share/foreman/.gem/ruby/1.8, /var/lib/gems/1.8

But the appropriate Ubuntu packages are installed:

$ dpkg -l librestclient-ruby1.8 libjson-ruby1.8
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=====================-=====================-==========================================================
ii libjson-ruby1.8 1.1.9-1 JSON library for Ruby (Ruby 1.8 version)
ii librestclient-ruby1.8 1.4.2-1 simple REST client for Ruby@

A workaround is attached - don't check with 'config.gem'. (A more portable answer is to retry with 'require', since the various gems and libs are available that way. The patch below will break anyone who doesn't have the required libs and such..)


Files

foreman-deb.diff foreman-deb.diff 667 Bytes Dis Connect, 02/15/2011 10:56 AM
Actions

Also available in: Atom PDF