Silent failure on gem install

9 views
Skip to first unread message

Tim Uckun

unread,
Nov 2, 2009, 10:13:36 PM11/2/09
to autom...@googlegroups.com
I have a case of silent failure when trying to install gems with
native libraries. It runs the gem install command which fails because
the dev libraries are not in place but the install command returns
true and the gems are not installed.

is there a way to force the package manager to raise an exception when
anything can't be installed?


package_manager.install <<-HERE, :with => :gem, :docs => false
ruby-pg
postgres
HERE


This is the output

=> Driver AutomateIt::PackageManager::Portage isn't available
driver AutomateIt::PackageManager::DPKG doesn't implement the
+suitability+ method
=> Driver AutomateIt::PackageManager::APT is available
=> Driver AutomateIt::PackageManager::YUM isn't available
** dpkg --status ruby1.8-dev libopenssl-ruby 2>&1
=> installed?(["ruby1.8-dev", "libopenssl-ruby"]) => true:
["ruby1.8-dev", "libopenssl-ruby"]
=> not_installed?(["ruby1.8-dev", "libopenssl-ruby"]) => false: []
=> Driver AutomateIt::PackageManager::Gem is available
** /usr/bin/gem list --local 2>&1
=> installed?(["rake", "open4"]) => true: ["rake", "open4"]
=> not_installed?(["rake", "open4"]) => false: []
** /usr/bin/gem list --local 2>&1
=> installed?(["ruby-pg", "postgres"]) => false: []
=> not_installed?(["ruby-pg", "postgres"]) => true: ["ruby-pg", "postgres"]
** /usr/bin/gem install -y --no-ri --no-rdoc ruby-pg postgres 2>&1


# gem list

*** LOCAL GEMS ***

automateit (0.80624)
hoe (2.3.3)
json_pure (1.1.9)
open4 (1.0.1)
rake (0.8.7)
rcov (0.8.1.2.0)
rubyforge (2.0.3)

# which gem
/usr/bin/gem
Reply all
Reply to author
Forward
0 new messages