Giter Club home page Giter Club logo

docker-php-fpm-8.0's Issues

Add xmlrpc extension : Question

Hello @cytopia,

As lead dev of project https://github.com/llaville/php-compatinfo-db, I've received an issue about xmlrpc extension on PHP 8.0 platform.
As there is not yet a stable version, I've decided to install it on fly with following command : pecl install -f xmlrpc-beta

And got this output

[email protected] in ~ $ pecl install -f xmlrpc-beta
downloading xmlrpc-1.0.0RC1.tgz ...
Starting to download xmlrpc-1.0.0RC1.tgz (82,513 bytes)
....................done: 82,513 bytes
warning : bad md5sum for file /tmp/pear/temp/xmlrpc/package.xml
34 source files, building
running: phpize
Configuring for:
PHP Api Version:         20200930
Zend Module Api No:      20200930
Zend Extension Api No:   420200930
building in /tmp/pear/temp/pear-build-rootl8rDCB/xmlrpc-1.0.0RC1
running: /tmp/pear/temp/xmlrpc/configure --with-php-config=/usr/local/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20200930
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking whether to build with XMLRPC-EPI support... yes, shared
checking whether to build with expat support... no
checking iconv dir for XMLRPC-EPI... no
checking for libxml-2.0 >= 2.9.0... no
configure: error: Package requirements (libxml-2.0 >= 2.9.0) were not met:

No package 'libxml-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

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.
ERROR: `/tmp/pear/temp/xmlrpc/configure --with-php-config=/usr/local/bin/php-config' failed

I've search a bit and found something strange, perharps you can give me a clear view about this situation :

First I look around to find libxml-2.0.pc

[email protected] in /usr $ find . -name *.pc
./lib/x86_64-linux-gnu/pkgconfig/ruby-2.5.pc
./lib/x86_64-linux-gnu/pkgconfig/libssl.pc
./lib/x86_64-linux-gnu/pkgconfig/ruby.pc
./lib/x86_64-linux-gnu/pkgconfig/libcrypto.pc
./lib/x86_64-linux-gnu/pkgconfig/openssl.pc
./lib/x86_64-linux-gnu/pkgconfig/zlib.pc
./lib/x86_64-linux-gnu/pkgconfig/libffi.pc
./lib/x86_64-linux-gnu/pkgconfig/yaml-0.1.pc
./lib/x86_64-linux-gnu/pkgconfig/python-2.7.pc
./lib/x86_64-linux-gnu/pkgconfig/expat.pc
./share/pkgconfig/fontutil.pc
./share/pkgconfig/poppler-data.pc
./share/pkgconfig/bash-completion.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.9/libxml-2.0.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.9/sqlite3.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.9/libxslt.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.9/libcurl.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.9/libexslt.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.9/zlib.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.14/libxml-2.0.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.14/sqlite3.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.14/libxslt.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.14/libcurl.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.14/libexslt.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.14/zlib.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.8/libxml-2.0.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.8/sqlite3.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.8/libxslt.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.8/libcurl.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.8/libexslt.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.8/zlib.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.13/libxml-2.0.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.13/sqlite3.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.13/libxslt.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.13/libcurl.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.13/libexslt.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.13/zlib.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.10/libxml-2.0.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.10/sqlite3.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.10/libxslt.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.10/libcurl.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.10/libexslt.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.10/zlib.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.12/libxml-2.0.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.12/sqlite3.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.12/libxslt.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.12/libcurl.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.12/libexslt.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.12/zlib.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.5/libcurl.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.5/libcrypto.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.11/libxml-2.0.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.11/sqlite3.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.11/libxslt.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.11/libcurl.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.11/libexslt.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.11/zlib.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.6/sqlite3.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.6/zlib.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.7/sqlite3.pc
./local/src/linuxbrew/Library/Homebrew/os/mac/pkgconfig/10.7/zlib.pc

Why there are pc files outside of lib/x86_64-linux-gnu/pkgconfig ?

Because, first we have

[email protected] in /usr $ which pkg-config
/usr/bin/pkg-config
[email protected] in /usr $ pkg-config --version
0.29
[email protected] in /usr $ pkg-config --list-all
openssl         OpenSSL - Secure Sockets Layer and cryptography libraries and tools
ruby-2.5        Ruby - Object Oriented Script Language
libffi          libffi - Library supporting Foreign Function Interfaces
fontutil        FontUtil - Font utilities dirs
libcrypto       OpenSSL-libcrypto - OpenSSL cryptography library
zlib            zlib - zlib compression library
poppler-data    poppler-data - Encoding files for use with poppler
python-2.7      Python - Python library
bash-completion bash-completion - programmable completion for the bash shell
expat           expat - expat XML parser
ruby            Ruby - Object Oriented Script Language
yaml-0.1        LibYAML - Library to parse and emit YAML
libssl          OpenSSL-libssl - Secure Sockets Layer and cryptography libraries

And second they can't them found, if we check the php-config result

[email protected] in /usr $ which php-config
/usr/local/bin/php-config
[email protected] in /usr $ php-config
Usage: /usr/local/bin/php-config [OPTION]
Options:
  --prefix            [/usr/local]
  --includes          [-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib]
  --ldflags           [ -Wl,-O1 -pie]
  --libs              [-lcrypt   -largon2 -lresolv -lcrypt -lncurses -lrt -lutil -lrt -lm -ldl  -lxml2 -lssl -lcrypto -lsqlite3 -lz -lcurl -lxml2 -lffi -lssl -lcrypto -lonig -lsqlite3 -ledit -lxml2 -largon2 -lxml2 -lxml2 -lxml2 -lz -lssl -lcrypto -lcrypt ]
  --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20200930]
  --include-dir       [/usr/local/include/php]
  --man-dir           [/usr/local/php/man]
  --php-binary        [/usr/local/bin/php]
  --php-sapis         [ cli fpm phpdbg]
  --ini-path          [/usr/local/etc/php]
  --ini-dir           [/usr/local/etc/php/conf.d]
  --configure-options [--build=x86_64-linux-gnu --with-config-file-path=/usr/local/etc/php --with-config-file-scan-dir=/usr/local/etc/php/conf.d --enable-option-checking=fatal --with-mhash --with-pic --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-ffi --with-curl --with-libedit --with-openssl --with-zlib --with-pear --with-libdir=lib/x86_64-linux-gnu --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi build_alias=x86_64-linux-gnu]
  --version           [8.0.1]
  --vernum            [80001]

Hope you can help me to understand !
Thanks in advance

https://stackoverflow.com/questions/37321397/no-package-libxml-2-0-found

Laravel missing from container

Setting PHP level to 8.0 in the .env file pulls in devilbox/php-fpm:8.0-work-0.127

When I shell into the PHP container and try to run laravel I get the bash: laravel: command not found error.
This works fine on the 7.4 container.

Other tools (like symfony) work fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.