Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Puppet安装gem失败,但无论如何都安装了gem 我有一个傀儡清单安装Zurb基金会GEM: class compass { package { ["rubygems"]: ensure => 'installed' } package { ['zurb-foundation']: ensure => '3.0.6', provider => 'gem', require => Package['rubygems'] } }_Zurb Foundation_Puppet - Fatal编程技术网

Puppet安装gem失败,但无论如何都安装了gem 我有一个傀儡清单安装Zurb基金会GEM: class compass { package { ["rubygems"]: ensure => 'installed' } package { ['zurb-foundation']: ensure => '3.0.6', provider => 'gem', require => Package['rubygems'] } }

Puppet安装gem失败,但无论如何都安装了gem 我有一个傀儡清单安装Zurb基金会GEM: class compass { package { ["rubygems"]: ensure => 'installed' } package { ['zurb-foundation']: ensure => '3.0.6', provider => 'gem', require => Package['rubygems'] } },zurb-foundation,puppet,Zurb Foundation,Puppet,这会在运行puppet apply时导致以下错误: err: /Stage[main]/Compass/Package[zurb-foundation]/ensure: change from absent to 3.0.6 failed: Could not update: Execution of '/usr/bin/gem install -v 3.0.6 --include-dependencies --no-rdoc --no-ri zurb-foundation' returned

这会在运行
puppet apply
时导致以下错误:

err: /Stage[main]/Compass/Package[zurb-foundation]/ensure: change from absent to 3.0.6 failed: Could not update: Execution of '/usr/bin/gem install -v 3.0.6 --include-dependencies --no-rdoc --no-ri zurb-foundation' returned 1: INFO:  `gem install -y` is now default and will be removed
INFO:  use --ignore-dependencies to install only the gems you list
Building native extensions.  This could take a while...
ERROR:  Error installing zurb-foundation:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from extconf.rb:4:in `<main>'


Gem files will remain installed in /var/lib/gems/1.9.1/gems/ffi-1.9.0 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/ffi-1.9.0/ext/ffi_c/gem_make.out
 at /etc/puppet/manifests/classes/compass.pp:25

该错误导致
puppet apply
无法正确完成,因为由于依赖项失败,许多项被跳过。我能做什么?

我认为问题在于没有为ruby安装ruby开发工具包(这是用来构建本机扩展的)

您需要添加以下内容(可能会因您的ruby版本而异):


这应该允许正确地构建gem,并让您的puppet运行完成。

我认为问题在于您没有为您的ruby安装ruby开发工具包(这是用于构建本机扩展的)

您需要添加以下内容(可能会因您的ruby版本而异):

这应该允许宝石被正确地建造,让你的木偶也跑完

# gem list

*** LOCAL GEMS ***

chunky_png (1.2.8)
compass (0.12.2)
fssm (0.2.10)
rake (10.1.0)
rb-fsevent (0.9.3)
sass (3.2.0.alpha.277)
zurb-foundation (3.0.6)
package { 'ruby-dev':
  ensure => installed,
  before => Package['zurb-foundation'],
}