GithubHelp home page GithubHelp logo

brin100 / build-essential Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chef-boneyard/build-essential

0.0 1.0 0.0 951 KB

Development repository for Opscode Cookbook build-essential

Home Page: http://community.opscode.com/cookbooks/build-essential

License: Apache License 2.0

build-essential's Introduction

Description

Cookbook Version Build Status

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.

Requirements

Chef 11+ and Ohai 6.14+ are required. For the latest list of supported platforms, please see the metadata.rb.

Note for OmniOS: Currently, OmniOS's Ruby package is built with GCC 4.6.3, and the path is hardcoded, as the gcc binaries are not installed in the default $PATH. This means that in order to install RubyGems into the "system" Ruby, one must install developer/gcc46. An issue is open upstream w/ OmniOS to rebuild the Ruby package with GCC 4.7.2.

Attributes

Attribute Default Description
compile_time false Execute resources at compile time

Usage

Include the build-essential recipe in your run list:

knife 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:

include_recipe 'build-essential::default'

Gems with C extensions

For RubyGems that include native C extensions you wish to use with Chef, you should do the following.

  1. Set the compile_time attribute to true in your wrapper cookbook or role:

    # Wrapper attribute
    default['build-essential']['compile_time'] = true
    # Role
    default_attributes(
      'build-essential' => {
        'compile_time' = true
      }
    )
  2. 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:

    include_recipe 'build-essential::default'
    
    package('mypackage-devel') { action :nothing }.run_action(:install)
  3. Use the chef_gem resource in your recipe to install the gem with the native extension:

    chef_gem 'gem-with-native-extension'

License & Authors

Copyright 2009-2014, Chef Software, Inc. (<[email protected]>)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

build-essential's People

Contributors

adamhjk avatar aledalgrande avatar cwebberops avatar hectcastro avatar josephholsten avatar jpgriffo avatar jtimberman avatar lamont-granquist avatar miketheman avatar nathenharvey avatar reset avatar sax avatar schisamo avatar sethvargo avatar tas50 avatar zachallett avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.