Closed ganeshkbhat closed 1 year ago
checking for libxml-2.0 >= 2.9.0... no configure: error: in `/src': configure: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config.
Alternatively, you may set the environment variables LIBXML_CFLAGS and LIBXML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
The Docker image emscripten/emsdk
is missing some required packages. You should install pkg-config
, as well as libxml2-dev
. See https://github.com/php/php-src#building-php-source-code for the required packages on Ubuntu.
That said, we don't support or test emscripten. I have no idea if all the APIs we use can be translated to some counterpart in web assembly. So, we can't really help you here, sorry.
Description
The following code:
I am failing when trying to build
php.wasm
(php-cli.wasm
). What am I doing wrong? It is asking me to give flags forlibxml
which is not there in./configure
command only but there withdocker run --rm -v $(pwd):/src -u $(id -u):$(id -g) emscripten/emsdk emconfigure ./configure
config.log
This is what happens when you run just the
./configure
command.Resulted in this output: error of no libxml flags or other errors of ./configure failing.
But I expected this output instead: cleaner emscripten build to
php.wasm
/php-cli.wasm
. What is missing in my commandsPHP Version
php 8.2.8
Operating System
Ubuntu 20.0.4