Closed enthooz closed 11 years ago
This may be related: https://bugs.php.net/bug.php?id=51821
Looks like installing libevent via homebrew, then adding the configure option --with-libevent-dir=/opt/boxen/homebrew/opt/libevent
seems to fix 5.3.3
. Just testing 5.3.2
then will push up a fix. Thanks for the awesome bug report btw! :thumbsup:
Rad, dude. Pulling down and testing with this change now.
It looked like everything was going fine until...
Error: Could not set 'present' on ensure: uncaught throw `Failed to install PHP 5.3.3' at 118:/opt/boxen/repo/shared/php/manifests/version.pp
Error: Could not set 'present' on ensure: uncaught throw `Failed to install PHP 5.3.3' at 118:/opt/boxen/repo/shared/php/manifests/version.pp
Wrapped exception:
uncaught throw `Failed to install PHP 5.3.3'
Error: /Stage[main]/Php::5-3-3/Php::Version[5.3.3]/Php_version[5.3.3]/ensure: change from absent to present failed: Could not set 'present' on ensure: uncaught throw `Failed to install PHP 5.3.3' at 118:/opt/boxen/repo/shared/php/manifests/version.pp
This happened right after:
Installing PEAR environment: /opt/boxen/phpenv/versions/5.3.3/lib/php/
[PEAR] Archive_Tar - installed: 1.3.7
[PEAR] Console_Getopt - installed: 1.3.0
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util - installed: 1.2.1
[PEAR] PEAR - installed: 1.9.4
Wrote PEAR system config file at: /opt/boxen/config/php/5.3.3/pear.conf
You may want to add: /opt/boxen/phpenv/versions/5.3.3/lib/php to your php.ini include_path
/opt/boxen/phpenv/php-src/build/shtool install -c ext/phar/phar.phar /opt/boxen/phpenv/versions/5.3.3/bin
ln -s -f /opt/boxen/phpenv/versions/5.3.3/bin/phar.phar /opt/boxen/phpenv/versions/5.3.3/bin/phar
Installing PDO headers: /opt/boxen/phpenv/versions/5.3.3/include/php/ext/pdo/
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp5.la sapi/cli/php sapi/fpm/php-fpm modules/* libs/*
DESTROYING PHP 5.3.3
So it appears that 5.3.3
builds on my machine, but creates the php cli binary as php.dSYM
rather than php
, and php-fpm.dSYM
instead of php-fpm
. As a result the existence check fails (it's checking for php
and php-fpm
amongst others) and the provider rolls back removing the install.
Related: CHH/php-build#78
And php/php-src#135
Your pull request got me up and running. Though, I haven't tried compiling 5.3.2 as I need the fpm support.
I'm unable to build PHP 5.3.2 or 5.3.3, resulting in the following error (the remaining error messages show below):
Environment
Steps taken to install
Add the following to Puppetfile:
Create a project with the following (tried both
5.3.2
and5.3.3
:All output from Boxen