Git Product home page Git Product logo

Comments (5)

intel352 avatar intel352 commented on August 26, 2024

I had a similar issue with zlib on my osx install. Ended up working around by untapping homebrew/dupes, then removing the repo entirely, then re-tapping it again. After that, zlib was found properly.

from puppet-homebrew.

ocxo avatar ocxo commented on August 26, 2024

Hasn't been any recent activity on this so going to close. Please reopen if you're still running into this.

from puppet-homebrew.

aapit avatar aapit commented on August 26, 2024

I realize this is an old issue report, but I recently ran into these exact same symptoms with the current Boxen (BOXEN_SETUP_VERSION fd2ae87, Puppet 3.6.1) whenever I tried installing one of the Josegonzales PHP versions, like josegonzales/homebrew-php/php54.

Since I kept stumbling upon this post, I'd like to leave my workaround here for anyone experiencing the same issues. Using the install_options parameter, you can indicate that the system's existing zlib (present by default on osx) should be used:

exec { "tap-homebrew-dupes":
    command => "brew tap homebrew/dupes",
    creates => "${homebrew::config::tapsdir}/homebrew-dupes",
}

exec { "tap-josegonzalez-homebrew-php":
    command => "brew tap josegonzalez/homebrew-php",
    creates => "${homebrew::config::tapsdir}/josegonzalez-php",
    require => Exec["tap-homebrew-dupes"],
}

package { "php54":
    ensure => present,
    require => [
        Exec["tap-josegonzalez-homebrew-php"]
    ],
    install_options => '--with-zlib-dir=/usr/include'
}

Instead of --with-zlib-dir=/path/to/system/zlib you could also use --without-zlib to skip around any issues. That's probably not such a good idea though, since many other packages require zlib's compression algorithms.

from puppet-homebrew.

mattheath avatar mattheath commented on August 26, 2024

@aapit Have you tried the boxen PHP module? It may be easier for you than running execs, and supports multiple versions 😄

from puppet-homebrew.

aapit avatar aapit commented on August 26, 2024

@mattheath I did look it over, but never realized it was this elaborate until now.
My php setup contains extensions like ssh2, which I so far only found out of the box in josegonzales' repo. But since the more manual Homebrew setup keeps running me into trouble, I'm giving puppet-php another go. So thanks!

from puppet-homebrew.

Related Issues (20)

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.