mohatt / dashbrew

Vagrant build for developing PHP projects on different PHP versions and configurations
492 stars 38 forks source link

Failing on Windows? #1

Closed iamntz closed 9 years ago

iamntz commented 9 years ago

With the sample environment.yaml file, vagrant up fails with this log:

==> default: 5.6: 7 releases
==> default: 5.5: 22 releases
==> default: 5.4: 38 releases
==> default: 5.3: 29 releases
==> default: ===> Done
==> default: ===> phpbrew will now build 5.6.0 plus custom variants: ++dev as 5.6.0
==> default: ===> Loading and resolving variants...
==> default: Checking distribution checksum...
==> default: Checksum matched: 1f889357528809a6675e2f23995832d7
==> default: ===> Extracting /opt/phpbrew/distfiles/php-5.6.0.tar.bz2 to /opt/phpbrew/tmp/php-5.6.0
==> default: ===> Removing /opt/phpbrew/build/5.6.0
==> default: ===> Moving /opt/phpbrew/tmp/php-5.6.0 to /opt/phpbrew/build/5.6.0
==> default: Variant '0' is not defined.
==> default: [Debug] -------------------------------------------------------
==> default: [Error] Unable to build php
==> default: [Info] Finished in 8.69s

I first assumed that Variant '0' is not defined. is because the php version was 5.6.0, so I bumped to latest (5.6.6), but no dice (same error)

This may be a cause of running

find . -name "*" -type f -exec dos2unix {} \;

because all text files were converted to CRLF, so bash commands failed, but I don't know how else I could test...

mohatt commented 9 years ago

I just fixed this on #2 . It was a problem with the sample config file.

Please update your environment.yaml and try again.

---
#
# OS Packages
#
# Packages to install via the OS package manager (apt-get).
#
os::packages:
  vim: true

#
# PHP Builds
#
# A hash containing a list of PHP versions and their configurations
#  to be managed by phpbrew.
#
php::builds:
  5.6.0:
    installed: true
    default: true
    variants: dev
    extensions:
      xdebug:
        enabled: true
        version: stable
      xhprof:
        enabled: true
        version: latest
    fpm:
      port: 9002
      autostart: true

#
# Apache Modules
#
# Apache modules to install and enable.
#
apache::modules:
  rewrite: true

#
# Nodejs Modules
#
# Nodejs Modules to install via npm.
#
npm::packages:
  grunt-cli: true

#
# Debug mode
#
# Enables extra information during provisioning
#
debug: false
iamntz commented 9 years ago

Ah! So that was a typo! I thought it's some kind of dark magic :+1:

Thanks for the quick fix (i already re-cloned and added all PHP versions; is building 5.5 now and everything seems to be just fine)

Thanks again!

mohatt commented 9 years ago

You're welcome :) I hope you find it useful.