Bug #1090

Puppet fails to install gems even if rubygems package resource is defined.

Added by Paul Lathrop about 4 years ago. Updated 8 months ago.

Status:Closed Start date:
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Affected Puppet version:0.25.4 Branch:
Keywords:
Votes: 0

Description

package { 'rubygems': ensure => installed }

  # Ruby gems we want installed
  package { 'trollop':
    provider => 'gem',
    ensure => installed,
    require => Package[[rubygems]]
  }

fails with:

err: Could not create trollop: Parameter provider failed: Provider 'gem' is not functional on this platform

History

Updated by Luke Kanies about 4 years ago

  • Status changed from 1 to Closed
  • 7 set to duplicate

Duplicate of #571.

Updated by Steve Traylen 8 months ago

  • Assignee deleted (Puppet Community)

This one still seems be present for me:

if the rubygem rpm package is not installed to start with.

info: Caching catalog for poppet02.cern.ch err: Could not prefetch package provider ‘gem’: Could not list gems: Execution of ‘ list —local’ returned 1: info: Applying configuration version ‘1316715941’ notice: /Stage[main]/Rump::Install/Package[rubygems]/ensure: created notice: /Stage[main]/Rump::Install/Package[rump]/ensure: created notice: Finished catalog run in 24.29 seconds

puppet-2.6.6-1

on the second run all is well of course.

Steve.

Also available in: Atom PDF