Tensor icon indicating copy to clipboard operation
Tensor copied to clipboard

Pecl update for php 8.3.x

Open Kabingeran opened this issue 1 year ago • 3 comments

Hi! Will support for php 8.3 be added?

Kabingeran avatar Apr 05 '24 12:04 Kabingeran

If you need this and don't mind doing it manually, here's how you can build for PHP 8.3 on Ubuntu 22.04. All done in a Docker container.

The process uses the development branch of https://github.com/zephir-lang/zephir as that has recently got an update to support 8.3 but hasn't made a release yet.

docker run -it ubuntu:22.04 bash
apt update
apt install ca-certificates apt-transport-https software-properties-common lsb-release -y
add-apt-repository ppa:ondrej/php -y
apt install unzip make gcc gfortran php8.3-dev php8.3-mbstring libopenblas-dev liblapacke-dev re2c build-essential git -y
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
git clone https://github.com/RubixML/Tensor.git
pecl install zephir_parser
echo 'extension=zephir_parser.so' >> /etc/php/8.3/cli/php.ini
cd Tensor
/composer.phar require --dev phalcon/zephir:dev-development
./vendor/bin/zephir generate
./vendor/bin/zephir build
cp ext/modules/tensor.so /usr/lib/php/20230831/
echo 'extension=tensor.so' >> /etc/php/8.3/cli/php.ini
/composer.phar test
> phpunit
PHPUnit 9.6.19 by Sebastian Bergmann and contributors.

...............................................................  63 / 246 ( 25%)
............................................................... 126 / 246 ( 51%)
............................................................... 189 / 246 ( 76%)
.........................................................       246 / 246 (100%)

Time: 00:00.109, Memory: 6.00 MB

OK (246 tests, 270 assertions)

27pchrisl avatar May 19 '24 08:05 27pchrisl

This is a bad solution. Why should I install all these dependencies? You need a one-line solution.

Kabingeran avatar May 23 '24 13:05 Kabingeran

Guys any news on supporting php 8.3?

vaawebdev-ozee avatar Aug 07 '24 15:08 vaawebdev-ozee