Name: build-essential
Owner: LinuxONE and Linux on z Systems Open-source Team
Description: Development repository for build-essential Chef Cookbook
Created: 2016-04-12 16:46:29.0
Updated: 2016-04-12 16:46:29.0
Pushed: 2016-04-13 04:41:37.0
Homepage: https://supermarket.chef.io/cookbooks/build-essential
Size: 228
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Installs packages required for compiling C software from source. Use this cookbook if you wish to compile C programs, or install RubyGems with native extensions.
Note for Debian platform family: On Debian platform-family systems, it is recommended that apt-get update
be run, to ensure that the package cache is updated. It's not in the scope of this cookbook to do that, as it can create a duplicate resource. We recommend using the apt cookbook to do this.
Attribute | Default | Description
—————————————– | :————————–: | ———————————–
node['build-essential']['compile_time']
| false
| Execute resources at compile time
node['build-essential']['msys']['path']
| #{ENV['SYSTEMDRIVE']\\msys
| Destination for msys (Windows only)
Include the build-essential recipe in your run list:
e node run_list add NODE "recipe[build-essential::default]"
or add the build-essential recipe as a dependency and include it from inside another cookbook:
ude_recipe 'build-essential::default'
For RubyGems that include native C extensions you wish to use with Chef, you should do the following.
Set the compile_time
attribute to true in your wrapper cookbook or role:
apper attribute
ult['build-essential']['compile_time'] = true
uby
le
ult_attributes(
ild-essential' => {
compile_time' => true
Ensure that the C libraries, which include files and other assorted “dev”
type packages, are installed in the compile phase after the build-essential
recipe is executed. For example:
ude_recipe 'build-essential::default'
age('mypackage-devel') { action :nothing }.run_action(:install)
Use the chef_gem
resource in your recipe to install the gem with the native
extension:
_gem 'gem-with-native-extension'
Author: Cookbook Engineering Team (cookbooks@chef.io)
Copyright: 2009-2015, Chef Software, Inc.
nsed under the Apache License, Version 2.0 (the "License");
may not use this file except in compliance with the License.
may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
ss required by applicable law or agreed to in writing, software
ributed under the License is distributed on an "AS IS" BASIS,
OUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
the License for the specific language governing permissions and
tations under the License.