Skip to content

Instantly share code, notes, and snippets.

@salcode
Created February 11, 2016 15:54
Show Gist options
  • Save salcode/421a2391d0aeefd18f6b to your computer and use it in GitHub Desktop.
Save salcode/421a2391d0aeefd18f6b to your computer and use it in GitHub Desktop.
VVV phpswap 7.0.2 failure log
phpswap 7.0.2
===> Fetching release list...
[==================================================================] 2.69/2.69KB 100%
7.0: 4 releases
5.6: 19 releases
5.5: 33 releases
5.4: 46 releases
5.3: 2 releases
===> Done
PHP version 7.0.2 not installed. Building from source/installing... [this may take a few mintues]
===> phpbrew will now build 7.0.2
===> Loading and resolving variants...
===> Downloading from http://www.php.net/get/php-7.0.2.tar.bz2/from/this/mirror
[==================================================================] 184.00/184.00B 100%
Redirecting to http://php.net/get/php-7.0.2.tar.bz2/from/this/mirror
Redirecting to http://php.net/distributions/php-7.0.2.tar.bz2
[==================================================================] 13.34/13.34MB 100%
===> /opt/phpbrew/distfiles/php-7.0.2.tar.bz2 downloaded.
===> Extracting /opt/phpbrew/distfiles/php-7.0.2.tar.bz2 to /opt/phpbrew/tmp/php-7.0.2
===> Moving /opt/phpbrew/tmp/php-7.0.2 to /opt/phpbrew/build/php-7.0.2
===> Configuring 7.0.2...
Use tail command to see what's going on:
$ tail -F /opt/phpbrew/build/php-7.0.2/build.log
===> Building...
Error: Make failed.
Configure options: --disable-all --enable-phar --enable-session --enable-short-tags --enable-tokenizer --with-pcre-regex --with-zlib=/usr --with-libdir=lib/x86_64-linux-gnu --with-openssl=/usr --enable-cgi --with-mcrypt=/usr --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-pdo --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr --enable-json --with-readline=/usr --enable-fpm --enable-dom --enable-libxml --enable-simplexml --enable-xml --enable-xmlreader --enable-xmlwriter --with-xsl --with-libxml-dir=/usr --enable-mbstring --enable-mbregex --enable-bcmath --with-bz2=/usr --enable-calendar --enable-cli --enable-ctype --enable-dom --enable-fileinfo --enable-filter --enable-shmop --enable-sysvsem --enable-sysvshm --enable-sysvmsg --with-mhash=/usr --enable-pcntl --with-pcre-regex --with-pcre-dir=/usr --enable-phar --enable-posix --enable-sockets --enable-tokenizer --enable-zip
Last 5 lines in the log file:
/bin/bash /opt/phpbrew/build/php-7.0.2/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/dom/ -I/opt/phpbrew/build/php-7.0.2/ext/dom/ -DPHP_ATOM_INC -I/opt/phpbrew/build/php-7.0.2/include -I/opt/phpbrew/build/php-7.0.2/main -I/opt/phpbrew/build/php-7.0.2 -I/opt/phpbrew/build/php-7.0.2/ext/date/lib -I/usr/include/libxml2 -I/opt/phpbrew/build/php-7.0.2/ext/mbstring/oniguruma -I/opt/phpbrew/build/php-7.0.2/ext/mbstring/libmbfl -I/opt/phpbrew/build/php-7.0.2/ext/mbstring/libmbfl/mbfl -I/opt/phpbrew/build/php-7.0.2/ext/zip/lib -I/opt/phpbrew/build/php-7.0.2/TSRM -I/opt/phpbrew/build/php-7.0.2/Zend -g -O2 -fvisibility=hidden -c /opt/phpbrew/build/php-7.0.2/ext/dom/userdatahandler.c -o ext/dom/userdatahandler.lo
/bin/bash /opt/phpbrew/build/php-7.0.2/libtool --silent --preserve-dup-deps --mode=compile cc -I/opt/phpbrew/build/php-7.0.2/ext/fileinfo/libmagic -Iext/fileinfo/ -I/opt/phpbrew/build/php-7.0.2/ext/fileinfo/ -DPHP_ATOM_INC -I/opt/phpbrew/build/php-7.0.2/include -I/opt/phpbrew/build/php-7.0.2/main -I/opt/phpbrew/build/php-7.0.2 -I/opt/phpbrew/build/php-7.0.2/ext/date/lib -I/usr/include/libxml2 -I/opt/phpbrew/build/php-7.0.2/ext/mbstring/oniguruma -I/opt/phpbrew/build/php-7.0.2/ext/mbstring/libmbfl -I/opt/phpbrew/build/php-7.0.2/ext/mbstring/libmbfl/mbfl -I/opt/phpbrew/build/php-7.0.2/ext/zip/lib -I/opt/phpbrew/build/php-7.0.2/TSRM -I/opt/phpbrew/build/php-7.0.2/Zend -g -O2 -fvisibility=hidden -c /opt/phpbrew/build/php-7.0.2/ext/fileinfo/fileinfo.c -o ext/fileinfo/fileinfo.lo
/bin/bash /opt/phpbrew/build/php-7.0.2/libtool --silent --preserve-dup-deps --mode=compile cc -I/opt/phpbrew/build/php-7.0.2/ext/fileinfo/libmagic -Iext/fileinfo/ -I/opt/phpbrew/build/php-7.0.2/ext/fileinfo/ -DPHP_ATOM_INC -I/opt/phpbrew/build/php-7.0.2/include -I/opt/phpbrew/build/php-7.0.2/main -I/opt/phpbrew/build/php-7.0.2 -I/opt/phpbrew/build/php-7.0.2/ext/date/lib -I/usr/include/libxml2 -I/opt/phpbrew/build/php-7.0.2/ext/mbstring/oniguruma -I/opt/phpbrew/build/php-7.0.2/ext/mbstring/libmbfl -I/opt/phpbrew/build/php-7.0.2/ext/mbstring/libmbfl/mbfl -I/opt/phpbrew/build/php-7.0.2/ext/zip/lib -I/opt/phpbrew/build/php-7.0.2/TSRM -I/opt/phpbrew/build/php-7.0.2/Zend -g -O2 -fvisibility=hidden -c /opt/phpbrew/build/php-7.0.2/ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.lo
virtual memory exhausted: Cannot allocate memory
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
Please checkout the build log file for more details:
tail /opt/phpbrew/build/php-7.0.2/build.log
php5-fpm stop/waiting
Error: PHPBREW_PHP environment variable is not defined.
This extension command requires you specify a PHP version from your build list.
And it looks like you haven't switched to a version from the builds that were built with PHPBrew.
Suggestion: Please install at least one PHP with your prefered version and switch to it.
Error: PHPBREW_PHP environment variable is not defined.
This extension command requires you specify a PHP version from your build list.
And it looks like you haven't switched to a version from the builds that were built with PHPBrew.
Suggestion: Please install at least one PHP with your prefered version and switch to it.
Error: PHPBREW_PHP environment variable is not defined.
This extension command requires you specify a PHP version from your build list.
And it looks like you haven't switched to a version from the builds that were built with PHPBrew.
Suggestion: Please install at least one PHP with your prefered version and switch to it.
Configuring the new version for VVV
ls: cannot access /opt/phpbrew/php/php-7.0.2/lib/php/extensions: No such file or directory
Error: PHPBREW_PHP environment variable is not defined.
This extension command requires you specify a PHP version from your build list.
And it looks like you haven't switched to a version from the builds that were built with PHPBrew.
Suggestion: Please install at least one PHP with your prefered version and switch to it.
Restarting fpm so the changes take effect
sudo: /opt/phpbrew/php/php-7.0.2/sbin/php-fpm: command not found
php-fpm start failed.
ERROR: There was a problem switching PHP versions
@salcode
Copy link
Author

salcode commented Feb 11, 2016

After stopping MySQL to free up some memory I tried again.

phpswap 7.0.2
===> Fetching release list...
[==================================================================] 2.69/2.69KB 100%
7.0: 4 releases
5.6: 19 releases
5.5: 33 releases
5.4: 46 releases
5.3: 2 releases
===> Done
PHP version 7.0.2 not installed. Building from source/installing... [this may take a few mintues]
===> phpbrew will now build 7.0.2
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: 8c71b2ffd29311e4b7ac7788bd107554
===> Distribution file was successfully extracted, skipping...
Found existing Makefile, running make clean to ensure everything will be rebuilt.
You can append --no-clean option after the install command if you don't want to rebuild.
===> Running make clean: make -C /opt/phpbrew/build/php-7.0.2 --quiet clean
Found existing build.log, renaming it to /opt/phpbrew/build/php-7.0.2/build.log.1455205772
===> Configuring 7.0.2...

Use tail command to see what's going on:
$ tail -F /opt/phpbrew/build/php-7.0.2/build.log

===> Building...
Build finished: 4.1 minutes.
Installing...
---> Creating php-fpm.conf
---> Creating php.ini
---> Copying /opt/phpbrew/build/php-7.0.2/php.ini-development
---> Found date.timezone is not set, patching...
Congratulations! Now you have PHP with 7.0.2 as php-7.0.2
To use the newly built PHP, try the line(s) below:

$ phpbrew use php-7.0.2

Or you can use switch command to switch your default php to php-7.0.2:

$ phpbrew switch php-7.0.2

Enjoy!
stop: Unknown instance:
===> Downloading from http://pecl.php.net/get/memcache-2.2.7.tgz
WARNING: timestamping does nothing in combination with -O. See the manual
for details.

--2016-02-11 16:07:47-- http://pecl.php.net/get/memcache-2.2.7.tgz
Resolving pecl.php.net (pecl.php.net)... 104.236.228.160, 104.236.228.160
Connecting to pecl.php.net (pecl.php.net)|104.236.228.160|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 36459 (36K) [application/octet-stream]
Saving to: ‘/opt/phpbrew/distfiles/memcache-2.2.7.tgz’

100%[===========================================================================>] 36,459 --.-K/s in 0.06s

2016-02-11 16:07:47 (563 KB/s) - ‘/opt/phpbrew/distfiles/memcache-2.2.7.tgz’ saved [36459/36459]

===> /opt/phpbrew/distfiles/memcache-2.2.7.tgz downloaded.
===> Extracting to /opt/phpbrew/build/php-7.0.2/ext...
===> Installing memcache extension...
Log stored at: /opt/phpbrew/build/php-7.0.2/ext/memcache/build.log
Changing directory to /opt/phpbrew/build/php-7.0.2/ext/memcache
===> Phpize...
===> Configuring...
===> Building...
===> Running make all: make -C /opt/phpbrew/build/php-7.0.2/ext/memcache all >> /opt/phpbrew/build/php-7.0.2/ext/memcache/build.log 2>&1
Exception: Command failed: make -C /opt/phpbrew/build/php-7.0.2/ext/memcache all >> /opt/phpbrew/build/php-7.0.2/ext/memcache/build.log 2>&1 returns
Trace:

0) PhpBrew\Utils::system('make -C /opt/phpbrew/build/php-7.0.2/ext/memcache  all  >> /opt/phpbrew/build/php-7.0.2/ext/memcache/build.log 2>&1', CLIFramework\Logger)
1) PhpBrew\Tasks\MakeTask->make('/opt/phpbrew/build/php-7.0.2/ext/memcache', 'all')
2) PhpBrew\Tasks\MakeTask->run(PhpBrew\Extension\PeclExtension)
3) PhpBrew\Extension\ExtensionInstaller->install(PhpBrew\Extension\PeclExtension, [])
4) PhpBrew\Extension\ExtensionManager->installExtension(PhpBrew\Extension\PeclExtension, [])
5) PhpBrew\Command\ExtensionCommand\InstallCommand->execute('memcache')
6) call_user_func_array([PhpBrew\Command\ExtensionCommand\InstallCommand, 'execute'], ['memcache'])
7) CLIFramework\CommandBase->executeWrapper(['memcache'])
8) CLIFramework\Application->run(['/usr/bin/phpbrew', 'ext', 'install', 'memcache'])
9) CLIFramework\Application->runWithTry(['/usr/bin/phpbrew', 'ext', 'install', 'memcache'])
10) require('phar:///usr/bin/phpbrew/scripts/phpbrew-emb.php')

===> Downloading from http://pecl.php.net/get/imagick-3.3.0.tgz
WARNING: timestamping does nothing in combination with -O. See the manual
for details.

--2016-02-11 16:07:52-- http://pecl.php.net/get/imagick-3.3.0.tgz
Resolving pecl.php.net (pecl.php.net)... 104.236.228.160, 104.236.228.160
Connecting to pecl.php.net (pecl.php.net)|104.236.228.160|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 179978 (176K) [application/octet-stream]
Saving to: ‘/opt/phpbrew/distfiles/imagick-3.3.0.tgz’

100%[===========================================================================>] 179,978 964KB/s in 0.2s

2016-02-11 16:07:52 (964 KB/s) - ‘/opt/phpbrew/distfiles/imagick-3.3.0.tgz’ saved [179978/179978]

===> /opt/phpbrew/distfiles/imagick-3.3.0.tgz downloaded.
===> Extracting to /opt/phpbrew/build/php-7.0.2/ext...
===> Installing imagick extension...
Log stored at: /opt/phpbrew/build/php-7.0.2/ext/imagick/build.log
Changing directory to /opt/phpbrew/build/php-7.0.2/ext/imagick
===> Phpize...
===> Configuring...
===> Building...
===> Running make all: make -C /opt/phpbrew/build/php-7.0.2/ext/imagick all >> /opt/phpbrew/build/php-7.0.2/ext/imagick/build.log 2>&1
Exception: Command failed: make -C /opt/phpbrew/build/php-7.0.2/ext/imagick all >> /opt/phpbrew/build/php-7.0.2/ext/imagick/build.log 2>&1 returns
Trace:

0) PhpBrew\Utils::system('make -C /opt/phpbrew/build/php-7.0.2/ext/imagick  all  >> /opt/phpbrew/build/php-7.0.2/ext/imagick/build.log 2>&1', CLIFramework\Logger)
1) PhpBrew\Tasks\MakeTask->make('/opt/phpbrew/build/php-7.0.2/ext/imagick', 'all')
2) PhpBrew\Tasks\MakeTask->run(PhpBrew\Extension\PeclExtension)
3) PhpBrew\Extension\ExtensionInstaller->install(PhpBrew\Extension\PeclExtension, [])
4) PhpBrew\Extension\ExtensionManager->installExtension(PhpBrew\Extension\PeclExtension, [])
5) PhpBrew\Command\ExtensionCommand\InstallCommand->execute('imagick')
6) call_user_func_array([PhpBrew\Command\ExtensionCommand\InstallCommand, 'execute'], ['imagick'])
7) CLIFramework\CommandBase->executeWrapper(['imagick'])
8) CLIFramework\Application->run(['/usr/bin/phpbrew', 'ext', 'install', 'imagick'])
9) CLIFramework\Application->runWithTry(['/usr/bin/phpbrew', 'ext', 'install', 'imagick'])
10) require('phar:///usr/bin/phpbrew/scripts/phpbrew-emb.php')

===> Downloading from http://pecl.php.net/get/xdebug-2.3.3.tgz
WARNING: timestamping does nothing in combination with -O. See the manual
for details.

--2016-02-11 16:07:56-- http://pecl.php.net/get/xdebug-2.3.3.tgz
Resolving pecl.php.net (pecl.php.net)... 104.236.228.160, 104.236.228.160
Connecting to pecl.php.net (pecl.php.net)|104.236.228.160|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 268381 (262K) [application/octet-stream]
Saving to: ‘/opt/phpbrew/distfiles/xdebug-2.3.3.tgz’

100%[===========================================================================>] 268,381 1.08MB/s in 0.2s

2016-02-11 16:07:57 (1.08 MB/s) - ‘/opt/phpbrew/distfiles/xdebug-2.3.3.tgz’ saved [268381/268381]

===> /opt/phpbrew/distfiles/xdebug-2.3.3.tgz downloaded.
===> Extracting to /opt/phpbrew/build/php-7.0.2/ext...
===> Installing xdebug extension...
Log stored at: /opt/phpbrew/build/php-7.0.2/ext/xdebug/build.log
Changing directory to /opt/phpbrew/build/php-7.0.2/ext/xdebug
===> Phpize...
===> Configuring...
===> Building...
===> Running make all: make -C /opt/phpbrew/build/php-7.0.2/ext/xdebug all >> /opt/phpbrew/build/php-7.0.2/ext/xdebug/build.log 2>&1
Exception: Command failed: make -C /opt/phpbrew/build/php-7.0.2/ext/xdebug all >> /opt/phpbrew/build/php-7.0.2/ext/xdebug/build.log 2>&1 returns
Trace:

0) PhpBrew\Utils::system('make -C /opt/phpbrew/build/php-7.0.2/ext/xdebug  all  >> /opt/phpbrew/build/php-7.0.2/ext/xdebug/build.log 2>&1', CLIFramework\Logger)
1) PhpBrew\Tasks\MakeTask->make('/opt/phpbrew/build/php-7.0.2/ext/xdebug', 'all')
2) PhpBrew\Tasks\MakeTask->run(PhpBrew\Extension\PeclExtension)
3) PhpBrew\Extension\ExtensionInstaller->install(PhpBrew\Extension\PeclExtension, [])
4) PhpBrew\Extension\ExtensionManager->installExtension(PhpBrew\Extension\PeclExtension, [])
5) PhpBrew\Command\ExtensionCommand\InstallCommand->execute('xdebug', 'stable')
6) call_user_func_array([PhpBrew\Command\ExtensionCommand\InstallCommand, 'execute'], ['xdebug', 'stable'])
7) CLIFramework\CommandBase->executeWrapper(['xdebug', 'stable'])
8) CLIFramework\Application->run(['/usr/bin/phpbrew', 'ext', 'install', 'xdebug', 'stable'])
9) CLIFramework\Application->runWithTry(['/usr/bin/phpbrew', 'ext', 'install', 'xdebug', 'stable'])
10) require('phar:///usr/bin/phpbrew/scripts/phpbrew-emb.php')

Configuring the new version for VVV
ls: cannot access /opt/phpbrew/php/php-7.0.2/lib/php/extensions: No such file or directory
===> Enabling extension memcache
memcache extension is not installed. Suggestions:
$ phpbrew ext install memcache
Restarting fpm so the changes take effect
[11-Feb-2016 16:07:59] WARNING: Nothing matches the include pattern '/opt/phpbrew/php/php-7.0.2/etc/php-fpm.d/*.conf' from /opt/phpbrew/php/php-7.0.2/etc/php-fpm.conf at line 125.
[11-Feb-2016 16:07:59] ERROR: No pool defined. at least one pool section must be specified in config file
[11-Feb-2016 16:07:59] ERROR: failed to post process the configuration
[11-Feb-2016 16:07:59] ERROR: FPM initialization failed
php-fpm start failed.
ERROR: There was a problem switching PHP versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment