On 05.12.2022 at 20:05, j adams wrote: > Christoph, thanks for this tip. > > Unfortunately, pecl refuses to install Tensor either on my Macbook Pro or > on my Ubuntu 20 workstation. Both machines complain about being unable to > find cblas.h. I ran 'sudo pecl install tensor' which has quite a bit of > output. The problem seems to happen when it attempts to run make: > > running: make > /bin/bash /tmp/pear/temp/pear-build-root7MZ6PH/tensor-3.0.2/libtool > --mode=compile cc -I. -I/tmp/pear/temp/tensor/ext > -I/tmp/pear/temp/pear-build-root7MZ6PH/tensor-3.0.2/include > -I/tmp/pear/temp/pear-build-root7MZ6PH/tensor-3.0.2/main > -I/tmp/pear/temp/tensor/ext -I/usr/include/php/20210902 > -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM > -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext > -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -O3 > -ffast-math -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/tensor/ext/tensor.c > -o tensor.lo -MMD -MF tensor.dep -MT tensor.lo > libtool: compile: cc -I. -I/tmp/pear/temp/tensor/ext > -I/tmp/pear/temp/pear-build-root7MZ6PH/tensor-3.0.2/include > -I/tmp/pear/temp/pear-build-root7MZ6PH/tensor-3.0.2/main > -I/tmp/pear/temp/tensor/ext -I/usr/include/php/20210902 > -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM > -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext > -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -O3 > -ffast-math -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/tensor/ext/tensor.c > -MMD -MF tensor.dep -MT tensor.lo -fPIC -DPIC -o .libs/tensor.o > /tmp/pear/temp/tensor/ext/tensor.c:25:10: fatal error: cblas.h: No such > file or directory > 25 | #include "cblas.h" > | ^~~~~~~~~ > compilation terminated. > make: *** [Makefile:208: tensor.lo] Error 1 > ERROR: `make' failed
I think you need to install the OpenBLAS dev package[1]. If in doubt, file an issue at the tensor bug tracker[2]. [1] <https://github.com/RubixML/Tensor#optional-to-compile-extension> [2] <https://github.com/RubixML/Tensor/issues> -- Christoph M. Becker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php