Chassis / v8js

A Chassis extension to install V8JS
0 stars 2 forks source link

Error in Archive_Tar causes installation to fail #23

Closed rmccue closed 5 years ago

rmccue commented 5 years ago
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: downloading v8js-2.1.0.tgz ...
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: Starting to download v8js-2.1.0.tgz (101,553 bytes)
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: ....done: 101,553 bytes
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: PHP Fatal error:  Cannot use result of built-in function in write context in /usr/share/php/Archive/Tar.php on line 639
==> default: Error: /bin/echo '/opt/libv8-6.6
==> default:                            ' | /usr/bin/pecl install v8js returned 255 instead of one of [0]
==> default: Error: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: change from notrun to 0 failed: /bin/echo '/opt/libv8-6.6==> default:                            ' | /usr/bin/pecl install v8js returned 255 instead of one of [0]

This may be a compatibility error between Archive_Tar and PHP 7.2, unsure.

rmccue commented 5 years ago

https://www.dotkernel.com/php-troubleshooting/fix-installing-pear-packages-with-php-7-2/ - basically Archive_Tar seems too old, and it can't update itself 🙄

rmccue commented 5 years ago

Looks like we can fix this by installing a newer version of php-pear; we may need to get one locked to the PHP version we're installing, as sudo apt-get install php-pear seems to install PHP 7.3 even when using PHP 7.2

rmccue commented 5 years ago

See also https://github.com/oerdnj/deb.sury.org/issues/668